DSA (QUIZ 2) Stacks and Queues Quiz
Quiz
•
Information Technology (IT)
•
University
•
Medium
M'Alou Gonzales
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a stack?
A collection of elements identified by an index.
A linear data structure that follows First In, First Out (FIFO) principle.
A collection of nodes with pointers.
A linear data structure that follows Last In, First Out (LIFO) principle.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operation is not typically associated with stacks?
Push
Pop
Enqueue
Peek
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which order are elements accessed in a queue?
Random order
Last In, First Out (LIFO)
First In, First Out (FIFO)
In reverse order
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following operations is used to add an element to a stack?
Pop
Enqueue
Push
Peek
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the dequeue operation do in a queue?
Adds an element to the end of the queue
Removes an element from the front of the queue
Adds an element to the front of the queue
Removes an element from the end of the queue
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an application of stacks?
Managing browser history
Printer job scheduling
Task scheduling in operating systems
File download management
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following sequence of operations on an empty stack? Push(1), Push(2), Pop(), Push(3), Pop()
1
2
3
Stack is empty
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Kelas 8 - Halaman 10 (UH Bab 1)
Quiz
•
8th Grade - University
15 questions
Quiz #2
Quiz
•
University
10 questions
PT101: Quiz No. 1
Quiz
•
University
20 questions
LONG QUIZ MIS
Quiz
•
University
10 questions
General ExpressJS Quiz
Quiz
•
University
20 questions
Database quiz part 1 - D2T4
Quiz
•
University
20 questions
Algorithm Characteristics and Applications Quiz
Quiz
•
12th Grade - University
17 questions
Machine Learning Quiz
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
