• edited by
17 views
0 0 votes

In a circular queue using arrays, the rear is at index $4$, front is at index $2$, and capacity $=5$. Which expression checks if the queue is full?

  1. $($rear $==$ front $- 1)$
  2. $($rear $==$ front$)$
  3. $($rear $+ 1 ==$ front)$
  4. $(($ rear $+1) \%$ capacity $==$ front $)$

Please log in or register to answer this question.

Position:
Show:

Related questions

0 0 votes
0 0 answers
31
31 views
Shubham Sharma 2 asked Sep 15
31 views
In which year had the Goods and Services Tax (GST) been introduced in India, replacing a fragmented and complex system of indirect taxes?$2014$$2010$$2017$$2019$
0 0 votes
0 0 answers
20
20 views
Shubham Sharma 2 asked Sep 15
20 views
A sum of $8,000$ is invested at a compound interest rate of $5 \%$ per annum for $2$ years, interest compounded annually. Find the total amount at the end of $2$ years.$9...
0 0 votes
0 0 answers
25
25 views
Shubham Sharma 2 asked Sep 15
25 views
$22$ is related to $157$ following a certain logic. Following the same logic, $34$ is related to $241$. To which of the following is $45$ related to, following the same l...
0 0 votes
0 0 answers
28
28 views
Shubham Sharma 2 asked Sep 15
28 views
Comprehension:Read the given passage and answer the question that follows.The First Wave of Feminism emerged in the late $19{ }^{\text {th }}$ and early $20{ }^{\text {th...