System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 62
Q1281:
Dynamic memory is primarily needed when working with _______.
A. static arrays
B. constant variables
C. dynamic data structures
D. inline functions
Correct Answer:
C
Chapter: 62
Q1282:
Which of the following are examples of dynamic data structures?
A. Arrays and strings
B. Search tables and trees
C. Constants and macros
D. Header files
Correct Answer:
B
Chapter: 62
Q1283:
Which API set is used by Windows for dynamic memory allocation?
A. File APIs
B. DLL APIs
C. Memory APIs
D. Thread APIs
Correct Answer:
C
Chapter: 62
Q1284:
Memory mapped files allow direct data movement between _______.
A. CPU and GPU
B. User space and files
C. Drivers and kernel
D. Registers and stack
Correct Answer:
B
Chapter: 62
Q1285:
Memory mapped files are treated like ______ in Windows.
A. Hardware ports
B. Pointers to arrays
C. Memory
D. Cache
Correct Answer:
C
Chapter: 62
Q1286:
One benefit of memory mapped files is _______.
A. Increased disk usage
B. Faster file handling
C. Reduced memory speed
D. Higher CPU load
Correct Answer:
B
Chapter: 62
Q1287:
Memory mapped files eliminate the need for ______ to access file data.
A. Threading APIs
B. Cache lookup
C. File APIs
D. Network interfaces
Correct Answer:
C
Chapter: 62
Q1288:
Windows allows memory to be ______ between processes.
A. hidden
B. shared
C. locked
D. terminated
Correct Answer:
B
Chapter: 62
Q1289:
Win32 API uses pointers of size ______ bits.
A. 16
B. 32
C. 64
D. 128
Correct Answer:
B
Chapter: 62
Q1290:
Win64 API provides virtual space up to ______.
A. 2^16
B. 2^32
C. 2^64
D. 2^128
Correct Answer:
C
Chapter: 62
Q1291:
The size of virtual space in Win32 is ______.
A. 4 KB
B. 4 MB
C. 4 GB
D. 4 TB
Correct Answer:
C
Chapter: 62
Q1292:
Win64 supports up to ______ of virtual memory.
A. 4 GB
B. 1 TB
C. 16 GB
D. 16 Exabytes
Correct Answer:
D
Chapter: 62
Q1293:
In Win32, at least ______ of the 4GB virtual space is accessible to a process.
A. 1GB
B. 2GB
C. 3GB
D. 8GB
Correct Answer:
D
Chapter: 62
Q1294:
The remaining half of the virtual space in Win32 is reserved for ______.
A. User data
B. Stack and heap
C. System code and drivers
D. Thread pools
Correct Answer:
C
Chapter: 62
Q1295:
To support both 32-bit and 64-bit platforms, applications should be designed to be ______.
A. Thread-safe
B. Modular
C. Architecture-independent
D. API-restricted
Correct Answer:
C
Chapter: 62
Q1296:
Which of the following is true about dynamic memory management?
A. It avoids using memory
B. It uses static variables
C. It allows flexible allocation
D. It is obsolete now
Correct Answer:
C
Chapter: 62
Q1297:
Memory mapped files are used for faster ______ operations.
A. Threading
B. File
C. I/O
D. Kernel
Correct Answer:
C
Chapter: 62
Q1298:
The use of memory mapped files bypasses the need for ______.
A. File stream buffering
B. Heap allocation
C. Pointer casting
D. File APIs
Correct Answer:
D
Chapter: 62
Q1299:
Windows memory management is handled through ______ APIs.
A. OpenGL
B. DirectX
C. Win32/Win64
D. BIOS
Correct Answer:
C
Chapter: 62
Q1300:
Dynamic memory allows structures to be allocated during ______.
A. Compilation
B. Runtime
C. Debugging
D. Linking
Correct Answer:
B