Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1371: What should not be destroyed using HeapDestroy()?
  • A: Heap from HeapCreate()
  • B: Default heap from GetProcessHeap()
  • C: Allocated memory pages
  • D: None of these
View Answer
B

Q1372: Which of the following is NOT a valid HeapCreate() parameter?
  • A: flOptions
  • B: dwInitialSize
  • C: dwHeapAccess
  • D: dwMaximumSize
View Answer
C

Q1373: The API HeapCreate returns a ________.
  • A: page number
  • B: heap pointer
  • C: heap handle
  • D: error code
View Answer
C

Q1374: To enable heap-based code execution, which flag is used?
  • A: HEAP_EXECUTE
  • B: HEAP_CREATE_ENABLE_EXECUTE
  • C: HEAP_CODE_ALLOWED
  • D: HEAP_PERMIT_EXECUTION
View Answer
B

Q1375: If memory requirements are unknown, deferring commitment is
  • A: discouraged
  • B: mandatory
  • C: recommended
  • D: risky
View Answer
C

Q1376: Heap is a ________ resource in Windows.
  • A: unlimited
  • B: shared
  • C: limited
  • D: independent
View Answer
C

Q1377: Using HEAP_NO_SERIALIZE improves performance by
  • A: allocating less memory
  • B: avoiding synchronization
  • C: using global scope
  • D: reducing I/O overhead
View Answer
B

Q1378: The heap is growable beyond dwMaximumSize when
  • A: it is NULL
  • B: it is non-zero
  • C: it is zero
  • D: it is 1 GB
View Answer
C

Q1379: Executing code from heap without HEAP_CREATE_ENABLE_EXECUTE causes
  • A: no issue
  • B: heap overflow
  • C: access violation
  • D: exception
View Answer
D

Q1380: Using HeapDestroy() with default process heap can cause
  • A: exception
  • B: success
  • C: error
  • D: normal termination
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now