Monday, August 2, 2010

Loop Revision Activity 1 and 2

Activity 1

1. What is the loop counter?

intNumber

2. How many times does the loop execute?

100 times.

3. What is the final value of the NumberAccumulator variable?

100

4. Include a screen shot of your code & messagebox in your blog post.




Activity 2

1. What is the UpperBound of the array?

The Upperbound is 2 (so 3)
The Upperbound is the number of the strings or numbers you want to store in the array.

2. How many elements are contained in the array?

in this array there is 3

3. What is the starting index of the array?

The starting index is 0

4. What is the starting value of the loop counter?

the starting value is 1

5. How many times does the loop execute?

3 times

6. What is the concatenation operator?

&

7. Include a screen shot of your code & messagebox in your blog post.


No comments:

Post a Comment