Queues and Stacks

Quiz
•
Computers
•
12th Grade
•
Easy
Jay Ho
Used 20+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following usees FIFO method
Queue
stack
linklist
binary tree
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This form of access is used to add and remove nodes from a queue.
LIFO, Last In First Out
FIFO, First In First Out
Both a and b
none
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following operation performed on a stack of size 5.
Push(1);
Pop();
Push(2);
Push(3);
Pop();
Push(4);
Pop();
Pop();
Push(5);
After the completion of all operation, the number of elements present on stack are
1
2
3
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following operation performed on a stack of size 5.
Push(1);
Pop();
Push(2);
Push(3);
Pop();
Push(4);
Pop();
Pop();
Push(5);
After the completion of all operation, the number of elements present on stack are
1
2
3
4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to add an element to a Queue?
dequeue()
enqueue()
push()
pop()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to add an element to a Stack?
dequeue()
enqueue()
push()
pop()
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
2.3.2. Algorithms for the Main Data Structures

Quiz
•
12th Grade
15 questions
Data Structures

Quiz
•
12th Grade
5 questions
Quiz sobre Estructuras de Datos

Quiz
•
12th Grade
10 questions
Tes Diagnostik

Quiz
•
9th - 12th Grade
11 questions
1.4.(c) Data Structures (video)

Quiz
•
12th Grade
10 questions
Data Types Quiz

Quiz
•
12th Grade
11 questions
Stacks And Queues

Quiz
•
12th Grade
10 questions
DATA STRUCTURES

Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade