CSD201_-_SP_2024_-_FE_1650.webp
H

CSD201_-_SP_2024_-_FE_1650.webp

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


41

Thông tin

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

Image metadata

Filename
CSD201_-_SP_2024_-_FE_1650.webp
File size
201.5 KB
Dimensions
1920px x 930px

Share this media

Back
Bên trên Bottom