
MIDTERM EXAM - DSA - C
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Medium
PPSD Arts
Used 1+ times
FREE Resource
Enhance your content in a minute
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data structures works on the principle of Last In, First Out (LIFO)?
Queue
Stack
Linked List
Tree
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operation is used to remove an element from the stack?
Pop
Push
Peek
Delete
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operation returns the top element of a stack without removing it?
Pop
Peek
Push
Display
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when you try to pop an element from an empty stack?
Stack Overflow
Stack Underflow
Null Exception
Invalid Operation
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following can be used to implement a stack?
Arrays
Linked Lists
Both A and B
Queues
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the content of the stack after performing: push(1), push(2), push(3), pop(), push(4)?
1, 2, 3
1, 2, 4
1, 3, 4
2, 3, 4
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which application uses stacks?
Recursion
Expression evaluation
Undo/Redo feature in editors
All of the above
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
30 questions
UH INFORMATIKA
Quiz
•
10th Grade - University
35 questions
Long Quiz(CC106)
Quiz
•
University
40 questions
PF117 WEEK 4 -3
Quiz
•
University
35 questions
electronica
Quiz
•
University
36 questions
20.LGE_Mock_DevelopmentEvironment_Vgit_Git_BB
Quiz
•
University
30 questions
UTS - Sistem Operasi
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
