The strCities array is declared using the Dim strCities(10) As String statement.The intSub variable keeps track of the array subscripts and is initialized to 0. Which of the following Do clauses tells the computer to process the loop instructions for each element in the array?a. Do While intSub < strCities.Lengthb. Do While intSub <= strCities.Length – 1c. Do Until intSub = strCities.Lengthd. all of the above

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter8: Arrays
Section: Chapter Questions
Problem 2RQ
icon
Related questions
Question

The strCities array is declared using the Dim strCities(10) As String statement.
The intSub variable keeps track of the array subscripts and is initialized to 0. Which of the following Do clauses tells the computer to process the loop instructions for each element in the array?
a. Do While intSub < strCities.Length
b. Do While intSub <= strCities.Length – 1
c. Do Until intSub = strCities.Length
d. all of the above

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,