CSD201_-_SU_2023_-_Block_5_-_FE_736.webp
Kokushibo91

CSD201_-_SU_2023_-_Block_5_-_FE_736.webp

Answer (Choose 1 answer)
0
1
2
3
4
5
Consider the following pseudocode:
(1)
0
g
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
(2)
{read a character
0
g
if a character is '*' then
dequeue the queue
else
(3)
0
1
2
3
4
5
g
0
enqueue the character into the queue
} How the queue looks like after processing the input "Hello***Hoa**ng*"?
(4)
0
1
2
3
4
5
g
0
A. (2)
B. (1)
C. (4)
D. (3)
antonis ni

Evil (21
  • Like
Reactions: Hoàng Hùng

Thông tin

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

Image metadata

Filename
CSD201_-_SU_2023_-_Block_5_-_FE_736.webp
File size
62.7 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom