Question: Visual Basic 11. Which loop computes the sum of 1/2+2/3+3/4 +4/5...+99/100? (A) For n As Integer 1 To 99 (B) For q As Integer 100
11. Which loop computes the sum of 1/2+2/3+3/4 +4/5...+99/100? (A) For n As Integer 1 To 99 (B) For q As Integer 100 To 1 (c) For d As Integer 2 To 99 (D) For x As Integer 1 To 100 s+ n / (1 n) Next Next Next Next (E) none of the above 12. In the following code segment, what role does the variable check serve? Dim counter As Integer, check As Boolean Do While counter20 counter += 1 If counter 10 Then check = True End If Loop (A) counter (B) accumulator (C) flag (D) loop control variable (E) none of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
