Implementation of Stacks and Queues

Implementation of Stacks and Queues

12th Grade - University

16 Qs

quiz-placeholder

Similar activities

História da LA

História da LA

University

12 Qs

PLANNING + STEPS

PLANNING + STEPS

University

12 Qs

Quiz on List and Tuples

Quiz on List and Tuples

University

16 Qs

Database Concepts

Database Concepts

11th - 12th Grade

15 Qs

The AI Shield

The AI Shield

University

15 Qs

Unit 28 - Quiz #1

Unit 28 - Quiz #1

University

15 Qs

PROBLEM SOLVING USING R  UNIT I  MCQS

PROBLEM SOLVING USING R UNIT I MCQS

University

15 Qs

Implementation of Stacks and Queues

Implementation of Stacks and Queues

Assessment

Quiz

Education, Computers

12th Grade - University

Medium

Created by

Yomna Elkholy

Used 4+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The process of inserting an element in a stack is called ____________

Create

Push

Evaluation

Pop

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The process of removing an element from a stack is called ____________

Create

Push

Evaluation

Pop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pushing an element into a stack that already contains five elements and astack size of 5, results in a stack

Overflow

Crash

Underflow

User flow

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Entries in a stack are “ordered”. What is the meaning of this statement?

A collection of stacks is sortable

Stack entries may be compared using the ‘<’ operation

The entries are stored in a linked list

There is a sequential entry that is one by one

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following applications does not use a stack?

A parentheses balancing program

Tracking of local variables at run time

Compiler Syntax Analyzer

Data Transfer between two asynchronous process

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of the postfix expression 6 3 2 4 + – *:

1

40

74

-18

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The postfix form of the expression (A+ B)*(C*D- E)*F / G is?

AB+ CD*E – FG /**

AB + CD* E – F **G /

AB + CD* E – *F *G /

AB + CDE* *F *G /

Answer explanation

Best explanation: (((A+ B)*(C*D- E)*F) / G) is converted to postfix expression as

(AB+(*(C*D- E)*F )/ G)

(AB+CD*E-*F) / G

(AB+CD*E-*F G/).

Thus Postfix expression is AB+CDE-*F*G/

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?