Queue MCQ Quiz in मल्याळम - Objective Question with Answer for Queue - സൗജന്യ PDF ഡൗൺലോഡ് ചെയ്യുക

Last updated on Mar 8, 2025

നേടുക Queue ഉത്തരങ്ങളും വിശദമായ പരിഹാരങ്ങളുമുള്ള മൾട്ടിപ്പിൾ ചോയ്സ് ചോദ്യങ്ങൾ (MCQ ക്വിസ്). ഇവ സൗജന്യമായി ഡൗൺലോഡ് ചെയ്യുക Queue MCQ ക്വിസ് പിഡിഎഫ്, ബാങ്കിംഗ്, എസ്എസ്‌സി, റെയിൽവേ, യുപിഎസ്‌സി, സ്റ്റേറ്റ് പിഎസ്‌സി തുടങ്ങിയ നിങ്ങളുടെ വരാനിരിക്കുന്ന പരീക്ഷകൾക്കായി തയ്യാറെടുക്കുക

Latest Queue MCQ Objective Questions

Top Queue MCQ Objective Questions

Queue Question 1:

Which of the following option is a use of Queue?

  1. Working of recursive function
  2. function calls
  3. CPU scheduling
  4. Evoluation of mathematical expressions.

Answer (Detailed Solution Below)

Option 3 : CPU scheduling

Queue Question 1 Detailed Solution

The correct answer is CPU scheduling

Key Points

  • Queues are often used in operating systems for managing processes and scheduling tasks to be executed by the CPU.
  • In CPU scheduling, processes are placed in a queue and are executed in a first-come-first-serve manner or based on priority, depending on the scheduling algorithm in use.

 Additional InformationApplications of Queue in Operating systems:

  • Memory management 
  • CPU Scheduling 
  • Spooling in printers
  • FCFS ( first come first serve) scheduling, example: FIFO queue
  • Spooling in printers
  • Semaphores

Queue Question 2:

Which of the following data structure is used by Breadth First Search of Graph?

  1. Array
  2. Linked list
  3. Pointer
  4. Queue
  5. None of these

Answer (Detailed Solution Below)

Option 4 : Queue

Queue Question 2 Detailed Solution

Breadth-first search (BFS) is an algorithm for traversing or searching   tree or graph data structures.

It starts at the tree root and explores the neighbor nodes first, before moving to the next level neighbors.

Breadth First Search (BFS) algorithm traverses a graph in a breadthward motion and uses a queue to remember to get the next vertex to start a search, when a dead end occurs in any iteration, while DFS uses stack.

Queue Question 3:

The initial configuration of circular queue is as follows:(Assume initially front pointer points to the node carrying data q).

Chapter Test 2   Stock & Queue Images Q20

what is the status if queue content after the following sequence of steps are performed on the circular queue

i) enqueue ‘a’

ii) dequeue

iii) enqueue ‘b’

iv) dequeue

v) enqueue ‘c’

vi) dequeue

"--" represents empty node.

  1. a – c  b –
  2. – a  b – c
  3. c  a – b –
  4. a  b  c – –

Answer (Detailed Solution Below)

Option 4 : a  b  c – –

Queue Question 3 Detailed Solution

If we see circular queue pictorially as

Chapter Test 2   Stock & Queue Images Q20a

In circular queue, rear pointer points to the last inserted elements

Front pointer points to the element which will be deleted in next

So, according to that, if the given operations are performed.

i)

Chapter Test 2   Stock & Queue Images Q20b

ii) 

Chapter Test 2   Stock & Queue Images Q20c

iii)

Chapter Test 2   Stock & Queue Images Q20d

iv)

Chapter Test 2   Stock & Queue Images Q20e

v) 

Chapter Test 2   Stock & Queue Images Q20f

vi)

Chapter Test 2   Stock & Queue Images Q20g

Chapter Test 2   Stock & Queue Images Q20h

Queue Question 4:

