
DSA + System Design - 12

Quiz
•
Computers
•
Professional Development
•
Medium
Puneet Kansal
Used 2+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the time complexity of the push and pop operations in a stack implemented with a linked list?
O(n)
O(log n)
O(1)
O(n log n)
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Given an infix expression: A+B∗(C−D)/E what is the equivalent postfix expression?
AB+CD−∗E/
ABCD−∗+E/
AB+CD∗−E/
ABCD−∗E/+
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many stacks are required to implement a queue using the stack data structure?
1
2
3
4
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is not an application of stacks?
Function call management
Infix to postfix conversion
Managing a list of items
Balancing symbols
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In a stack implemented using an array, what is the time complexity of accessing the i-th element from the top of the stack?
O(1)
O(i)
O(n-i)
O(n)
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following conditions indicate that a stack is empty?
top == stack.length
top == stack.length - 1
top == 0
top == -1
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In the context of recursion, the stack is used to store which of the following?
Static variables
Global variables
Local variables and return addresses
Register values
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
Python

Quiz
•
Professional Development
10 questions
Games

Quiz
•
Professional Development
10 questions
FUNCIONES DE BUSQUEDA

Quiz
•
Professional Development
15 questions
Sesión 01 - Introducción a Word

Quiz
•
Professional Development
15 questions
JF UIT 2022 - Game 2

Quiz
•
Professional Development
10 questions
FitTalks - MongoDB

Quiz
•
Professional Development
8 questions
Elastic Essentials Quiz

Quiz
•
Professional Development
15 questions
Programming

Quiz
•
Professional Development
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 Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development