A+ Answers
1) What is the output code shown below:
Dim intAdd As Integer
Dim intOuterLoop As Integer
Dim intInnerLoop As Integer
intAdd = 0
For intOuterLoop = 1 to 8
For intInnerLoop = 3 to 7
intAdd+= 1
Next
Next
MsgBox.Show(“The final value is “ & intAdd.ToString())
2) Fix the error in the loop
Dim intStart As Integer = 8
Loop
intStart =+ 4
Do While intStart < 24
3)Fix the error in the code
Dim decCost As Decimal = 3.5D
Do until decCost > 10.5D
MsgBox( “The Cost is now “ & decCost.ToString(“F1”))
decCost -= 0.5
Loop
4) What is the value of lblResult
Dim intCountIt As Integer
intCountIt = 6
Do
intCountIt += 3
lblResult.Text & = intCountIt.ToString() & “ “
Loop Until intCountIt =21
5) How many times will the loop be executed?
Dim intQuantitySold As Integer
Dim decTax As Decimal
intQuantitySold = 1
Do until intQuantitySold = 5
decTax = intQuantitySold * 0.07
lstDisplay.Items.Add (“Tax Amount: “ & decTax.ToString())
11 years ago
Purchase the answer to view it

- ct_13.docx