AnswersASC Programming Games Apps and SocietyParallel and Multidimensional Arrays

Parallel and Multidimensional Arrays Answers

12 verified answers
1
Free Preview

If you write the statement below in a Java program, what action would the computer take? Statement: myGrades[3][5] = x * 10;

A
The value of x * 10 is stored in every 6th cell of the array for 4 times.
B
The value of x * 10 is stored in the 4th row and 6th column of the array.
C
The value of x * 10 is stored in every 4th cell of the array for 6 times.
D
The value of x * 10 is stored in the 4th column and 6th row of the array.
3

When declaring the data type for a multidimensional array of strings, which statement would be most appropriate?

A
string[ ][ ] myArray;
B
string myArray [ ];
C
string myArray [ ][ ];
D
string[ ] myArray;
8

What is the difference between multidimensional and single dimension arrays?

A
Single dimension arrays have multiple columns, and multidimensional arrays have one column.
B
Single dimension arrays have one column, and multidimensional arrays have multiple columns.
C
There is no difference.
D
Multidimensional arrays are suitable only when programming in VB.NET.
9

What is the purpose of using a pair of square brackets when defining a multi-dimensional array?

A
Brackets define the size of the array.
B
Brackets create memory names.
C
Brackets describe the contents.
D
Brackets list the properties of the array.
10

Match the word to its definition.

Answer not available
11

Match the description on the left with its term on the right.

Answer not available
12

Match each word to its correct meaning.

Answer not available

Did you find these answers helpful?