Elements 10, 8, 17, and 6 are in the queue and are eliminated one by one. The order of elements received is __________?

  1. 10, 17, 8, and 6
  2. 6, 8, 17, and 10
  3. 10, 8, 17, and 6
  4. 6, 17, 8, and 10

Answer (Detailed Solution Below)

Option 3 : 10, 8, 17, and 6

Queue Question 4 Detailed Solution

The correct answer is option 3.

Concept:

Queue:

  • The queue is an abstract data structure, somewhat similar to Stacks.
  • Insertion in a queue happens at the rear end and deletion happens at the front end.
  • Unlike stacks, a queue is open at both ends. One end is always used to insert data (en queue) and the other is used to remove data (de queue). Queue follows the First-In-First-Out methodology, i.e., the data item stored first will be accessed first.
  • Queue follows the principle of First In First Out (FIFO) and Last In Last Out (LILO)

Explanation:

Queue follows the principle of First In First Out so the element which comes first popped first. The poped elements order is 10, 8, 17, and 6.

F1 Madhuri Engineering 07.07.2022 D2

Hence the correct answer is 10, 8, 17, and 6.

Queue Question 5:

Which of the following data structure is follows for train ticket is in the waiting list?

  1. stack 
  2. queue
  3. tree
  4. linked list

Answer (Detailed Solution Below)

Option 2 : queue

Queue Question 5 Detailed Solution

The correct answer is option 2.

Concept:

Queues:

  • The queue is an abstract data structure, somewhat similar to Stacks.
  • Unlike stacks, a queue is open at both ends. One end is always used to insert data (en queue) and the other is used to remove data (dequeue). Queue follows the First-In-First-Out methodology, i.e., the data item stored first will be accessed first.
  • Queue follows the principle of First In First Out (FIFO) and Last In Last Out (LILO)

Explanation:

If a train ticket is on the waiting list (such as W/L1), it means the ticket is in a queue of tickets waiting to get confirmed, as per the increasing order of waiting numbers. If a confirmed ticket is canceled, the W/ L1 numbered ticket is removed from the FRONT of the waiting queue and confirmed.

It follows the queue data structure. Stack is not suitable because it follows the first in last out (FILO) manner. Tree and linked lists are also not suitable because storing the previous node is required and they are not aware of which node came first.

Hence the correct answer is the queue.

Queue Question 6:

If the elements  2, 17, 11, 11, 7  are placed in a queue and 3 dequeue operations are performed one at a time and the items dequeued are placed onto the stack.

Now 3 pop operations are performed on stack and the items popped are enqueued in the queue. What is the state of queue?

  1. 2, 17, 11, 11 and 7
  2. 11, 7, 11, 2 and 17
  3. 11, 7, 11, 17 and 2
  4. 11, 7, 2, 17 and 2

Answer (Detailed Solution Below)

Option 3 : 11, 7, 11, 17 and 2

Queue Question 6 Detailed Solution

The correct option is 11, 7, 11, 17 and 2

CONCEPT:

The queue is a linear data structure that follows First In First Out Order for insertion and deletion of items that take place using Front and Rear pointers.

EXPLANATION:

In the above question, items  2, 17, 11, 11, and 7  are added to Queue. 

The content in the Queue will be as follows:

2 17 11 11 7      

    F                             R

Now if we perform 3 dequeue operations on the Queue:

2 17 11 11 7      

                           F      R

Dequeued items are 2, 7, and 11 and are pushed into the stack in the same order as shown

Stack:

2 17 11    

                         TOP          

Now 3 pop operations will remove the elements in the order 11, 7, and 2 which are then enqueued in the Queue

Queue:

2 17 11 11 7 11 17 2

                       F                       R

Queue Question 7:

If a queue is implemented using two stacks. In enqueue operation, all the elements are pushed from the first stack to the second stack. In dequeue operation pop an element from 1st stack.

