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

Data Structure (QUEUE)

Quiz
β’
Computers
β’
1st - 2nd Grade
β’
Hard
Used 136+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec β’ 1 pt
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)
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Quiz Pemrograman dan Struktur Data

Quiz
β’
1st Grade
15 questions
IEEE Day

Quiz
β’
KG - 5th Grade
20 questions
Cyber Security Fundamentals MCQ's

Quiz
β’
1st Grade
25 questions
Aufgaben

Quiz
β’
KG - 5th Grade
20 questions
Kuis Informatika

Quiz
β’
1st Grade
20 questions
Evaluasi 1 Informatika Berfikir Komputasi

Quiz
β’
1st Grade
25 questions
latihan informatika bab1

Quiz
β’
1st - 2nd Grade
15 questions
C7 - Algorithms Quiz

Quiz
β’
1st Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
β’
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
β’
9th - 12th Grade
10 questions
American Flag

Quiz
β’
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
β’
5th Grade
30 questions
Linear Inequalities

Quiz
β’
9th - 12th Grade
20 questions
Types of Credit

Quiz
β’
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
β’
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
β’
6th - 8th Grade
Discover more resources for Computers
10 questions
American Flag

Quiz
β’
1st - 2nd Grade
10 questions
Identifying equations

Quiz
β’
KG - University
10 questions
2nd Grade math review

Quiz
β’
2nd Grade
26 questions
Place Value Review

Quiz
β’
2nd Grade
25 questions
2.4A Add Subtract within 20 quickly: set 3

Quiz
β’
1st - 3rd Grade
12 questions
Summer Trivia

Quiz
β’
1st - 5th Grade
15 questions
Music 2016

Quiz
β’
KG - 12th Grade
44 questions
logos

Quiz
β’
KG - University