143k views
2 votes
Please Help!! Thank You. What will happen in this program after the speak function is called for the first time?

Please Help!! Thank You. What will happen in this program after the speak function-example-1
User Malcolmpdx
by
3.1k points

2 Answers

1 vote

Answer:

D.The sprite will say "hi" twice.

Step-by-step explanation:

User Stephen Kuo
by
3.4k points
3 votes

Answer:

D The sprite will say "hi" twice.

Step-by-step explanation:

the first call of the speak function specifies that:
if the word is not bye then the word will be repeated twice
so the sprite will say hi twice

User Jeff Sheffield
by
3.7k points