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