Question
21. Placing data on a stack is called popping the stack. Select one: True False 24. A stack is a first-in-first-out data structure. Select one:
21.
Placing data on a stack is called popping the stack.
Select one:
True
False
24.
A stack is a first-in-first-out data structure.
Select one:
True
False
25.
f you need to insert an element in the front of a list with N nodes (and move the other elements back one place), how many nodes do you have to move?
Select one:
a. 0
b. 1
c. N-1
d. N
26.
A stack exhibits ________ behavior.
Select one:
a. last-in/ first-out
b. last-in/last-out
c. first-in/first-out
d. None of these
27.
There is no need for error checking when pushing a stack.
Select one:
True
False
28.
When would you use a linked list over an array or a dynamic array?
Select one:
a. when you know the maximum size at compile time
b. when you know the maximum size at run-time
c. when you do not know the maximum size
d. when you need to access any item quickly
29.
If you write a linked list class, then you should implement the destructor, copy constructor, and the assignment operator.
Select one:
True
False
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started