Answer (Choose 1 answer)
0
1
2
3
4
5
(1)
Consider the following pseudocode:
V
0
declare a queue of characters, which is implemented by circular array of size 6.
while(there are more characters in the word to read)
0
1
2
3
4
5
{read a character
(2)
0
if a character is '*' then
} How the queue looks like after processing the input "How***AreYou***"?
dequeue the queue
else
enqueue the character into the queue
(3)
0
1
2
3
4
5
0
0
(4)
1
2
3
4
5
0
A. (4)
B. (1)
C. (3)
D. (2)
Exit 23