Exam 7: Arrays

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

The value used to indicate a specific location within an array is called the index or subscript.

Free
(True/False)
4.9/5
(38)
Correct Answer:
Verified

True

The position number in square brackets is formally called an index.

Free
(True/False)
4.8/5
(30)
Correct Answer:
Verified

False

What does the ReDim statement allow for?

Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
Verified

C

When an expression contains nested parentheses,its evaluation begins with the value in the outermost set of parentheses.

(True/False)
4.8/5
(33)

The For Each…Next repetition statement requires you to provide an array,its type and a variable for the purpose of:

(Multiple Choice)
4.8/5
(30)

The ReDim statement will automatically save the data stored in the array.

(True/False)
4.9/5
(31)

If an attempt is made to use an invalid index to access an element,a(an)__________exception occurs.

(Multiple Choice)
4.8/5
(35)

When a program is executed,array element indices are checked for validity-all indices must be greater than or equal to 0 and less than or equal to the length of the array.

(True/False)
4.9/5
(36)

Array element values of primitive data types,such as Integer,can be passed to a method by:

(Multiple Choice)
5.0/5
(37)

An individual element of an integer array is passed to a method by value.

(True/False)
4.9/5
(30)

Visual Basic can determine the array bounds from the number of elements in the initializer list.

(True/False)
4.8/5
(35)

Consider the array: s( 0 )= 7 Consider the array: s( 0 )= 7   The value of s( s( 6 )- s( 5 ))is: The value of s( s( 6 )- s( 5 ))is:

(Multiple Choice)
4.9/5
(30)

Array method GetUpperBound returns the index of the last element in an array.The value returned by method GetUpperBound is one less than the value of the array's Length property.

(True/False)
4.7/5
(41)

The ReDim statement is used only to expand an array.

(True/False)
4.8/5
(45)

The number of elements in the array must be specified in parentheses after the array name in the declaration.

(True/False)
4.9/5
(38)

Changes made to an entire array that has been passed to a method will not affect the original values of the array.

(True/False)
5.0/5
(22)

If you want to pass an array element into a method by reference,what will you need to do?

(Multiple Choice)
4.9/5
(39)

For Each…Next loop is barely used because it's more complicated than the For…Next loop.

(True/False)
4.7/5
(37)

Only literal integer values can be used as an index into an array.

(True/False)
4.9/5
(43)

In an array of Boolean variables,if the initializer list is empty,the elements in the array are initialized to the default value True.

(True/False)
4.8/5
(46)
Showing 1 - 20 of 79
close modal

Filters

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