DS-UNIT-2-Stack Queue

DS-UNIT-2-Stack Queue

University

50 Qs

quiz-placeholder

Similar activities

Compro Quiz#1

Compro Quiz#1

University

51 Qs

Komputer Akuntansi

Komputer Akuntansi

University

50 Qs

Revision on Artificial Intelligence

Revision on Artificial Intelligence

University

50 Qs

EN COMP

EN COMP

University

45 Qs

#3 CIW Data Analyst - Certification Prep

#3 CIW Data Analyst - Certification Prep

9th Grade - University

54 Qs

Algoritmika 1.

Algoritmika 1.

10th Grade - University

50 Qs

DDPTJKT - Latihan Soal PTS Genap

DDPTJKT - Latihan Soal PTS Genap

10th Grade - University

50 Qs

Quiz ( SIL )

Quiz ( SIL )

University

45 Qs

DS-UNIT-2-Stack Queue

DS-UNIT-2-Stack Queue

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Umesh Thoriya

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

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

Underflow

Empty collection

Overflow

Garbage Collection

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

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

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

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

284

213

142

71

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

If the elements "A", "B", "C" and "D" are placed in a queue and are deleted one at a time, in what order will they be removed?

ABCD

DCBA

DCAB

ABDC

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

A normal queue, if implemented using an array of size MAX_SIZE, gets full when?

Rear = MAX_SIZE - 1

Front = (rear + 1)mod MAX_SIZE

Front = rear + 1

Rear = front

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

How many stacks are needed to implement a queue. Consider the situation where no other data structure like arrays, linked list is available to you.

1

2

3

4

7.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which of the following is NOT a common operation in a queue data structure?

Enqueue

Dequeue

Peek

Shuffle

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?