Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1331: What does Windows maintain to manage dynamic memory?
  • A: Array
  • B: Queue
  • C: Pool of heaps
  • D: Linked list
View Answer
C

Q1332: How many heaps can a Windows process have?
  • A: Only one
  • B: Two
  • C: Many
  • D: None
View Answer
C

Q1333: What is traditionally considered sufficient for heap management?
  • A: Multiple heaps
  • B: One heap
  • C: No heap
  • D: Heap per module
View Answer
B

Q1334: Why might a program need multiple heaps?
  • A: To save disk space
  • B: To store logs
  • C: To improve efficiency
  • D: To reduce CPU load
View Answer
C

Q1335: Which of the following is a runtime function for heap allocation in C?
  • A: heapalloc()
  • B: allocate()
  • C: malloc()
  • D: storemem()
View Answer
C

Q1336: Which function is used to free memory in C runtime?
  • A: remove()
  • B: clear()
  • C: free()
  • D: release()
View Answer
C

Q1337: The heap in Windows is treated as what kind of object?
  • A: File
  • B: Process
  • C: Thread
  • D: Windows object
View Answer
D

Q1338: What is used to access a heap in Windows?
  • A: Pointer
  • B: Index
  • C: Handle
  • D: Name
View Answer
C

Q1339: What does the GetProcessHeap() API return on success?
  • A: Heap size
  • B: Heap address
  • C: Heap handle
  • D: Heap index
View Answer
C

Q1340: What is returned by GetProcessHeap() in case of failure?
  • A: NULL
  • B: INVALID_HANDLE_VALUE
  • C: -1
  • D: Zero
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now