Data Structures :: Queue - Discussion

Home > Data Structures > Queue > MCQs Questions Discussion

11 / 42

Choose the correct option.

We need to implement a queue using a circular array. If DATA is a circular array of CAPACITY elements, and rear is an index into that array, what will be the index for the element after rear?

A(rear + 1) % CAPACITY

Brear + (1 % CAPACITY)

Crear % (1 + CAPACITY)

D(rear % 1) + CAPACITY

Answer: Option (Login/Signup)

Show Explanation

Asked In :: Societe Generale

Post Your Answer Here:     

Reply    
Rate This: +1 -0 +
    Report


Report Error

Please Login First Click Here

Reply    
Rate This: +2 -0 +
    Report


Report Error

Please Login First Click Here





Manish Joshi1 day ago

what if there would be cement in the option as  well..... What would be the answer and explaination???????????????

|| Reply
ankur yadav1 month ago

explaination nhi dena tha to show explanation ka option hi kyo diya

7 |6 | Reply
ayushi solanki1 month ago I

b

8 |3 | Reply
Shivangi Raj1 month ago

answer should be a

5 |8 | Reply