Case-Based Critical Thinking QuestionsCase 1: XYZ SolutionsYou 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.
Your supervisor wants you to change the Do...Loop in the previous problem to a For...Next loop. He also wants the message to display only three times. Which of the following For clauses should you use?

A. For intCounter As Integer = 1 To 4
B. For intCounter As Integer = 1 To 3
C. For intCounter As Integer = 0 To 3
D. For intCounter = 1 To 3

Answer: B

Computer Science & Information Technology

You might also like to view...

When you are working ________, the pointer displays a small circle with a diagonal line

Fill in the blank(s) with correct word

Computer Science & Information Technology

Identify the syntax of thecall()method.

A. function.call(arg1, arg2, arg3, ...) B. function.call(thisObj, arg1, arg2, arg3, ...) C. call.function(thisObj, arg1, arg2, arg3, ...) D. function.call(Obj1, Obj2,...)

Computer Science & Information Technology