Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1381: The flag HEAP_GENERATE_EXCEPTIONS raises exceptions during
  • A: heap creation
  • B: memory deallocation
  • C: allocation failure
  • D: function call
View Answer
C

Q1382: The function HeapCreate returns NULL on
  • A: failure
  • B: success
  • C: destroy
  • D: invalid parameters
View Answer
A

Q1383: flOptions in HeapCreate can include
  • A: HEAP_READ_ONLY
  • B: HEAP_CREATE_ZERO_INIT
  • C: HEAP_NO_SERIALIZE
  • D: HEAP_SHARED
View Answer
B

Q1384: In Windows, the heap size adjusts to the nearest ________.
  • A: block size
  • B: thread size
  • C: page size
  • D: process size
View Answer
C

Q1385: flOptions in HeapCreate() allows enabling ________ and exception flags.
  • A: API access
  • B: flags
  • C: execution
  • D: heap management
View Answer
C

Q1386: dwMaximumSize determines the ________ size of the heap.
  • A: current
  • B: page
  • C: maximum
  • D: heap handle
View Answer
C

Q1387: HeapDestroy() requires a valid ________.
  • A: process handle
  • B: pointer
  • C: name
  • D: heap handle
View Answer
D

Q1388: What is the purpose of HeapAlloc() in heap memory management?
  • A: To create a new heap
  • B: To reallocate memory
  • C: To allocate a memory block from the heap
  • D: To free a heap
View Answer
B

Q1389: Which flag ensures memory allocated by HeapAlloc is initialized to zero?
  • A: HEAP_NO_SERIALIZE
  • B: HEAP_REALLOC_IN_PLACE_ONLY
  • C: HEAP_ZERO_MEMORY
  • D: HEAP_GENERATE_EXCEPTIONS
View Answer
C

Q1390: The return value of HeapAlloc() is of type _______.
  • A: int
  • B: void
  • C: LPVOID
  • D: HANDLE
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now