Q14.webp
Q

Q14.webp

Question: 14
(Choose 1 answer)
Consider the following pseudocode:
declare a stack of characters
while(there are more characters in the word to read)
{read a character
}
if a character is "*' then
pop the stack
else
push the character into the stack
while(the stack is not empty)
pop and write the poped character to the screen
What is written to the screen for the input "Good Mor**ni***ng"?
A. gnodo
B. gnooM
C. gnooG
D. Goong

Thông tin

Category
CSD201
Thêm bởi
Quốc Khánh1
Ngày thêm
Lượt xem
2,349
Lượt bình luận
5
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom