for (int i = 0; i < 10; i++){ Console.WriteLine("counter " + i);}The variable i defined in the program segment above ____.
A. is out of scope when the loop terminates
B. creates an error because it is changed in the update portion
C. would have a value of 10 if it were printed on the outside of the loop
D. can be displayed prior to the loop program statements
Answer: A
You might also like to view...
If Americans are objects of the same class, which of the following attributes would most likely be represented by a static variable of that class?
a. Age. b. The President. c. Place of birth. d. Favorite food.
Answer the following statements true (T) or false (F)
1. The