DSA Day 3

DSA Day 3

University

9 Qs

quiz-placeholder

Similar activities

Data Structures : Queue

Data Structures : Queue

University

12 Qs

DSA Quiz 24.7.2024

DSA Quiz 24.7.2024

University

5 Qs

DAA Lesson 2 quiz

DAA Lesson 2 quiz

University

10 Qs

DSA day 4

DSA day 4

University

5 Qs

Data Structures

Data Structures

University

12 Qs

Quiz 1 - AK2 Section

Quiz 1 - AK2 Section

University

10 Qs

A-Level Computer Science Data Structures Quiz

A-Level Computer Science Data Structures Quiz

12th Grade - University

14 Qs

UNIT-2 QUEUE

UNIT-2 QUEUE

University

10 Qs

DSA Day 3

DSA Day 3

Assessment

Quiz

Computers

University

Hard

Created by

Skill Chaze

Used 3+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A linear list of elements in which deletion can be done from one end (front) and insertion can take place only at the other end (rear) is known as _____________

Queue

Stack

tree

Linked List

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The data structure required for Breadth First Traversal on a graph is?

Stack

Queue

tree

Array

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A queue follows __________

FIFO (First In First Out) principle

LIFO (Last In First Out) principle

Ordered array

Linear tree

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Circular Queue is also known as ________

Ring Buffer

Square Buffer

Rectangle Buffer

Curve Buffer

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If the elements “A”, “B”, “C” and “D” are placed in a queue and are deleted one at a time, in what order will they be removed?

ABCD

DCBA

DCAB

ABDC

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A data structure in which elements can be inserted or deleted at/from both ends but not in the middle is?

Queue

Circular queue

Dequeue

Priority queue

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A normal queue, if implemented using an array of size MAX_SIZE, gets full when?

Rear = MAX_SIZE – 1

Front = (rear + 1)mod MAX_SIZE

Front = rear + 1

Rear = front

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Queues serve major role in ______________

Simulation of recursion

Simulation of arbitrary linked list

Simulation of limited resource allocation

Simulation of heap sort

9.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is not the type of queue?

Ordinary queue

Single ended queue

Circular queue

Priority queue