Stack and Queue Concepts

Stack and Queue Concepts

University

25 Qs

quiz-placeholder

Similar activities

LM- UNI II | SISTEMAS DE ALMACENAMIENTO Y MANEJO DE MATERIALES

LM- UNI II | SISTEMAS DE ALMACENAMIENTO Y MANEJO DE MATERIALES

University

26 Qs

Data Structures cse 2 yr

Data Structures cse 2 yr

University

20 Qs

Linked List Operations Quiz

Linked List Operations Quiz

University

20 Qs

Compiler Design unit 1 Quiz

Compiler Design unit 1 Quiz

University

20 Qs

Salaar

Salaar

University

20 Qs

ECE415 - FINALS QUIZ 1

ECE415 - FINALS QUIZ 1

University

20 Qs

IOT in Robotics Quiz

IOT in Robotics Quiz

University

30 Qs

CODEBURST : JAVA EDITION

CODEBURST : JAVA EDITION

University

20 Qs

Stack and Queue Concepts

Stack and Queue Concepts

Assessment

Quiz

Engineering

University

Medium

Created by

Shabariram P

Used 8+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about a stack?

FIFO

LIFO

Random access

Both FIFO and LIFO

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The time complexity of push and pop operations in a stack implemented using a linked list is:

O(1)

O(n)

O(log n)

O(n²)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following applications uses a stack?

Undo functionality in text editors

CPU scheduling

BFS traversal

Priority queue

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when a stack overflows?

Memory leaks

Stack exceeds its capacity

Stack underflow

Program terminates gracefully

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure is used for expression evaluation and syntax parsing?

Queue

Stack

Linked list

Graph

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Postfix expression evaluation using a stack has a time complexity of:

O(n²)

O(n)

O(log n)

O(n log n)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following stack operations? `push(10), push(20), pop(), push(30), pop()`

10

20

30

10 and 30

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?