>
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
If 1st March 2023 was a Wednesday, what day of the week was 1st March 2024?
CUET (UG) - 2025
Clock and Calendar
View Solution
Which region was known as the ‘nursery of the Bengal Army’ as many sepoys were recruited from there?
CUET (UG) - 2025
British Empire
View Solution
A shopkeeper increases the price of an article by 25% and then offers a discount of 20%. What is the net percentage change in the price?
CUET (UG) - 2025
Percentage
View Solution
In a certain code, WATER is written as YCVGT. How is HOUSE written?
CUET (UG) - 2025
Coding Decoding
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
View More Questions