Answer the following questions true (T) or false (F)
1. If you need an array with more than one index, you can use a multidimensional array, which is actually an array of arrays. In the explanation, declare an array of doubles with 2 rows and 5 columns.
2. Indexed variables for an array are stored wherever the computer finds memory for the first indexed variable, then the next one is stored next to the first if there is space, and someplace else if not.
1. True
Explanation: Perhaps the easiest way to see this is to think of a two dimensional array as an array of lines on a page. The requested declarations is
double array[2][5];
The first index is the row, or line number, and the second index is the column position within that row.
2. False
Explanation: Indexed variables of an array are stored contiguously, or next to each other.
You might also like to view...
To move an InDesign object to a new layer, select the object on the page, then drag the Indicates selected items icon in the ____ panel to a new layer.
A. Layers B. Pages C. Library D. none of the above
The set of Visual Basic instructions that tells an object how to behave after an action by the user (such as clicking a button) is referred to as a(n) ____.
A. sub-program B. event procedure C. object function D. subroutine
Why does a normal hard boot take longer than a normal soft boot?
A. The operating system must initialize B. The initial steps must be performed by the BIOS/UEFI C. The power takes time to reach the computer D. Windows must enter Recovery mode
Which of the following is NOT true about securing data?
A. Use an alias when communicating on a blog or social network. B. The security and privacy of personal information on the Internet is getting worse all the time. C. Verify that you log off a computer used in a public place such as a library. D. All of the above are true.