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
Q31: Which of the following loops will always
Q32: How many times will PETE be displayed
Q33: Suppose the days of the year are
Q34: What will be displayed by the following
Q35: What will be displayed by the following
Q37: What is the value of j after
Q38: A counter variable is normally incremented or
Q39: What will be displayed when the following
Q40: When the number of repetitions needed for
Q41: If the counter variable of a For...Next
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents