Exam 8: Advanced Collections

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

Multi-dimensional array identifiers are normally defined using a plural noun.

(True/False)
4.9/5
(44)

If you override the GetHashCode( ) method, you must also override the ____________ method to guarantee that two objects considered equal have the same hash code. Both  are inherited from the object class.

(Short Answer)
4.9/5
(38)

There are several ways to do a compile-time initialization of two-dimensional arrays. All of the following are valid ways EXCEPT ____.

(Multiple Choice)
4.8/5
(38)

One of the special properties in the ArrayList class is Count. It returns ____.

(Multiple Choice)
4.8/5
(34)

The Length property can be used to return the total number of elements in all dimensions.

(True/False)
4.7/5
(42)

The method in the string class that returns the string in uppercase is ____.

(Multiple Choice)
4.9/5
(40)

The string type allows individual characters to be accessed using an index with [ ].

(True/False)
4.7/5
(43)

double [  ,  ] price = new double [2 , 5] {{1.1, 1.2, 1.3, 1.5, 1.4}{2.1, 2.2, 2.3, 2.5, 2.4}}; With the declaration above, price[1] refers to 1.2.

(True/False)
4.7/5
(33)

Which of the following would define a two dimensional structure to store temperature during three periods of a day for seven days?

(Multiple Choice)
4.8/5
(44)

Which of the following is a valid heading for a method that could accept the two-dimensional array as an argument?

(Multiple Choice)
4.7/5
(29)

double [  ,  ] price = new double [2 , 5] {{1.1, 1.2, 1.3, 1.5, 1.4}{2.1, 2.2, 2.3, 2.5, 2.4}}; With the declaration above, price[0,2] refers to 2.2.

(True/False)
4.9/5
(33)

Which of the following is a valid example of calling a method and sending it a two-dimensional  array argument?

(Multiple Choice)
4.8/5
(44)

The string is a reference type in C#.

(True/False)
4.8/5
(30)

C# has two types of string literals. The @-quoted string literals are called ____.

(Multiple Choice)
4.9/5
(30)

int [ , , ] anArray = new [3, 2, 7] allows ____ elements to be stored.

(Multiple Choice)
5.0/5
(45)

The string class stores an immutable series of characters--meaning once you assign a string reference a value, that referenced location's value cannot be modified.

(True/False)
4.9/5
(30)

Console.WriteLine(calories.GetUpperBound(0)); returns the largest value in an array.

(True/False)
4.8/5
(31)

In C#, you may access a two-dimensional array element using the notation [ , ] or through using a double set of braces ([ ] [ ]).

(True/False)
4.9/5
(40)

Strings are considered ____________ because once you give a string a value; it cannot be  modified. Methods that seem to be modifying a string are actually returning a new  string containing the modification.

(Short Answer)
4.8/5
(27)

Which of the following could be a method heading for a member method that returns a two-dimensional array?

(Multiple Choice)
4.9/5
(38)
Showing 21 - 40 of 74
close modal

Filters

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