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.
You might also like to view...
Every computer forensics laboratory should have a forensic disk duplicator (cloning device) for forensically cloning hard disk drives at the crime scene or in the laboratory
Indicate whether the statement is true or false.
The ________ object is responsible for drawing the entire applet window.
A) Graphics B) Applet C) SuperClass D) JFrame