What is the value of X when execution ends in the following pseudocode?
 
Set X As Integer
For X = 100 to 0 Step -1
              ‘ This is a comment
Next X
X = 100

A. 0
B. 100
C. 1
D. -1


Answer: B

Computer Science & Information Technology

You might also like to view...

The instructions in a posttest loop ____.

A. may never be processed B. should only be processed once C. will always be processed at least twice D. will always be processed at least once

Computer Science & Information Technology

On Flickr, a collection of photographs of a given type or topic is a photostream

Indicate whether the statement is true or false

Computer Science & Information Technology

Click the item marked 3 in the accompanying figure to play the movie in Flash.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

With the ____ command, an administrator can schedule the router to reload in a certain number of minutes, hours, or even days.

A. interval B. refresh C. restart D. reload

Computer Science & Information Technology