Exam 7: Arrays and Lists

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

A(n) ____________ is an object that can hold a group of values that are all the same data type.

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

C

The storage locations in an array are known as ____________.

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

D

Which one of the following statements declares a reference variable named values that can be used to reference an int array?

Free
(Multiple Choice)
4.8/5
(39)
Correct Answer:
Verified

C

When you call a method and pass an array as an argument, you simply pass the____________ that references the array.

(Multiple Choice)
4.8/5
(42)

The ____________ uses a loop to sequentially step through an array, starting with the first element.

(Multiple Choice)
4.8/5
(36)

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

(Multiple Choice)
4.7/5
(27)

A(n) ____________ is similar to an array but offers many advantages over an array.

(Multiple Choice)
4.8/5
(34)

The .NET Framework provides a class named Container, which can be used for storing and retrieving items.

(True/False)
4.8/5
(28)

Look at the following code sample: Look at the following code sample:   What is the value stored in values[2, 2]? What is the value stored in values[2, 2]?

(Multiple Choice)
4.9/5
(39)

An array and the variable that references it are the same entity.

(True/False)
4.8/5
(34)

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

(Multiple Choice)
4.8/5
(29)

When you are working with a(n) ____________ variable, the compiler sets aside, or allocates, a chunk of memory that is big enough for that variable.

(Multiple Choice)
4.9/5
(36)

The ____________ creates an object in memory and returns a reference to that object.

(Multiple Choice)
4.9/5
(41)

When working with an array, you cannot use a subscript that is less than 0 or greater than the size of the array minus 1.

(True/False)
4.9/5
(39)

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 sets of brackets..

(True/False)
4.8/5
(40)

Of the following statements, which one correctly initializes an int array named quarters with the values 1, 2, 3, and 4?

(Multiple Choice)
4.9/5
(40)

____________ arrays, which are also called 2D arrays, can hold multiple sets of data.

(Multiple Choice)
4.8/5
(37)

To access one of the elements in a two-dimensional array, you must use two subscripts.

(True/False)
5.0/5
(45)

The default value of a string array's elements is null.

(True/False)
4.7/5
(35)

What special value are the elements of an array of reference type objects set to by default?

(Multiple Choice)
4.8/5
(35)
Showing 1 - 20 of 99
close modal

Filters

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