Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 70
Q1461:
The name of the compiler can be used to contact for _______.
A. Technical queries
B. Ordering books
C. Subscription help
D. Job applications
Correct Answer: A
Chapter: 70
Q1462:
The compiler's email domain is _______.
A. @gmail.com
B. @yahoo.com
C. @hotmail.com
D. @outlook.com
Correct Answer: A
Chapter: 71
Q1463:
Memory is allocated from the _______ file in memory-mapped files.
A. Pageing
B. Paging
C. File System
D. Cache
Correct Answer: B
Chapter: 71
Q1464:
The OS controls the mapping of virtual address onto _______ memory.
A. secondary
B. physical
C. virtual
D. cloud
Correct Answer: B
Chapter: 71
Q1465:
Memory mapped files help to map virtual memory space directly onto a _______.
A. normal file
B. database
C. process
D. address space
Correct Answer: A
Chapter: 71
Q1466:
One advantage of memory mapped IO is that it does not require direct _______ operations.
A. File Input Output
B. Memory Allocation
C. Network Transfer
D. Processor Scheduling
Correct Answer: A
Chapter: 71
Q1467:
Data structures placed in a memory mapped file are available for _______.
A. only current session
B. later use
C. only for writing
D. real-time only
Correct Answer: B
Chapter: 71
Q1468:
Memory mapped IO is more efficient than using _______ functions for file processing.
A. ReadFile() and WriteFile()
B. HeapAlloc() and HeapFree()
C. GetProcessHeap() and HeapCreate()
D. LoadLibrary() and FreeLibrary()
Correct Answer: A
Chapter: 71
Q1469:
In memory mapped IO, there is no need to manage _______ for repetitive file operations.
A. network sockets
B. buffers
C. threads
D. processes
Correct Answer: B
Chapter: 71
Q1470:
Multiple processes can share memory space by mapping their virtual memory space onto a _______.
A. file
B. socket
C. device
D. memory segment
Correct Answer: A
Chapter: 71
Q1471:
Page file space is _______ for file operations using memory mapped files.
A. essential
B. not needed
C. optional
D. mandatory
Correct Answer: B
Chapter: 71
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
Correct Answer: A
Chapter: 71
Q1473:
When working with memory mapped files, it is strongly recommended to use _______ exception handling.
A. SEH
B. SYNCHRONOUS
C. ASYNC
D. PROCESS
Correct Answer: A
Chapter: 71
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
Correct Answer: A
Chapter: 71
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
Correct Answer: A
Chapter: 71
Q1476:
Direct file IO operations are avoided in memory mapped files, improving _______.
A. performance
B. storage
C. size
D. compatibility
Correct Answer: A
Chapter: 71
Q1477:
Memory mapping in Windows is used in which of the following?
A. Loading DLLs
B. Network management
C. Database indexing
D. Graphic rendering
Correct Answer: A
Chapter: 71
Q1478:
Memory mapped IO uses the operating system’s _______ memory management system.
A. virtual
B. static
C. physical
D. cache
Correct Answer: A
Chapter: 72
Q1479:
Which API function is used to create a file mapping object?
A. CreateFileMapping()
B. OpenFileMapping()
C. CloseHandle()
D. ReadFile()
Correct Answer: A
Chapter: 72
Q1480:
How many arguments does the CreateFileMapping() API take?
A. 4
B. 5
C. 6
D. 7
Correct Answer: C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now