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

1. An array behaves like a list of variables each of which is of the same type and for which there is a uniform, convenient naming convention that can be declared in a single line of code. In the explanation, give an example of declaration and access.

2. With arrays, indices start at any number the programmer chooses to indicate in the definition.


1. True
Explanation: For example, an array of 400 double values is declared
double array[400];
Access for read or write is array[index], where 0<=index<400.
2. False
Explanation: Index values start at 0, not any other number, and run to one less than the declared size.

Computer Science & Information Technology

You might also like to view...

Discuss the purpose of disaster planning.

What will be an ideal response?

Computer Science & Information Technology

The type of data source you choose in the Data Source Configuration Wizard determines the types of data objects your application code uses.

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

Computer Science & Information Technology

Identifying HIPAA, PCI, and SOX requirements is done during which of the following phases of the SDLC?

A. Requirements B. Design C. Development D. Testing E. Deployment

Computer Science & Information Technology

No arithmetic operations are allowed on the enumeration type.

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

Computer Science & Information Technology