Queue

Queue

University

10 Qs

quiz-placeholder

Similar activities

insertion sort

insertion sort

University

6 Qs

Algorithms: Divide and Conquer vs Greedy

Algorithms: Divide and Conquer vs Greedy

University

15 Qs

Quiz Struktur Data

Quiz Struktur Data

University

10 Qs

DSA (Quiz 1) Arrays and Linked Lists

DSA (Quiz 1) Arrays and Linked Lists

University

15 Qs

 uji coba Strategi Algoritma dan Pemrograman

uji coba Strategi Algoritma dan Pemrograman

11th Grade - University

15 Qs

Understanding Arrays and Loops in JavaScript

Understanding Arrays and Loops in JavaScript

11th Grade - University

7 Qs

Module 5: Creating Dynamic Web Pages with Scripting

Module 5: Creating Dynamic Web Pages with Scripting

University

15 Qs

Interruptions Quiz

Interruptions Quiz

University

8 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?