Multiple Choice
Which of the following code fragments calculates the average of 5 numbers input with an input box, and displays the result in lblResult?
A) intCount = 5
intSum = 0
Do While intCount = 5
IntSum = CInt(InputBox("enter a number") )
SngAvg = intSum / intCount
LblResult.Text = sngAvg.ToString()
Loop
B) intCount = 0
intSum = 0
Do While intCount < =5
IntValue = CInt(InputBox("enter a number") )
IntSum = intSum + intValue
Loop
SngAvg = intSum / intCount
LblResult.Text = sngAvg.ToString()
C) intCount = 0
intSum = 0
Do While intCount < = 5
IntValue = CInt(InputBox("enter a number") )
IntSum = intSum + intValue
IntCount += 1
Loop
SngAvg = intSum / intCount
LblResult.Text = sngAvg.ToString()
D) intCount = 0
intSum = 0
Do While intCount < 5
IntValue = CInt(InputBox("enter a number") )
IntSum = += intValue
IntCount += 1
Loop
SngAvg = intSum / intCount
LblResult.Text = sngAvg.ToString()
Correct Answer:

Verified
Correct Answer:
Verified
Q24: The _method can be used to place
Q25: The <b>InputBox</b> function always returns a _value.<br>A)
Q26: How many times will the message I
Q27: What will be the final value of
Q28: How can you cause scroll bars to
Q30: Which property determines the amount of time,
Q31: Which statement about the <b>ListBox.Items.Add</b> method is
Q32: Which of the following ListBox properties can
Q33: A counter is a(n) _that can be
Q34: What is the difference in execution between