Solved

Case 1 - XYZ Solutions

Question 42

Multiple Choice

Case 1 - XYZ Solutions
You have just started working for XYZ Solutions as a programmer. Your first assignment is to review and correct various code so that you can become familiar with the company’s programs.
-The following code in a different program is not working properly.The message should display the value of the intCounter variable if the intCounter variable contains a balance that is less than or equal to 15.The message does not display.What mistake did the previous programmer make? intCounter = 1
Do Until intCounter <= 15
MessageBox.Show(intCounter)
IntCounter += 1
Loop


A) The counter is not initialized.
B) The While keyword should be used instead of the Until keyword.
C) The counter is not incrementing.
D) intCounter += 1 should be changed to intCounter = intCounter + 1.

Correct Answer:

verifed

Verified

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

Related Questions