Exam 7: Arrays

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

When an array is sent to a method as an argument, if the method changes one or more of the elements, the changes are made to the actual data.

(True/False)
4.8/5
(91)

If you try to access the array using a negative index value, ____.

(Multiple Choice)
4.8/5
(84)

If an array named num is dimensioned to hold 10 values, what happens if you write num[100] = 50;?

(Multiple Choice)
4.8/5
(72)

____ creates a copy of the array and returns it as an object?

(Multiple Choice)
4.7/5
(65)

The ____________ loop structure can be used to iterate through an array. However, it can be used for read-only access to the elements.

(Short Answer)
4.8/5
(85)

One of the special properties in the Array class is ____________. It returns an int representing the total number of elements in an array.

(Short Answer)
4.7/5
(80)

Arrays can be used as fields or instance variables in classes; and, arrays of objects can be declared.

(True/False)
4.8/5
(71)

To declare and instantiate memory for 4 exam scores that range in value from 0 to 100, the following declaration could be made ____.

(Multiple Choice)
4.8/5
(86)

When two or more arrays have a relationship such that you are able to use the same subscript or index to refer to related elements in the arrays, you have ____ arrays.

(Multiple Choice)
4.8/5
(65)

Array identifiers are normally defined using a plural noun.

(True/False)
4.9/5
(96)

What happens when you assign one array to another using the assignment operator?

(Multiple Choice)
4.9/5
(83)

Properties are added to a class to enable client applications to access public members.

(True/False)
4.9/5
(80)

You can instantiate arrays of user-defined array objects and send in arrays as arguments to methods, but you cannot return arrays from methods.

(True/False)
4.9/5
(95)

The length or size of the array is specified using a(n) ____________ value in the form of a constant literal, a variable, or an expression that produces an integer value.

(Short Answer)
4.9/5
(75)

If an array named num is dimensioned to hold 10 values, how would you store 50 in the 5th physical location?

(Multiple Choice)
4.9/5
(65)
Showing 61 - 75 of 75
close modal

Filters

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