CSD201_-_SP_2024_-_Block_5_-_RE_1957.webp
thanhvan86

CSD201_-_SP_2024_-_Block_5_-_RE_1957.webp

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

9

Thông tin

Category
CSD201
Thêm bởi
thanhvan86
Ngày thêm
Lượt xem
2,665
Lượt bình luận
18
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
CSD201_-_SP_2024_-_Block_5_-_RE_1957.webp
File size
238.6 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom