CSD201_-_FE_-_SU_2023_401.webp
C

CSD201_-_FE_-_SU_2023_401.webp

  • Media owner Carla89
  • Ngày thêm
(Choose 1 answer)
0
1
2
3
4
5
Consider the following pseudocode:
(1)
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
{read a character
(2)
if a character is '*' then
dequeue the queue
else
(3)
0
1
2
3
4
5
enqueue the character into the queue
r
}
How the queue looks like after processing the input "Hello****Worl**d*"?
(4)
0
1
2
3
4
5
r
A. (3)
B. (2)
C. (1)
D. (4)
(12)

Thông tin

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

Image metadata

Filename
CSD201_-_FE_-_SU_2023_401.webp
File size
60.9 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom