Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1421: If each thread has its own heap, _______ can be used.
  • A: HEAP_REALLOC_IN_PLACE_ONLY
  • B: HEAP_NO_SERIALIZE
  • C: HEAP_COMPACT
  • D: HEAP_GENERATE_EXCEPTION
View Answer
B

Q1422: HEAP_NO_SERIALIZE helps when
  • A: threads share the heap
  • B: allocation fails
  • C: threads are independent
  • D: heap is corrupted
View Answer
C

Q1423: HEAP_GENERATE_EXCEPTION allows the program to _______ before terminating.
  • A: free memory
  • B: close open handles
  • C: log data
  • D: log errors
View Answer
B

Q1424: STATUS_NO_MEMORY indicates
  • A: that heap is corrupted
  • B: that memory is exhausted
  • C: that serialization is missing
  • D: that an exception is thrown
View Answer
B

Q1425: STATUS_ACCESS_VIOLATION indicates that the heap
  • A: has space left
  • B: has been corrupted
  • C: is full
  • D: has low fragmentation
View Answer
B

Q1426: Heap exceptions help the program to
  • A: allocate more memory
  • B: handle concurrency
  • C: manage open handles
  • D: validate thread safety
View Answer
C

Q1427: _______ can be used to enable low fragmentation mode.
  • A: HeapSize()
  • B: HeapSetInformation()
  • C: HeapReAlloc()
  • D: HeapCompact()
View Answer
B

Q1428: HeapCompact() is used to
  • A: find largest free block
  • B: enable exceptions
  • C: enumerate memory
  • D: terminate thread
View Answer
A

Q1429: HeapValidate() is used to
  • A: compact memory
  • B: detect corruption
  • C: reallocate memory
  • D: set information
View Answer
B

Q1430: HeapWalk() helps in _______.
  • A: corrupting memory
  • B: locking heap
  • C: validating heap
  • D: enumerating allocated blocks
View Answer
D

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now