>
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
Pointing to a man, Rani says, "He is the son of my mother's only daughter.” How is the man related to Rani?
CUET (UG) - 2025
Blood Relations
View Solution
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
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
In a certain code, WATER is written as YCVGT. How is HOUSE written?
CUET (UG) - 2025
Coding Decoding
View Solution
The wavelength of the first line in the Balmer series of hydrogen spectrum is 656 nm. What is the wavelength of the second line?
CUET (UG) - 2025
Bohr’s Model for Hydrogen Atom
View Solution
View More Questions