Which of the following code segments sets all elements of the array strStudentNames to the value NONE?

a. ```Dim intCount as Integer
For intCount = 1 to (strStudentNames.Length - 1)
strStudentNames(intCount) = "NONE"
Next intCount
```
b. ```Dim intCount as Integer
For intCount = 0 to (strStudentNames.Length - 1)
strStudentNames(intCount) = "NONE"
Next intCount
```
c. ```Dim intCount as Integer
For intCount = 0 to (strStudentNames.Length)
strStudentNames(intCount) = "NONE"
Next intCount
```
d. ```Dim intCount as Integer
For intCount = 1 to (strStudentNames.Length)
strStudentNames(intCount) = "NONE"
Next intCount
```

b. ```Dim intCount as Integer
For intCount = 0 to (strStudentNames.Length - 1)
strStudentNames(intCount) = "NONE"
Next intCount
```

Computer Science & Information Technology

You might also like to view...

The DatePart function contains ________ arguments

A) 4 B) 5 C) 6 D) 3

Computer Science & Information Technology

What is printed by the program that follows?

``` #include using namespace std; int main () { float ad1 (float); float trp1 (float); float hlf (float); cout << hlf (trp1 (ad1 (8.2))); return 0; } float ad1 (float x) { return x++; } float trpl (float x) { return 3.0 * x; } float hlf (float x) { return 0.5 * x; } ```

Computer Science & Information Technology