aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Data Structure Quiz 10
  • In a linear queue, Front = 7 and Rear = 25. What is the n...
Multiple choice

In a linear queue, Front = 7 and Rear = 25. What is the number of elements in the queue?

  1. 18

  2. 17

  3. 19

  4. None of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In a linear queue, the number of elements is calculated as (Rear - Front + 1). Here, 25 - 7 + 1 = 19.

Keep practicing — related questions

  • If Front = Rear, then what does it state about a queue?
  • Given a linear queu |||||||| |---|---|---|---|---|---|---| | | | Front | | Rear | | | | 1 | 2 | 3 | 4 | 5 |...
  • Given a linear queu |||||||| |---|---|---|---|---|---|---| | | | Front | | Rear | | | | 1 | 2 | 3 | 4 | 5 |...
  • Directions: Complete the following number series. 7, 8, 13, 5, 18, - 1, 22, - 10, 25, ?
  • Find the smallest number which, when divided by 25, 40 & 60 leaves a remainder of 7 in each case.
  • Elements having the same number of valence electrons are placed in the same group. Elements having valence ...
  • The atomic number of which of the following elements represents a metal?
  • Which of the following pairs of atomic numbers represents the elements in the same group?
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy