Data Structures Training Quiz2

Data Structures Training Quiz2

University

15 Qs

quiz-placeholder

Similar activities

epithelium

epithelium

University

10 Qs

ASM553 - TOPIC 7

ASM553 - TOPIC 7

University

10 Qs

ASL1 M3 Learning Targets

ASL1 M3 Learning Targets

University

15 Qs

Healthy Food

Healthy Food

KG - Professional Development

15 Qs

SDG YOUTH DIALOGUE 24'

SDG YOUTH DIALOGUE 24'

University

13 Qs

Quiz IAS 16

Quiz IAS 16

University

10 Qs

Module 8: State and Non-state Institutions

Module 8: State and Non-state Institutions

11th Grade - University

20 Qs

Thompson ch 9

Thompson ch 9

University

10 Qs

Data Structures Training Quiz2

Data Structures Training Quiz2

Assessment

Quiz

Education

University

Practice Problem

Medium

Created by

Christina Magneta S

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a stack, if a user tries to remove an element from an empty stack it is called _________

Underflow

Empty Collection

Overflow

Garbage Collecction

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

1

40

74

-18

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Here is an infix expression: 4 + 3*(6*3-12). Suppose that we are using the usual stack algorithm to convert the expression from infix to postfix notation. The maximum number of symbols that will appear on the stack AT ONE TIME during the conversion of this expression?

1

2

3

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following postfix expression with single digit operands is evaluated using a stack:

              8 2 3 ^ / 2 3 + 5 1 -

Note:   Note that ^ is the exponentiation operator. The top two elements of the stack after the                         
                first * is evaluated are:

3,2

1,5

6,1

5,7

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Assume that the operators +, -, × are left associative and ^ is right associative. The order of precedence (from highest to lowest) is ^, x , +, -. The postfix expression corresponding to the infix expression a + b × c - d ^ e ^ f is

abc × + def ^ ^ -

abc × + de ^ f ^ -

ab + c × d - e ^ f ^

+ a × bc ^ ^ def

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To evaluate an expression without any embedded function calls :

As many stacks as the height of the expression tree are needed

One stack is enough

Two Stacks are needed

A Turing machine is needed in general case

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The result evaluating the postfix expression 10 5 + 60 6 / * 8 – is

284

213

142

71

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?