System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1441: It is recommended not to mix Windows heap API and _______ functions.
- A: C++ library
- B: C library
- C: Java library
- D: Python library
View Answer
B
Q1442: Memory allocated with C library functions should be deallocated with _______.
- A: C library functions
- B: Windows Heap API
- C: HeapFree()
- D: HeapDestroy()
View Answer
A
Q1443: HeapAlloc() is used to _______ memory blocks.
- A: allocate
- B: deallocate
- C: reallocate
- D: compact
View Answer
A
Q1444: HeapDestroy() is called when
- A: the heap is not required anymore
- B: the heap size increases
- C: the heap allocation fails
- D: memory block size changes
View Answer
A
Q1445: GetProcessHeap() returns
- A: a new heap handle
- B: the default process heap
- C: handle to a file
- D: memory size
View Answer
B
Q1446: HeapCreate() returns
- A: a pointer to allocated memory
- B: a heap handle
- C: the size of the heap
- D: a status code
View Answer
B
Q1447: How many heaps are used in the sorting file example?
- A: One
- B: Two
- C: Three
- D: Four
View Answer
C
Q1448: Which heap stores the root address in the example?
- A: RecHeap
- B: NodeHeap
- C: ProcHeap
- D: HeapAlloc
View Answer
C
Q1449: Which heap is used to build the tree?
- A: ProcHeap
- B: RecHeap
- C: NodeHeap
- D: HeapCreate
View Answer
C
Q1450: The records are stored in which heap?
- A: ProcHeap
- B: RecHeap
- C: NodeHeap
- D: HeapFree
View Answer
B