Multiple Choice
Consider the following Visual Basic .NET code: Dim unitsReceived as Integer, totalCost as Single, cost as String totalCost=0 unitsReceived=0 cost = InputBox("Enter item cost (without $ or comma) , click Cancel when finished", "Data Entry") Do While cost "" unitsReceived = unitsReceived + 1 totalCost = totalCost + val(cost) cost = InputBox("Enter item cost (without $ or comma) , click Cancel when finished", "Data Entry") Loop Which instruction represents initialization?
A) totalCost = totalCost + val(cost)
B) unitsReceived=0
C) unitsReceived = unitsReceived + 1
D) cost = InputBox("Enter item cost (without $ or comma) , click Cancel when finished", "Data Entry")
Correct Answer:

Verified
Correct Answer:
Verified
Q7: Typically, you enter the SelectAll method in
Q8: A posttest loop structure is always executed
Q9: The Do...Loop statement executes exactly the same
Q10: Of the two loop types, pretest and
Q11: The condition in the Do...Loop statement can
Q15: In a nested repetition structure, one loop,
Q16: A text box control's _ event occurs
Q17: If the stepvalue is omitted when coding
Q54: To leave a Do...Loop structure earlier than
Q60: Which of the following loop structures always