Computer Science, asked by prakrati561, 3 months ago

Consider the following queue where QUEUE is allocated 6 memory cells:

FRONT=2, REAR=5 QUEUE: _______, London, Berlin, Rome, Paris, _______

Describe the queue, including FRONT and REAR, as the following operations take

place:

(a) Attens is added,

(b) Two cities are deleted,

(c) Madrid is added,

(d) Moscow is added,

(e) Three cities are deleted and

(f) Oslo is added​

Answers

Answered by aryan5623
14

Explanation:

the action of linking things together in a series, or the condition of being linked in such a way.

Answered by mindfulmaisel
0

options (C), (d), (e) are correct options

Explanation:

Given:

QUEUE is allocated 6 memory cells

To find:

Describe the queue, including FRONT and REAR, as the following operations take place

Explanation:

option (c)-Madrid is added, option (d)- Moscow is added, option (e)-three cities are deleted operations will take place.

For option (c) Madrid is added:

  • Because the queue is full, there is an overflow. It is not possible to insert anything.

For option (d) Moscow is added:

  • Because the queue is full, there is an overflow. It is not possible to insert anything.

For option(e) Three cities are deleted:

  • the three cities are deleted

hence, options (C), (d), (e) are correct options

Similar questions