System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Chapter: 68
Q1441:
It is recommended not to mix Windows heap API and _______ functions.
A. C++ library
B. C library
C. Java library
D. Python library
Correct Answer:
B
Chapter: 68
Q1442:
Memory allocated with C library functions should be deallocated with _______.
A. C library functions
B. Windows Heap API
C. HeapFree()
D. HeapDestroy()
Correct Answer:
A
Chapter: 68
Q1443:
HeapAlloc() is used to _______ memory blocks.
A. allocate
B. deallocate
C. reallocate
D. compact
Correct Answer:
A
Chapter: 68
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
Correct Answer:
A
Chapter: 68
Q1445:
GetProcessHeap() returns
A. a new heap handle
B. the default process heap
C. handle to a file
D. memory size
Correct Answer:
B
Chapter: 68
Q1446:
HeapCreate() returns
A. a pointer to allocated memory
B. a heap handle
C. the size of the heap
D. a status code
Correct Answer:
B
Chapter: 69
Q1447:
How many heaps are used in the sorting file example?
A. One
B. Two
C. Three
D. Four
Correct Answer:
C
Chapter: 69
Q1448:
Which heap stores the root address in the example?
A. RecHeap
B. NodeHeap
C. ProcHeap
D. HeapAlloc
Correct Answer:
C
Chapter: 69
Q1449:
Which heap is used to build the tree?
A. ProcHeap
B. RecHeap
C. NodeHeap
D. HeapCreate
Correct Answer:
C
Chapter: 69
Q1450:
The records are stored in which heap?
A. ProcHeap
B. RecHeap
C. NodeHeap
D. HeapFree
Correct Answer:
B
Chapter: 69
Q1451:
Sorting is performed in which heap?
A. ProcHeap
B. RecHeap
C. NodeHeap
D. HeapDestroy
Correct Answer:
C
Chapter: 69
Q1452:
The NodeHeap provides a reference to be searched in which heap?
A. ProcHeap
B. RecHeap
C. NodeHeap
D. HeapCreate
Correct Answer:
B
Chapter: 69
Q1453:
Which heap is created using GetProcessHeap()?
A. ProcHeap
B. RecHeap
C. NodeHeap
D. HeapAlloc
Correct Answer:
A
Chapter: 69
Q1454:
At the end of the process, which heap is NOT destroyed?
A. ProcHeap
B. RecHeap
C. NodeHeap
D. HeapFree
Correct Answer:
A
Chapter: 69
Q1455:
The data structure used for sorting is maintained in _______.
A. ProcHeap
B. RecHeap
C. NodeHeap
D. HeapCreate
Correct Answer:
C
Chapter: 70
Q1456:
Who compiled the material related to Topic 70?
A. Mueen Hasan
B. John Doe
C. Mary Smith
D. Ali Khan
Correct Answer:
A
Chapter: 70
Q1457:
The contact email for the compiler is _______.
A. mueenhasan@gmail.com
B. info@mueen.com
C. mr.mueen@hotmail.com
D. mueen.hasan@mail.com
Correct Answer:
A
Chapter: 70
Q1458:
The phone number of the compiler Mueen Hasan is 0301-_______?
A. 7923536
B. 1234567
C. 9876543
D. 1112223
Correct Answer:
A
Chapter: 70
Q1459:
What does "Topic 70" most likely refer to in a compiled document?
A. Chapter number
B. Section number
C. Question number
D. Topic name
Correct Answer:
D
Chapter: 70
Q1460:
Topic 70 belongs to which category?
A. A. Networking
B. B. Programming
C. C. Not specified
D. D. Database
Correct Answer:
C