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

1. The value used to indicate a specific location within an array is called the index or subscript.
2. An array must be declared and allocated in the same statement.
3. The number of elements in the array must be specified in parentheses after the array name in the declaration.
4. In an array of reference types, each element may be a reference to a different type.
5. Each reference in an array of references is pointed to Nothing by default when the array is allocated.


1. True
2. False. An array can be declared and allocated in separate statements.
3. False. The number is never specified in the parentheses after the array name.
4. False. In an array of reference types, each element is a reference to an object of the same
type.
5. True.

Computer Science & Information Technology

You might also like to view...

Express the following constraint on the document of Figure 15.4: no pair of CourseTaken elements within the same Student element can have identical values of the CrsCode attribute.

What will be an ideal response?

Computer Science & Information Technology

Which of the following best describes what you should document during a forensic investigation?

a. Imaging process b. Analysis process c. Everything d. Where the evidence was found

Computer Science & Information Technology

A method is like a blueprint or template for all the objects within a class.

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

Computer Science & Information Technology

In recursion, the statement that "solves" the problem is known as the _____.

A. return statement B. base case C. recursive call D. recursive step

Computer Science & Information Technology