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 The above code represents a ____ loop example.
A) posttest
B) firsttest
C) pretest
D) secondarytest
Correct Answer:
Verified
Q16: Of the two loop types, pretest and
Q17: The process of updating an accumulator or
Q18: An accumulator is incremented by a value
Q19: The Do...Loop statement executes exactly the same
Q20: The stepvalue in a For...Next loop structure
Q22: The condition used in the Do...Loop statement
Q23: In the Do...Loop statement, the keyword While
Q24: Typically, you enter the SelectAll method in
Q25: In a For...Next loop structure, which of
Q26: The first action performed by the 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