Stack and Queue

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Wayground Content
FREE Resource
Read more
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary principle that a stack follows?
Last Come Last Serve
First Come First Serve
Last In First Out
First In First Out
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a stack, which operation is used to add an element?
Push
Pop
Enqueue
Peek
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'peek' operation do in a stack?
Removes the last element
Adds a new element
Returns the last element without removing it
Returns the first element
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a feature of a min stack?
Tracks the sum of values
Tracks the average value
Tracks the minimum value
Tracks the maximum value
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What principle does a queue follow?
Last In First Out
First In First Out
Last Come Last Serve
First Come Last Serve
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a queue, which operation is used to remove the first element?
Pop
Dequeue
Push
Enqueue
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the complexity of the dequeue operation in a queue implemented with an array?
O(n)
O(1)
O(n^2)
O(log n)
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Data Structures and Algorithms The Complete Masterclass - Constructing a Binary Search Tree: From Preorder Traversal – P

Interactive video
•
University
6 questions
Breadth-first Search Complexity

Interactive video
•
University
11 questions
Data Structures and Algorithms The Complete Masterclass - Min Stacks

Interactive video
•
University
6 questions
Scala & Spark-Master Big Data with Scala and Spark - Project Overview - Data Structures

Interactive video
•
University
11 questions
From 0 to 1 Data Structures & Algorithms in Java - The Circular Queue - Tricky But Fast

Interactive video
•
University
5 questions
Describe an advanced data structure : Find the Given-Length Subarray with the Maximum Minimum

Interactive video
•
University
8 questions
From 0 to 1 Data Structures & Algorithms in Java - Implementation Of Topological Sort

Interactive video
•
University
3 questions
AWS Cloud Development Kit - From Beginner to Professional - SQS: Fully Managed Message Queues for Microservices

Interactive video
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University