Solved

Which Loop Computes the Sum of 1/2 + 2/3

Question 42

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions