Search Header Logo

Data structure

Authored by praveen s

Computers

University

Used 1+ times

Data structure
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is a stack?

A type of linked list

A linear data structure following FIFO order

A linear data structure following LIFO order

A hierarchical data structure

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is NOT a basic stack operation?

Push

Pop

Enqueue

Peek

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the result of evaluating the postfix expression 5 3 + 2 *?

10

16

17

11

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the key difference between a queue and a stack?

Queue follows FIFO, stack follows LIFO

Queue follows LIFO, stack follows FIFO

Both are the same

Stack requires more memory than queue

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the operation used to insert an element into a queue?

Pop

Enqueue

Push

Dequeue

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which type of queue assigns priority to elements?

Circular Queue

Deque

Priority Queue

Simple Queue

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the worst-case time complexity of stack operations (Push and Pop) using an array?

O(1)

O(n)

O(log n)

O(n²)

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Computers