Multiple Choice
Which loop computes the sum of 1/2 + 2/3 + 3/4 + 4/5 + … + 99/100?
A) For n As Integer = 1 To 99
s += n / (1 + n)
Next
B) For q As Integer = 100 To 1
s += (q + 1) /q
Next
C) For d As Integer = 2 To 99
s = 1 / d + d / (d + 1)
Next
D) For x As Integer = 1 To 100
s += 1 / (x + 1)
Next
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q37: The following lines of code display all
Q38: What is wrong with the following Do
Q39: One must always have a Next statement
Q40: If a list box contains all numbers,
Q41: The following code segment is valid.<br>If (firstLetter
Q43: The value of the counter variable in
Q44: When Visual Basic executes a Do While
Q45: The value of lstBox.Items(n) is the nth
Q46: The _data type is most suited to
Q47: The body of a For...Next loop in