Exam 10: Introduction to Arrays

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

An array with 20 ints that receives 5 ints from interactive input has a(n) ____ size of 20.

(Multiple Choice)
4.8/5
(40)

When setting up an array, you need to instantiate an array object and assign it to the array declaration. ____________________

(True/False)
4.8/5
(35)

FIGURE 10-2 FIGURE 10-2   -In Figure 10-2 above, all of the following is true EXCEPT ____. -In Figure 10-2 above, all of the following is true EXCEPT ____.

(Multiple Choice)
4.8/5
(42)

FIGURE 10-1 FIGURE 10-1   -Figure 10-1 above shows ____. -Figure 10-1 above shows ____.

(Multiple Choice)
4.9/5
(37)

When referring to an array element, the subscript operator is ____.

(Multiple Choice)
4.9/5
(42)

Organizing code into two classes called the ____ and the view splits the code between managing the interface and manipulating the database.

(Multiple Choice)
4.9/5
(43)

Ravi must indicate an array's ____ in the loop when the array is not full.

(Multiple Choice)
4.8/5
(37)

A(n) ____________________ is a loop that iterates through an array one element at a time.

(Short Answer)
4.8/5
(33)

An array with elements numbered 0 to 99 has a length of 99. ____________________

(True/False)
4.8/5
(42)

For any particular array, all of the elements must be of the same type.

(True/False)
4.8/5
(40)

The detection of a range-bound error is similar to the JVM's behavior when a program attempts to divide by zero.

(True/False)
4.9/5
(41)

If you want to keep a list of peoples' names and ages, you can use two arrays in which corresponding elements are related by using ____ arrays.

(Multiple Choice)
4.7/5
(43)

Identify the letter of the choice that best matches the phrase or definition. a.Index b.Range c.Null d.Count e.Break -A subscript of a value of -1 results in a(n) ____-bound error.

(Essay)
4.9/5
(35)

When referring to an array element, the method selector is ____.

(Multiple Choice)
4.8/5
(41)

To have two variables refer to two separate arrays that happen to contain the same values, copy all of the elements from one array to the other.

(True/False)
4.8/5
(36)

Identify the letter of the choice that best matches the phrase or definition. a.Index b.Range c.Null d.Count e.Break -This statement can be used to terminate an enhanced for loop early.

(Essay)
4.7/5
(42)

When an array is not full, one must replace the array's logical size with its physical length in the loop.

(True/False)
4.8/5
(25)

Once an array is instantiated, its size cannot be changed. ____________________

(True/False)
4.7/5
(32)

Arrays are ____ and must be instantiated before being used.

(Multiple Choice)
4.8/5
(40)

When an array is instantiated, each cell is ____________________ until reset to a new object.

(Short Answer)
4.8/5
(36)
Showing 21 - 40 of 47
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)