Exam 7: Arrays and Lists

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

The only requirement for using a binary search is that the values in the array must be sorted in ascending or descending order.

(True/False)
4.8/5
(35)

An exception will occur if a List index is less than 0 or greater than the List's Count property minus 1.

(True/False)
4.8/5
(36)

Because array subscripts start at 1 rather than 0, you are not as likely to perform an off-by-one error.

(True/False)
4.9/5
(37)

Unlike a one-dimensional array, you cannot provide an initialization list for a two-dimensional array.

(True/False)
4.7/5
(39)

A(n) ____________ is similar to an array, but it can expand at runtime.

(Multiple Choice)
4.8/5
(46)

Arrays are reference type objects.

(True/False)
4.9/5
(43)

The sequential search algorithm is the simplest of all array searching algorithms.

(True/False)
4.8/5
(31)

When working with an array, it is important that you do not use a(n)____________.

(Multiple Choice)
4.8/5
(36)

If you want to make a separate copy of an array, you must create the second array in memory and then copy the individual elements of the first array to the second. This is known as a deep copy.

(True/False)
5.0/5
(33)

You can use the ____________ to take out an item at a specific index in a List.

(Multiple Choice)
4.8/5
(44)

To access an item that is stored in a particular row and column in a jagged array, you enclose the row and column subscripts in their own pairs of brackets..

(True/False)
4.8/5
(42)

To compare the contents of two arrays, you must compare each of the ____________ in the two arrays.

(Multiple Choice)
5.0/5
(36)

You can create an array to hold any single type of value.

(True/False)
4.7/5
(32)

____________ is a process that runs automatically in the background from time to time, removing all unreferenced objects from memory.

(Multiple Choice)
4.8/5
(37)

Creating a reference type object typically requires the following two steps, which can optionally be coded in a single program statement: 1. Declare a reference variable. 2. Create an object and associate it with the reference variable.

(True/False)
4.8/5
(29)

You cannot reassign an array reference variable to a different array.

(True/False)
4.9/5
(33)

When you create an array, you can optionally initialize it with a collection of values called a(n) ____________.

(Multiple Choice)
4.8/5
(38)

Look at the following code sample: int[,] values = { { 1, 2, 3, 4 }, { 5, 6, 7, 8 } }; What is the value stored in values[1, 2]?

(Multiple Choice)
4.7/5
(41)

If you know the value of the item you want to take out from a List object, but you do not know the item's index, you can use the ____________.

(Multiple Choice)
4.8/5
(28)
Showing 81 - 99 of 99
close modal

Filters

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