Which data structure does a program’s run-time system use to manage function calls and recursion?
Correct answer C. Stack
Subject / 609 questions
Page 13 of Programming multiple-choice questions with answers. Tap an option to check yourself.
Page 13 of 31
Correct answer C. Stack
Correct answer A. A B C * + D E / −
Correct answer B. A B + C D − *
Correct answer A. 4
Correct answer D. 10
Correct answer B. A B C ^ ^
Correct answer A. Stack
Correct answer D. (rear + 1) % n == front
Correct answer D. It reuses array slots freed by dequeues, so space at the front is not wasted
Correct answer D. front = 2, rear = 0
Correct answer B. A queue that allows insertion and deletion at both ends
Correct answer C. Binary heap
Correct answer A. O(1)
Correct answer A. 16
Correct answer D. 15
Correct answer C. 24
Correct answer B. 11
Correct answer B. Every level is completely filled except possibly the last, which is filled from left to right
Correct answer A. 50, 30, 20, 40, 70, 60, 80
Correct answer D. The operations on the data and their behaviour, without fixing the implementation