How many elements are in an array created with the following loop?

```
var myArray = new Array;
for (k = 0; k , 8; k++)
myArray[k] = k;
```

a. 9
b. 8
c. 7
d. 6

b. 8

Computer Science & Information Technology

You might also like to view...

Before loading a static array:

a. You must initialize each element to zero. b. You do not need to initialize the elements. c. You must define the array by telling the computer the number of needed elements. This may be done as the program is being executed. d. b and c. e. a and c.

Computer Science & Information Technology

The cross tabulation technique:

a. Is used for surveys. b. Is a two-dimensional frequency distribution. c. Uses the pointer technique. d. All of the above. e. b and c.

Computer Science & Information Technology