Data Structure (QUEUE)

Data Structure (QUEUE)

1st - 2nd Grade

20 Qs

quiz-placeholder

Similar activities

Old Year 2 Computer reviewer 2021

Old Year 2 Computer reviewer 2021

2nd Grade

20 Qs

The Internet

The Internet

1st Grade

17 Qs

PTI 7-10

PTI 7-10

1st Grade

15 Qs

who doesn't love ali-a's intro

who doesn't love ali-a's intro

1st Grade

20 Qs

Ispace Quiz Questions(Scratch and Tynker)

Ispace Quiz Questions(Scratch and Tynker)

2nd - 6th Grade

20 Qs

FACT AND OPINION ICT

FACT AND OPINION ICT

2nd - 4th Grade

20 Qs

Computer Software

Computer Software

1st - 2nd Grade

15 Qs

A Computer System

A Computer System

1st - 3rd Grade

15 Qs

Data Structure (QUEUE)

Data Structure (QUEUE)

Assessment

Quiz

Computers

1st - 2nd Grade

Practice Problem

Hard

Used 137+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following is an application of Queue Data Structure?

When a resource is shared among multiple consumers.

When data is transferred asynchronously (data not necessarily received at same rate as sent) between two processes

Load Balancing

All of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

1

2

3

4

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

A priority queue can efficiently implemented using which of the following data structures? Assume that the number of insert and peek (operation to see the current highest priority item) and extraction (remove the highest priority item) operations are almost same.

Array

Linked List

Heap Data Structure like Binary Heap, Fibonacci Heap

None of the above

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is true about linked list implementation of queue?

In the push operation, if new nodes are inserted at the beginning of linked list, then in pop operation, nodes must be removed from end.

In push operation, if new nodes are inserted at the end, then in pop operation, nodes must be removed from the beginning.

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A Priority-Queue is implemented as a Max-Heap. Initially, it has 5 elements. The level-order traversal of the heap is given below :

10, 8, 5, 3, 2

Two new elements “1” and “7” are inserted in the heap in that order. The level-order traversal of the heap after the insertion of the elements is :

10, 8, 7, 5, 3, 2, 1

10, 8, 7, 2, 3, 1, 5

10, 8, 7, 1, 2, 3, 5

10, 8, 7, 3, 2, 1, 5

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

A queue is implemented using array such that ENQUEUE and DEQUEUE operations are performed efficiently. Which one of the following statements is CORRECT (n refers to the number of items in the queue) ?

Both operations can be performed in O(1) time

At most one operation can be performed in O(1) time but the worst case time for the other operations will be Ω(n)

The worst case time complexity for both operations will be Ω(n)

Worst case time complexity for both operations will be Ω(log n)

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?