Sunday, April 6, 2014

In the following pseudocode, the statement print questionCounter will be executed ____ times.

num PARTS = 5 num QUESTIONS = 3 partCounter = 1 while partCounter <= PARTS questionCounter = 1 while questionCounter <= QUESTIONS print questionCounter questionCounter = questionCounter + 1 endwhile partCounter = partCounter + 1 endwhile Answer: 15

No comments:

Post a Comment