What is the time complexity of enqueue and dequeue operation?

  1. O(1), O(1)
  2. O(n), O(1)
  3. O(log n), O(1)
  4. O(log n), O(n)

Answer (Detailed Solution Below)

Option 2 : O(n), O(1)

Queue Question 7 Detailed Solution

Enqueue:

While 1st  stack is not empty, push everything from 1st to 2nd stack.

Push an element to 1st stack.

Push everything back to 1st stack.

Here time complexity will be O(n)

Dequeue:

while 1st stack is not empty then Pop an item from stack1 and return it

Here time complexity will be O(1)

Queue Question 8:

Time taken for addition of an element in a queue is of the order of 

  1. O(1) 
  2. O(n) 
  3. O(log n) 
  4. None of the above

Answer (Detailed Solution Below)

Option 1 : O(1) 

Queue Question 8 Detailed Solution

The correct answer is O(1) 

Key Points

  • A queue is a type of data structure that follows the First In, First Out (FIFO) principle. This means the first element added is the first one to be removed.
  • When we add (enqueue) an element to a queue, it is typically added to the end of the queue.
  • In an array-based queue, the addition operation involves placing the new element at the position indicated by the "rear" pointer and then incrementing that pointer. Other elements in the queue need not be shifted or checked. This operation is constant in time, i.e., O(1).
  • Similarly, in a linked-list based queue, the addition of an element involves creating a new node, setting its value, and updating pointers (typically pointing the "next" reference of the last node to the newly added node). This operation does not depend on the size of the queue either, so it's also a constant-time operation i.e., O(1).

Regardless of the size of the queue, enqueue operation is always a constant time operation, having a time complexity of O(1).

Queue Question 9:

Suppose a stack implementation supports an instruction REVERSE, which reverses the order of elements on the stack, in addition to the PUSH and POP instructions. Which one of the following statements is TRUE with respect to this modified stack?

  1. A queue cannot be implemented using this stack.
  2. A queue can be implemented where ENQUEUE takes a single instruction and DEQUEUE takes a sequence of two instructions.
  3. A queue can be implemented where ENQUEUE takes a sequence of three instructions and DEQUEUE takes a single instruction.
  4. A queue can be implemented where both ENQUEUE and DEQUEUE take a single instruction each.

Answer (Detailed Solution Below)

Option 3 : A queue can be implemented where ENQUEUE takes a sequence of three instructions and DEQUEUE takes a single instruction.

Queue Question 9 Detailed Solution

Explanation:

We want to implement queue using stack which has three functions reverse, push and pop.

Example:

Suppose we want to insert a,b in queue using stack then

ENQUEUE item a:

Step 1: reverse (stack)

Step 2: push (a)

Step 3: reverse(stack)

F2 Raju Madhu 17.07.20 D4

 

ENQUEUE item b:

Step 1: reverse (stack)

Step 2: push (b)

Step 3: reverse(stack)

F2 Raju Madhu 17.07.20 D5

  • After inserting b to stack if we want to DEQUEUE then only pop of top element is sufficient.
  • So for ENQUEUE takes a sequence of three instructions and DEQUEUE takes a single instruction.
  • Similarly DEQUEUE (reverse pop reverse) and ENQUEUE ( push ) is also valid for queue implementation.  


Hence option 3 is the correct answer.

Queue Question 10:

In which of the following data structures, both insertion and deletion operations can take place at either end of the structure?

  1. Deque
  2. Priority queue
  3. Stack
  4. Queue

Answer (Detailed Solution Below)

Option 1 : Deque

Queue Question 10 Detailed Solution

Concept:

  • Deque is also known as double ended queue
  • New items can be added at either the front or the rear Likewise existing item can be removed from either end.


Explanation: (Diagram)

F1 R.S Madhu 16.06.20 D3

Hence option 1 is the correct answer.

Get Free Access Now
Hot Links: yono teen patti teen patti game teen patti gold download teen patti wala game teen patti gold apk download