1. (TCO 5) Floating-point variables, such as Double, should not be used _____. 

as counters that control loop execution

to perform mathematical calculations inside a loop

as approximate representations of decimal numbers

for applications when precision is required 

 

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

outer loop

inner loop

infinite loop

None of the above 

 

3. (TCO 5) A loop that never stops executing is called _____. 

a nested loop

an infinite loop

a Pretest loop

a Posttest loop

 

4. (TCO 5) Given the following partial program, how many times will the inner loop body (System.Console.WriteLine((num1 + num2).ToString("N0"))) be executed?

Dim num1, num2 As Integer

For num1 = 1 To 3

For num = 0 To 2

System.Console.WriteLine((num1 + num2).ToString("N0"))

Next

Next 

Five

Six

Eight

16

None of the above 

 

    • 12 years ago
    A+ Answers
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      44.doc