Exam 8: Advanced Collections

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

Which of the following is an example of a collection class?

(Multiple Choice)
4.9/5
(36)

The ____ method adds an object to the end of the queue.

(Multiple Choice)
4.8/5
(38)

For a declaration such as, int [ , ]  anArray = new int [6, 5], a total of 11 memory locations can be accessed using the identifier anArray.

(True/False)
4.9/5
(38)

The ____________ are defined to compare the contents of strings instead of comparing their addresses.

(Short Answer)
4.8/5
(33)

int [ , ] score = {{88, 66, 76, 92, 95} {67, 88, 45, 99, 80}}; int total = 0; Foreach (int val in score) Total += val; Using the code shown above, what is added to total during the first iteration?

(Multiple Choice)
4.7/5
(37)

The ArrayList does not allow you to mix types. All elements must be of the same data type.

(True/False)
4.8/5
(38)

The ArrayList class can be used to create a listlike structure that can dynamically increase or decrease in length.

(True/False)
4.8/5
(39)

C# also includes a generic ____________ class that is very similar to the ArrayList class. The primary difference between the two classes is that objects do not have to be the same type when they are pushed on an ArrayList, unlike the other class, which requires all objects to be of the same type..

(Short Answer)
4.8/5
(36)

The method that deletes a number of characters beginning at a specified position is ____.

(Multiple Choice)
4.8/5
(38)

Console.Write("anExample".IndexOf("a")); returns ____.

(Multiple Choice)
4.8/5
(30)

string sValue = "Life is about choices"; String [ ] sn = sValue.Split(' '); Using the Substring( ) method with sValue, which of the following references the word choices?

(Multiple Choice)
4.9/5
(36)

Which class represents a First-In-First-Out (FIFO) collection, which is useful for storing objects in the order they were received for sequential processing?

(Multiple Choice)
4.8/5
(35)

The GetLength( ) method can be called to return the number of rows or columns.

(True/False)
4.8/5
(46)

The ____________ property can be used with multidimensional arrays to get the total number of elements in all dimensions.

(Short Answer)
4.8/5
(38)
Showing 61 - 74 of 74
close modal

Filters

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