
stacks

Quiz
•
Engineering
•
University
•
Hard

Megha Poojary
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
1. What is the time complexity of the "push" operation in a stack implemented using a linked list?
A) O(1)
B) O(log n)
C) O(n)
D) O(n log n)
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
2. Which of the following is a disadvantage of using a stack implemented using an array?
A) Slow access to elements
B) Limited use of memory
C) Risk of stack overflow
D) All of the above
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
3. What is the purpose of the "peek" operation in a stack?
A) To add an element to the top of the stack
B) To remove an element from the top of the stack
C) To return the top element of the stack without removing it
D) To search for an element in the stack
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
4. Which of the following data structures is best suited for implementing recursive algorithms?
A) Array
B) Linked List
C) Stack
D) Queue
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
5. What is the time complexity of the "pop" operation in a stack implemented using a linked list?
A) O(1)
B) O(log n)
C) O(n)
D) O(n log n)
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
6. Which of the following is an advantage of using a stack implemented using a linked list?
A) Slow access to elements
B) Limited use of memory
C) Efficient use of memory
D) Fast access to elements
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
7.What is the time complexity of the "push" operation in a stack implemented using an array?
A) O(1)
B) O(log n)
C) O(n)
D) O(n log n)
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
CC QUIZ 20/5/2025 A SEC

Quiz
•
University
13 questions
Real-Time Operating Systems Quiz 1

Quiz
•
University
10 questions
Security 2.2

Quiz
•
University
13 questions
TOPIC 2-ANALYSIS OF SECTION

Quiz
•
University
15 questions
DDCO_LAB_QUIZ- By Gururaj Surampalli

Quiz
•
University
10 questions
Basic Diesel Engine

Quiz
•
University
10 questions
Module 1 Simple stresses and basics

Quiz
•
University
5 questions
DEMO

Quiz
•
University
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 Engineering
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