Queue

Queue

University

10 Qs

quiz-placeholder

Similar activities

Kekurangan dan Keunggulan Struktur Data

Kekurangan dan Keunggulan Struktur Data

11th Grade - University

15 Qs

data abstraction

data abstraction

University

12 Qs

OS-Unit-1

OS-Unit-1

University

10 Qs

Counting Sort

Counting Sort

University

7 Qs

Struktur Data

Struktur Data

University

10 Qs

Module 5: Creating Dynamic Web Pages with Scripting

Module 5: Creating Dynamic Web Pages with Scripting

University

15 Qs

TOPIC 3: SEQUENTIAL LIST

TOPIC 3: SEQUENTIAL LIST

University

15 Qs

Algorithms: Divide and Conquer vs Greedy

Algorithms: Divide and Conquer vs Greedy

University

15 Qs

Queue

Queue

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

Nayli Zayani

Used 2+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?