If the elements 'A', 'B', 'C' and 'D' are placed in a queue and are deleted one at a time, in what order will these elements be removed ?
यदि तत्त्वों 'A', 'B', 'C' तथा 'D' को एक कतार (क्यू) में रखा जाता है और उन्हें एक - एक कर हटाया जाता है, तो इन तत्त्वों को किस क्रम में हटाया जायेगा ?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: A. ABCD
Explanation
A queue removes elements in the order they came in: A, B, C, D.
क्यू में तत्व आने के क्रम में निकलते हैं: A, B, C, D।
More Data Structures questions
- In a stack, if a user tries to remove an element from an empty stack, it is called :
- 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…
- Process of inserting an element in stack is called :
- A queue follows ……….. .
- Which of the following recurrence relation is related to worst case time complexity of quick sort ?
- In directed graph G(V, E) where V = {P, Q, R, S, T} and E = {PQ, RS, TP, PS, QR, PT, ST, QP, RQ, TS}, the vertex with maximum in- degree is…