3. |
Consider the following pseudocode for a program involving cookies, marbles, and a hat. Assuming that when the program starts the
cookie jar contains 3 cookies and the hat is empty, what will the hat contain when the program completes?
While the cookie jar is not empty
Put a red marble in the hat
If the hat contains an even number of marbles
Put a blue marble in the hat
Eat a cookie from the jar
Please select the best answer.
|