Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1431: HeapLock() is used to
  • A: terminate a heap
  • B: lock access to heap
  • C: compact heap
  • D: check heap size
View Answer
B

Q1432: HeapUnLock() is used to
  • A: enable fragmentation
  • B: unlock access to heap
  • C: terminate heap
  • D: initialize memory
View Answer
B

Q1433: HeapWalk() is used for
  • A: heap validation
  • B: thread creation
  • C: block enumeration
  • D: exception handling
View Answer
C

Q1434: The flag _______ indicates that heap has been accessed out of bounds.
  • A: STATUS_NO_MEMORY
  • B: STATUS_ACCESS_VIOLATION
  • C: HEAP_NO_SERIALIZE
  • D: HEAP_COMPACT
View Answer
B

Q1435: To allow thread termination on heap corruption, use
  • A: HeapReAlloc()
  • B: HeapWalk()
  • C: HeapSetInformation()
  • D: HeapValidate()
View Answer
C

Q1436: Which API is used to create a new heap?
  • A: HeapAlloc()
  • B: HeapCreate()
  • C: HeapFree()
  • D: HeapDestroy()
View Answer
B

Q1437: To obtain a handle to the default heap of the current process, which API is used?
  • A: HeapCreate()
  • B: GetProcessHeap()
  • C: HeapAlloc()
  • D: HeapFree()
View Answer
B

Q1438: Memory blocks are allocated from a heap using _______.
  • A: HeapFree()
  • B: HeapAlloc()
  • C: HeapDestroy()
  • D: HeapSize()
View Answer
B

Q1439: If a memory block needs to be deallocated, the correct API to use is _______.
  • A: HeapAlloc()
  • B: HeapCreate()
  • C: HeapFree()
  • D: HeapDestroy()
View Answer
C

Q1440: Before terminating the program, the heap should be disposed of using _______.
  • A: HeapFree()
  • B: HeapCreate()
  • C: HeapDestroy()
  • D: HeapAlloc()
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now