1. (TCO 5) How many times will DOG be displayed when the following lines are executed?

For counter As Integer = 13 To -3 Step -6

System.Console.WriteLine("DOG")

Next 

Two

Three

Four

Five

None of the above

 

2. (TCO 5) What numbers will be displayed by the following code?

Dim num As Integer = 7

Do

num += 1

System.Console.WriteLine(num.ToString("N0"))

Loop Until (num > 6)

System.Console.WriteLine(num.ToString("N0")) 

7

8

7 and 8

8 and 8 

 

3. (TCO 5) A loop that contains a separate inner loop in its execution code is called an _____. (Points : 3)

outer loop

inner loop

infinite loop

None of the above 

 

4. (TCO 5) When is the loop condition evaluated in a Pretest? (Points : 3)

Before executing the loop task

After executing the loop task

During execution of the loop task

It depends on the contents of the loop task. 

 

    • 12 years ago
    A+ Answers
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      45.doc