Solved

Consider the Following Visual Basic

Question 12

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:

verifed

Verified

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

Related Questions