Stack, Queue, Linked List

Assessment
•
Christian Willaum
•
Computers
•
University
•
69 plays
•
Medium
Student preview

22 questions
Show all answers
1.
MULTIPLE CHOICE
2 mins • 1 pt
If the elements “A”, “B”, “C” and “D” are placed in a queue and are deleted one at a time, in what order will they be removed?
2.
MULTIPLE CHOICE
2 mins • 1 pt
In linked list implementation of a queue, the important condition for a queue to be empty is?
3.
MULTIPLE CHOICE
2 mins • 1 pt
4.
MULTIPLE CHOICE
2 mins • 1 pt
How many stacks are needed to implement a queue. Consider the situation where no other data structure like arrays, linked list is available to you.
5.
MULTIPLE CHOICE
2 mins • 1 pt
How many queues are needed to implement a stack. Consider the situation where no other data structure like arrays, linked list is available to you.
6.
MULTIPLE CHOICE
2 mins • 1 pt
Which of the following is true about linked list implementation of queue?
7.
MULTIPLE CHOICE
2 mins • 1 pt
Consider the following operation along with Enqueue and Dequeue operations on queues, where k is a global parameter.
What is the worst case time complexity of a sequence of n MultiDequeue() operations on an initially empty queue?
8.
MULTIPLE CHOICE
2 mins • 1 pt
Suppose implementation supports an instruction REVERSE, which reverses the order of elements on the stack, in addition to the PUSH and POP instructions. Which one of the following statements is TRUE with respect to this modified stack?
9.
MULTIPLE CHOICE
3 mins • 1 pt
The following postfix expression with single digit operands is evaluated using a stack:
Note that ^ is the exponentiation operator. The top two elements of the stack after the first * is evaluated are:
10.
MULTIPLE CHOICE
2 mins • 1 pt
If the sequence of operations - push (1), push (2), pop, push (1), push (2), pop, pop, pop, push (2), pop are performed on a stack, the sequence of popped out values
Explore all questions with a free account
Popular Resources on Quizizz
17 questions
CAASPP Math Practice 3rd

•
3rd Grade
15 questions
Grade 3 Simulation Assessment 1

•
3rd Grade
37 questions
Math STAAR Review

•
4th Grade
12 questions
Earth Day

•
4th Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2425sy

•
5th Grade
20 questions
Science STAAR Review! 23-24

•
5th Grade
22 questions
HCS Grade 4 Simulation Assessment_1 2425sy

•
4th Grade
16 questions
Grade 3 Simulation Assessment 2

•
3rd Grade