☑Kizspy.me
(Choose 1 answer)
☐ A
Consider the following pseudocode:
declare a queue of characters, which is implemented by circular
array of size 6.
Back
Next
while(there are more characters in the word to read)
{read a character
}
if a character is "** then
dequeue the queue
else
enqueue the character into the queue
How the queue looks like after processing the input
"Hello***Hoa**ng ?
A. (4)
B. (1)
C. (3)
D. (2)
0
1
2
3
4
5
(1)
0
n
g
0
1
2
3
4
5
(2)
0
n
g
0
1
2
3
4
5
(3)
n
g
0
0
1
2
3
4
5
n
g
0
sh the exam.
LAPTOP RUNNING