List three things you need to do when setting up an array. Why do you need to consider the number of cells you will need?
What will be an ideal response?
You need to do three things to set up an array:
1. Declare an array variable.
2. Instantiate an array object and assign it to the array variable.
3. Initialize the cells in the array with data, as appropriate.
When creating a new array object, try to come up with an accurate estimate of the number
of cells for the data. If you underestimate, some data will be lost; if you overestimate, some
memory will be wasted.
You might also like to view...
Case-Based Critical Thinking QuestionsCase 14-1Thelma is researching her computer's audio capabilities. She likes to use her computer to listen to music and is now thinking about trying to import music from her CD collection onto her computer. Thelma wants to import her favorite song off of her favorite CD onto her computer. In order to do this, Thelma has to ____.
A. download the song somewhere on the Internet B. use a software tool such as Apple iTunes or Windows Media Player to rip the track from her CD C. buy the song through a software tool such as Apple iTunes D. throw the CD at her computer as hard as she can
Executing tasks (as opposed to instructions) in parallel is called __________.
a. pipelining b. superpipelining c. hyperthreading d. multithreading
Windows Task Manager can be launched using any of the following methods EXCEPT ________
A) using the shortcut keys Shift + Esc B) right-clicking the taskbar and selecting Task Manager C) right-clicking the Start button and selecting Task Manager D) using the Ctrl-Alt-Delete combination
The curves and directions of lines on a line chart make ________ noticeable to the user
Fill in the blank(s) with correct word