System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1531: To change mapped regions, you should _______ the current view and map a new one.
- A: Unmap
- B: Map
- C: Close
- D: Flush
View Answer
A
Q1532: Which exception should be caught when working with file mapping to handle page faults?
- A: EXCEPTION_ACCESS_VIOLATION
- B: EXCEPTIO_IN_PAGE_ERROR
- C: EXCEPTION_ARRAY_BOUNDS_EXCEEDED
- D: EXCEPTION_STACK_OVERFLOW
View Answer
B
Q1533: The last step in file mapping cleanup is to _______ file and map handles.
- A: CloseHandle()
- B: UnmapViewOfFile()
- C: MapViewOfFile()
- D: FlushViewOfFile()
View Answer
A
Q1534: File mapping requires the file to be opened with at least _______ access.
- A: GENERIC_WRITE
- B: GENERIC_EXECUTE
- C: GENERIC_READ
- D: GENERIC_ALL
View Answer
C
Q1535: Mapping a file involves creating one or more _______ to access parts of the file.
- A: Map views
- B: File descriptors
- C: File handles
- D: Heap blocks
View Answer
A
Q1536: Memory allocation inside a mapped region requires _______ functions.
- A: Standard memory allocation
- B: Customized
- C: Automatic
- D: None
View Answer
B
Q1537: After setting file length for a new file, which function finalizes the new file size?
- A: SetFilePointerEx()
- B: SetEndOfFile()
- C: FlushViewOfFile()
- D: UnmapViewOfFile()
View Answer
B
Q1538: Accessing a file through file mapping generally reduces processing time by about ______ times compared to conventional file operations.
- A: 2
- B: 3
- C: 4
- D: 5
View Answer
B
Q1539: Sequential file access through file mapping is especially useful for processing ______ files.
- A: Small
- B: Sequential
- C: Large
- D: Random
View Answer
A
Q1540: File mapping setup might be programmatically ______ compared to conventional file operations.
- A: simple
- B: complex
- C: unnecessary
- D: automatic
View Answer
B