Data Structure (Stack) quiz - 4

Data Structure (Stack) quiz - 4

University

10 Qs

quiz-placeholder

Similar activities

Quiz về Kiểu Dữ Liệu List và Set (1)

Quiz về Kiểu Dữ Liệu List và Set (1)

7th Grade - University

15 Qs

Questionário 2.2

Questionário 2.2

University

5 Qs

Preguntas sobre DevOps y Docker

Preguntas sobre DevOps y Docker

University

14 Qs

Videocolaboración: Fundamentos de redes

Videocolaboración: Fundamentos de redes

University

10 Qs

Quiz Array dan Metode JavaScript

Quiz Array dan Metode JavaScript

University

10 Qs

Punteros y Memoria Dinamica

Punteros y Memoria Dinamica

University

15 Qs

Tut_03

Tut_03

University

12 Qs

Dasar Koding dan Kecerdasan Buatan

Dasar Koding dan Kecerdasan Buatan

10th Grade - University

10 Qs

Data Structure (Stack) quiz - 4

Data Structure (Stack) quiz - 4

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Ashish Kumar

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The result evaluating the postfix expression

10 5 + 60 6 / * 8 –

is

284

213

142

71

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Consider the following operations performed on a stack of size 5 : Push (a); Pop() ; Push(b); Push(c); Pop(); Push(d); Pop();Pop(); Push (e) Which of the following statements is correct?

Underflow occurs

Stack operations are performed smoothly

Overflow occurs

None of these

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Postfix of

(A + B^ D) / (E – F) + G

is

ABD + ^EF – / G+

ABD + ^EF / – G+

ABD^ + EF – / G+

ABD^ + EF / – G+

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the main principle behind the stack data structure?

FIFO (First In, First Out)

LIFO (Last In, First Out)

Priority Queue

None of these

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity for the push and pop operations in a stack

O(n)

O(n^2)

O(1)

O(logn)

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In which real-world scenario can a stack be applied?

Undo functionality in text editors

Browser history navigation

Both of these

None of these

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What would happen if we use a stack with a fixed size and try to perform a push operation when the stack is full?

The new element is ignored

Underflow error

The stack automatically expands

Overflow error

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?

Discover more resources for Information Technology (IT)