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...

Which of the following is a method to prioritize network traffic coming from VoIP phones?

A. PAT B. DNS C. SIP D. QoS

Computer Science & Information Technology

After a Finally block has finished executing:

a) control proceeds to the first statement after the Finally block. b) control returns to the throw point. c) the app exits. d) control proceeds to the first statement after the last Catch block.

Computer Science & Information Technology