
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
12 questions
Lesson 3 Linear Motion

Quiz
•
University
5 questions
Seguridad y Salud Ocupacional: Conceptos y casos

Quiz
•
University
10 questions
Quiz sobre Distribuições de Probabilidade Discreta

Quiz
•
University
12 questions
Torsión

Quiz
•
University
15 questions
Quiz Counter, FSM 2024

Quiz
•
University
6 questions
Ring Leader: Lesson 3 – Challenge

Quiz
•
9th Grade - University
15 questions
1-SWITCH CONFIGURACIÓN BÁSICA

Quiz
•
University
6 questions
ANÁLISIS DE VIBRACIÓN DE MOTORES

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