Solved

 Which of the following program segments will sum the eight numbers input by the user? \text { Which of the following program segments will sum the eight numbers input by the user? }

Question 5

Multiple Choice

 Which of the following program segments will sum the eight numbers input by the user? \text { Which of the following program segments will sum the eight numbers input by the user? }


A) For k As Integer = 1 To 8
s = CDbl(InputBox("Enter a number.")
S += k
Next
B) For k As Integer = 1 To 8
a = CDbl(InputBox("Enter a number.")
S += 1
Next
C) For k As Integer = 1 To 8
a = CDbl(InputBox("Enter a number.")
A += s
Next
D) For k As Integer = 1 To 8
a = CDbl(InputBox("Enter a number.")
S += a
Next

Correct Answer:

verifed

Verified

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

Related Questions