Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1361: Memory is committed to the heap
  • A: at the end of execution
  • B: on demand
  • C: during OS boot
  • D: initially
View Answer
D

Q1362: If required memory increases beyond initial size
  • A: Heap fails
  • B: Pages are swapped
  • C: Heap is reallocated
  • D: More pages are automatically allocated
View Answer
D

Q1363: What happens if the heap exceeds dwMaximumSize?
  • A: It resets
  • B: Exception is thrown
  • C: Heap does not grow
  • D: Process is terminated
View Answer
C

Q1364: Which flag causes an exception on memory allocation failure?
  • A: HEAP_NO_SERIALIZE
  • B: HEAP_CREATE_ENABLE_EXECUTE
  • C: HEAP_GENERATE_EXCEPTIONS
  • D: HEAP_NOTIFY
View Answer
C

Q1365: Which flag helps in performance when serialization isn't needed?
  • A: HEAP_SERIALIZE
  • B: HEAP_NO_SERIALIZE
  • C: HEAP_CREATE_PERFORMANCE
  • D: HEAP_PRIORITY
View Answer
B

Q1366: What does HEAP_CREATE_ENABLE_EXECUTE allow?
  • A: Read-only heap
  • B: Auto-deletion
  • C: Executing code from heap
  • D: Memory compression
View Answer
C

Q1367: Which Windows security feature prevents code execution from heap?
  • A: DEP
  • B: NTFS
  • C: ACL
  • D: Firewall
View Answer
A

Q1368: What is the correct way to destroy a heap?
  • A: CloseHandle()
  • B: HeapRelease()
  • C: DeleteHandle()
  • D: HeapDestroy()
View Answer
D

Q1369: What does HeapDestroy() take as input?
  • A: Heap size
  • B: Heap structure
  • C: Heap handle
  • D: Page count
View Answer
C

Q1370: Using CloseHandle() on a heap handle is
  • A: Recommended
  • B: Required
  • C: Not appropriate
  • D: A warning only
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now