Exam 7: Arrays

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

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
(89)

An entire array collection of data can be ordered alphabetically with a call to the Array class member method ____________.

(Short Answer)
4.8/5
(89)

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)
5.0/5
(92)

Arrays are ____________ variables.The array identifier memory location does not actually contain the values,but instead stores an address indicating the location of the first element in the array.

(Short Answer)
4.9/5
(77)

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.7/5
(82)

double [ ] price = new double [ ] {3, 2.2, 4.7, 6.1, 4}; -With the declaration above,price[5] generates a runtime error.

(True/False)
4.7/5
(92)

To create an array to hold the 5 numeric scores,you could write ____________.

(Short Answer)
4.8/5
(79)

Array identifiers are normally defined using a ____________.

(Short Answer)
4.9/5
(71)

When you do a compile-time initialization of array elements,values are separated by ____________.

(Short Answer)
4.8/5
(75)

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.9/5
(78)

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

(Multiple Choice)
4.7/5
(75)

You can declare an array without dimensioning its size,but the size must be determined before you can access it.

(True/False)
4.7/5
(80)

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.9/5
(76)

Elements in an array are sometimes referred to as ____________ variables.

(Short Answer)
4.9/5
(88)

In C# the length of an array cannot be changed.After it is instantiated with a length,dynamic resizing is not an option.

(True/False)
4.8/5
(84)
Showing 61 - 75 of 75
close modal

Filters

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