System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 62
Q1301:
In Win64, the pointer size is ______.
A. 4 bits
B. 8 bits
C. 16 bits
D. 64 bits
Correct Answer:
B
Chapter: 62
Q1302:
Shared memory between processes reduces duplication of ______.
A. Code
B. Memory resources
C. Instructions
D. Drivers
Correct Answer:
B
Chapter: 62
Q1303:
_________ helps Windows applications run on both 32-bit and 64-bit systems.
A. Thread safety
B. Platform independence
C. Code duplication
D. Multi-threading
Correct Answer:
B
Chapter: 62
Q1304:
________ APIs provide support for dynamic memory allocation in Windows.
A. Socket
B. File
C. Windows memory
D. Thread
Correct Answer:
C
Chapter: 62
Q1305:
________ is the reason dynamic memory is preferred over static memory in some cases.
A. Fixed allocation
B. Faster compilation
C. Structure flexibility
D. Hardware dependency
Correct Answer:
C
Chapter: 62
Q1306:
________ eliminates the use of conventional file access techniques.
A. Static allocation
B. Memory sharing
C. Memory mapped files
D. System paging
Correct Answer:
C
Chapter: 63
Q1307:
Which of the following data structures increases the need for dynamic memory?
A. Arrays
B. Stacks
C. Queues
D. Linked lists
Correct Answer:
D
Chapter: 63
Q1308:
What API does Windows provide for dynamic memory allocation?
A. WinZip
B. WinAlloc
C. Windows API
D. Set of Windows APIs
Correct Answer:
D
Chapter: 63
Q1309:
Memory mapped files in Windows allow direct movement of data between
A. Registers and memory
B. File system and cache
C. User space and files
D. Cache and disk
Correct Answer:
C
Chapter: 63
Q1310:
Which feature of memory mapped files makes file handling faster?
A. Files are zipped
B. Files are cached
C. Files are treated like memory
D. Files are encrypted
Correct Answer:
C
Chapter: 63
Q1311:
Memory mapped files eliminate the need for using
A. Search trees
B. File APIs
C. Loops
D. Operating systems
Correct Answer:
B
Chapter: 63
Q1312:
Memory sharing among processes in Windows is enabled through
A. Pointers
B. DLLs
C. Memory mapped files
D. Page faults
Correct Answer:
C
Chapter: 63
Q1313:
Which API platforms are used by Windows for memory management?
A. WinAPI and LinAPI
B. Win32 and Win64
C. WinMem and WinDisk
D. MemAPI and CoreAPI
Correct Answer:
B
Chapter: 63
Q1314:
How many bits are used by pointers in the Win32 API?
A. 64
B. 32
C. 16
D. 128
Correct Answer:
B
Chapter: 63
Q1315:
The virtual memory space supported by Win32 is
A. 2^64
B. 2^16
C. 2^32
D. 2^8
Correct Answer:
C
Chapter: 63
Q1316:
The virtual memory space supported by Win64 is
A. 2^32
B. 2^48
C. 2^64
D. 2^16
Correct Answer:
C
Chapter: 63
Q1317:
What is the total virtual space provided by Win64?
A. 16 GB
B. 4 TB
C. 16 Exabytes
D. 128 MB
Correct Answer:
C
Chapter: 63
Q1318:
A well-designed application should run on both Win32 and Win64 modes
A. without change
B. in compatibility mode
C. with recompilation
D. with partial optimization
Correct Answer:
A
Chapter: 63
Q1319:
How much of the virtual space is accessible to a process in Win32?
A. 16 GB
B. 8 GB
C. 4 GB
D. 2 GB
Correct Answer:
B
Chapter: 63
Q1320:
In Win32, the system reserves the remaining virtual space for
A. system logs
B. files and folders
C. shared data and drivers
D. applications
Correct Answer:
C