Search Header Logo

Queue

Authored by Emely Lestari

Computers

University

Used 1+ times

Queue
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The general principle of queue is

First in and last out

When do pop, top element is removed

First in and first out

Use push to remove element

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

With alternative-3 implementation of queue (circular), if tail is at the last element then add a new element will be located in:

in the random position

the last position

the first position

in the middle position

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

With naive implementation (alternative-1) of Queue:

Back never moves when delete element

Front never moves when delete element

All element always move when delete element

Back never moves when add element

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

With alternative-3 implementation of queue (circular):

Front moves when delete element

Back moves when delete element

No element moves when add or delete element

Back and front move when delete element

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

With alternative-2 implementation of Queue (move when necessary):

Back never moves when add element

Back never moves when delete element

All elements do not move when delete element except if the back is in the last position

Front always moves when delete element

Access all questions and much more by creating a free account

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

Already have an account?