Stack and Its Applications Quiz

Stack and Its Applications Quiz

University

32 Qs

quiz-placeholder

Similar activities

Data Structure & Algorithm-Quiz-1

Data Structure & Algorithm-Quiz-1

University

30 Qs

Data Structures and Algorithm

Data Structures and Algorithm

11th Grade - Professional Development

30 Qs

BSIS 2-1 =  arrays , STACKS and Queues

BSIS 2-1 = arrays , STACKS and Queues

University

30 Qs

Trees, Linked Lists, Stacks and Queues

Trees, Linked Lists, Stacks and Queues

11th Grade - University

30 Qs

BUG-OFF

BUG-OFF

University

30 Qs

Algorithms Data

Algorithms Data

11th Grade - Professional Development

30 Qs

Data Structures and Algorithms Quiz

Data Structures and Algorithms Quiz

University

30 Qs

Battle With DSA

Battle With DSA

University

30 Qs

Stack and Its Applications Quiz

Stack and Its Applications Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Bhupi Saud

Used 4+ times

FREE Resource

32 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

What is the principle followed by a stack?

First-in-first-out (FIFO)

Last-in-first-out (LIFO)

First-in-last-out (FILO)

Random access

2.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Which operation is used to insert an element into a stack?

Pop

Push

Enqueue

Dequeue

3.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

What does it mean when a stack is in an overflow state?

It can accept more elements.

It has reached its maximum capacity.

It is completely full.

It is completely empty.

4.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Which of the following is NOT an application of stacks?

Expression evaluation

Undo operations in text editors

Page-visited history in web browsers

Task management

5.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

What is the time complexity of the push operation in a stack?

O(n)

O(n^2)

O(log n)

O(1)

6.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

In which scenario would a stack be used?

To evaluate arithmetic expressions

To implement a queue

To store data in a sorted manner

To maintain a list of items in order

7.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

What is the result of the postfix expression '6 3 2 4 + - *'?

74

-18

40

1

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?