Stack and Queue

Stack and Queue

University

25 Qs

quiz-placeholder

Similar activities

Artificial Intelligence CT-1

Artificial Intelligence CT-1

University

20 Qs

Micro Arch - CPUs & Fetch-Execute

Micro Arch - CPUs & Fetch-Execute

University

20 Qs

Pra UPS 2

Pra UPS 2

University

20 Qs

STM 2013 : FORMATIF T3-FORM & REPORT

STM 2013 : FORMATIF T3-FORM & REPORT

University

20 Qs

From Binary To Denary Conversion - IGCSE

From Binary To Denary Conversion - IGCSE

7th Grade - Professional Development

20 Qs

DWDM-2

DWDM-2

University

20 Qs

PC Safety and Maintenance

PC Safety and Maintenance

University

20 Qs

Relational Algebra and Calculus

Relational Algebra and Calculus

University

20 Qs

Stack and Queue

Stack and Queue

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Jyoti Jadhav

Used 90+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Choose correct output for the following sequence of operations.

push(5)

push(8)

pop

push(2)

push(5)

pop

pop

pop

push(1)

pop

8 5 2 5 1

8 5 5 2 1

8 2 5 5 1

8 1 2 5 5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Stack can be implemented using _________ and ________ ?

Array and Binary Tree

Linked List and Graph

Array and Linked List

Queue and Linked List

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When the function calls another function then the details of the previous function are stored in Stack?

Yes

No

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Consider an empty stack of an integers. Let the numbers 4,5,6,7,8 to be pushed on to this stack only in the order they appeared from left to right. Let P indicates PUSH and Q indicates POP operation. What sequence of operations should be performed on stack in order to get the output as 548.

PPPXPPXX

PPXPPPXX

PPXXPPPX

PXXPPXPX

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the postfix expression for the corresponding infix expression?

a+b*c+(d*e)

abc*+de*+

abc+*de*+

a+bc*de+*

abc*+(de)*+

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the postfix expression for the infix expression?

a-b-c

abc--

ab – c –

– -abc

-ab-c

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statement is incorrect with respect to infix to postfix conversion algorithm?

operand is always placed in the output

operator is placed in the stack when the stack operator has lower precedence

parenthesis are included in the output

higher and equal priority operators follow the same condition

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?