Search Header Logo

Queue

Authored by Nayli Zayani

Information Technology (IT)

University

Used 2+ times

Queue
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Queue is a First In and First Out data structure

TRUE

FALSE

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is correct for ' enqueue( ) '

Remove element from the front

Check if the queue is empty

Check if the queue is full

Add element to the tail

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which one is correct for ' dequeue( ) '

Removes the front element from the queue.
Peeks at the front element without removing it.
Adds an element to the back of the queue.
Clears all elements from the queue.

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the similarity for ' peek( ) ' and ' element( ) '

Both methods allow access to elements without removal.
'peek()' returns the first element only.
'element()' can only be used on empty collections.
Both methods remove elements from the collection.

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Select the situations that a Queue data structure would be used?


Printer in a room full of computers

Characters typed on a keyboard

Back button

Undo button

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When to call this method ?

' empty( ) '

Check whether the queue is empty or not

Check whether the queue is full or not

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Queue Insertion & Deletion take place at ________________.

same end

different end

first end

last end

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?