System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1321: The API used to probe system memory information is
- A: GetMemoryInfo()
- B: RetrieveInfo()
- C: GetSystemInfo()
- D: GetMemoryStatus()
View Answer
C
Q1322: The GetSystemInfo() API returns a pointer to
- A: PROCESS_DATA
- B: THREAD_BLOCK
- C: SYSTEM_INFO
- D: MEMORY_MAP
View Answer
C
Q1323: The SYSTEM_INFO structure contains information about
- A: page size only
- B: application name only
- C: page size, granularity, and memory space
- D: user password only
View Answer
C
Q1324: _________ are commonly used dynamic data structures requiring dynamic memory.
- A: Static arrays
- B: Loops
- C: Search tables
- D: Conditional blocks
View Answer
C
Q1325: Windows provides __________ for handling dynamic memory allocation.
- A: loops
- B: conditional statements
- C: APIs
- D: file handles
View Answer
C
Q1326: The Win32 platform uses ________ bits for pointers.
- A: 8
- B: 16
- C: 32
- D: 64
View Answer
C
Q1327: The structure SYSTEM_INFO provides details about ________.
- A: file names
- B: network usage
- C: page size and granularity
- D: sound output
View Answer
C
Q1328: __________ memory management ensures efficient use of memory in user programs.
- A: Random
- B: Static
- C: Optimal
- D: Flexible
View Answer
C
Q1329: The remaining virtual space in Win32 is reserved for ________.
- A: video rendering
- B: system resources
- C: shared data and drivers
- D: background processes
View Answer
C
Q1330: Where does a programmer allocate memory dynamically from?
- A: Stack
- B: Registers
- C: Heap
- D: Disk
View Answer
C