Contents
Chapter 7 · Data Structure and AlgorithmPractice
← Return to textbook

CONCEPT PRACTICE

Queue first-in first-out order

1 related published questions. Take them one at a time.

Filter questions
Question sources

1 of 1 questions match.

ITPEC Practice
0/1 answered

Question 1 of 1

0/1 answered

2023 Spring · Morning · Q8

Original exam question · Select the image to enlarge
Read the question as text

Q8. The operations for a queue are defined as below. ENQ n: This operation appends data n to the queue. DEQ: This operation removes data from the queue. On an empty queue, the operations ENQ 1, ENQ 2, ENQ 3, DEQ, ENQ 4, ENQ 5, DEQ, ENQ 6, DEQ, DEQ are performed. After that, when DEQ is performed, what is the value that is removed?

The original image above preserves the complete exam wording and layout.

Choose your answer
Choose an option to check your answer.
1 / 1Back to lesson →

Source: 2023S_FE_AM_Questions.pdf, PDF page 5–6. ID: 2023S-AM-Q008. Explanation written for this textbook.

Original question · Q8
Q8. The operations for a queue are defined as below. ENQ n: This operation appends data n to the queue. DEQ: This operation removes data from the queue. On an empty queue, the operations ENQ 1, ENQ 2, ENQ 3, DEQ, ENQ 4, ENQ 5, DEQ, ENQ 6, DEQ, DEQ are performed. After that, when DEQ is performed, what is the value that is removed?

Scroll horizontally to read the image at full size.