Which of the following is a three-dimensional array?

A. var SIZE = 5000000;
var numberArray = new Array(SIZE);
B. Declare Constant SIZE = 1000
Declare Numeric empNumber[SIZE]
Declare String empLastName[SIZE], empFirstName[SIZE]
Declare Numeric index
Declare String moreInput = "Y"
For index = 0 to SIZE - 1
   empNumber[index] = 0
   empLastName[index] = ""
   empFirstName[index] = ""
End For
C. var ROWS = 4;
var COLUMNS = 6;
var scores = new Array(ROWS);

for (index = 0; index < ROWS; index++) {
scores[index] = new Array(COLUMNS);
}
D. var cube = new Array();
cube[0] = new Array();    
cube[0][0] = new Array();

Answer: D

Computer Science & Information Technology

You might also like to view...

Checking the Cascade Delete Related Records checkbox assures that ________

A) you cannot delete related records if they have more than one foreign key records B) you cannot delete a primary key record if it has related records C) all primary keys will be deleted if you delete related records D) all records will be deleted in related tables if you delete the primary key in the primary table

Computer Science & Information Technology

You can use the arithmetic assignment operator (+=) to abbreviate the statement intNum = intNum + 1 as follows: intNum = 1.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology