MCQOPTIONS
Saved Bookmarks
This section includes 1 Mcqs, each offering curated multiple-choice questions to sharpen your Java Programming knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
If the size of the array used to implement a circular queue is MAX_SIZE. How rear moves to traverse inorder to insert an element in the queue? |
| A. | rear=rear%(MAX_SIZE+1) |
| B. | rear=rear+(1%MAX_SIZE) |
| C. | rear=(rear+1)%MAX_SIZE |
| D. | rear=(rear%1)+MAX_SIZE |
| E. | None of these |
| Answer» D. rear=(rear%1)+MAX_SIZE | |