
DAY-3 DSA BOOTCAMP

Quiz
•
Computers
•
University
•
Hard
ATHARVA GALNE
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which operation is used to add an element to a Stack?
Enqueue
Dequeue
Push
Pop
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What happens when you try to pop an element from an empty Stack?
It returns null
It returns the top element
It causes an underflow
It causes an overflow
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the time complexity of a push operation in a Stack?
1
n
n logn
n^2
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following applications may use a Stack?
Recursion
Parsing
Browser history
All of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Removes the last from Q
Keeps the Q same as it was before the call
Makes Q empty
Reverses the Q
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following operations on a queue data structure has a time complexity of O(1)?
A] Enqueue
B] Dequeue
C] Peek.
D] Clear.
Only A
A and B only
All of the Above
Only B
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about linked list implementation of queue?
A] In push operation, if new nodes are inserted at the beginning of linked list, then in pop operation, nodes must be removed from end.
B] In push operation, if new nodes are inserted at the end, then in pop operation, nodes must be removed from the beginning.
A only
B only
Both of the above
A and B
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
CP - Quiz 01

Quiz
•
University
10 questions
Queue

Quiz
•
University
8 questions
DSA Stack & Queue

Quiz
•
University
10 questions
DSA quiz

Quiz
•
University
10 questions
DAA-UNIT-4 QUIZ

Quiz
•
University
10 questions
ETRO1213 - Combinational Logic

Quiz
•
University
10 questions
Seatwork HASH (Data Structure)

Quiz
•
University
10 questions
Structure Data Review

Quiz
•
University - Professi...
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University