System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1471: Page file space is _______ for file operations using memory mapped files.
- A: essential
- B: not needed
- C: optional
- D: mandatory
View Answer
B
Q1472: Windows uses memory mapping for loading and executing _______ files.
- A: DLL and EXE
- B: TXT and PDF
- C: XML and JSON
- D: HTML and CSS
View Answer
A
Q1473: When working with memory mapped files, it is strongly recommended to use _______ exception handling.
- A: SEH
- B: SYNCHRONOUS
- C: ASYNC
- D: PROCESS
View Answer
A
Q1474: The exception type to look for when handling memory mapped file errors is _______.
- A: EXCEPTION_IN_PAGE_ERROR
- B: EXCEPTION_ACCESS_VIOLATION
- C: EXCEPTION_DIVIDE_BY_ZERO
- D: EXCEPTION_STACK_OVERFLOW
View Answer
A
Q1475: Memory mapped files allow large files to be processed as if they are placed in _______.
- A: main memory
- B: secondary storage
- C: virtual memory
- D: cache
View Answer
A
Q1476: Direct file IO operations are avoided in memory mapped files, improving _______.
- A: performance
- B: storage
- C: size
- D: compatibility
View Answer
A
Q1477: Memory mapping in Windows is used in which of the following?
- A: Loading DLLs
- B: Network management
- C: Database indexing
- D: Graphic rendering
View Answer
A
Q1478: Memory mapped IO uses the operating system’s _______ memory management system.
- A: virtual
- B: static
- C: physical
- D: cache
View Answer
A
Q1479: Which API function is used to create a file mapping object?
- A: CreateFileMapping()
- B: OpenFileMapping()
- C: CloseHandle()
- D: ReadFile()
View Answer
A
Q1480: How many arguments does the CreateFileMapping() API take?
- A: 4
- B: 5
- C: 6
- D: 7
View Answer
C