>
Exams
>
Programming and Data Structure
>
Array
>
a normal linear queue if implemented using an arra
Question:
A normal linear queue, if implemented using an array/list of size LIMIT, gets full when :
CUET (UG) - 2023
CUET (UG)
Updated On:
Apr 19, 2024
front =rear + 1
rear = front
front (rear + 1)% LIMIT
rear = LIMIT-1
Hide Solution
Verified By Collegedunia
The Correct Option is
D
Solution and Explanation
The correct option is(D):rear = LIMIT-1
Download Solution in PDF
Was this answer helpful?
0
0
Top Questions on Array
Which one of the following options is correct for the given data in the table?
GATE CS - 2025
GATE IN - 2025
GATE MT - 2025
GATE NM - 2025
GATE TF - 2025
Programming and Data Structure
Array
View Solution
An array \( A \) of length \( n \) with distinct elements is said to be bitonic if there is an index \( 1 \leq i \leq n \) such that \( A[1..i] \) is sorted in the non-decreasing order and \( A[i+1 .. n] \) is sorted in the non-increasing order.
Which ONE of the following represents the best possible asymptotic bound for the worst-case number of comparisons by an algorithm that searches for an element in a bitonic array \( A \)?
GATE CS - 2025
Programming and Data Structure
Array
View Solution
View All
Questions Asked in CUET exam
A person walks 10 m North, then turns right and walks 5 m, then turns right again and walks 10 m. What direction is he facing now?
CUET (UG) - 2025
Direction sense
View Solution
Which of the following is a polysaccharide?
CUET (UG) - 2025
Biomolecules
View Solution
A train crosses a platform 200 m long in 36 seconds and a pole in 18 seconds. Find the speed of the train.
CUET (UG) - 2025
Speed, Time and Distance
View Solution
If \( 3 \times 4 = 25 \), \( 5 \times 2 = 27 \), \( 6 \times 3 = 39 \), then what is \( 7 \times 5 = ? \)
CUET (UG) - 2025
Logical Reasoning
View Solution
A and B can complete a task in the ratio 3:2. If together they complete the task in 20 days, how long will A alone take?
CUET (UG) - 2025
Time and Work
View Solution
View More Questions