>
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
Identify the error in the sentence (if any):
"She don't like to play cricket."
CUET (UG) - 2025
Subject-Verb Agreement
View Solution
Rearrange the following parts into a meaningful sentence:
P: is one of the most valuable skills
Q: being able to communicate clearly
R: in both personal and professional life
S: a person can develop
CUET (UG) - 2025
Sentence Arrangement
View Solution
Which number will replace the question mark?
3, 6, 18, 72, ?
CUET (UG) - 2025
Number Series
View Solution
In a row of students, Rina is 12th from the left and 9th from the right. How many students are there in the row?
CUET (UG) - 2025
Seating Arrangement
View Solution
5, 10, 17, 26, ?, 50 — Find the missing number.
CUET (UG) - 2025
Number Series
View Solution
View More Questions