Exam 8: Advanced Collections

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

Collection classes are classes that enable you to store and retrieve various groups of objects.

(True/False)
4.8/5
(63)

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
(93)

The method ____ of the ArrayList class returns an arraylist that is a subset of another arraylist.

(Multiple Choice)
4.9/5
(81)

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

(Multiple Choice)
4.9/5
(72)

____________ class represents a simple last-in-first-out (LIFO)collection of objects.

(Short Answer)
5.0/5
(84)

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

(True/False)
4.8/5
(75)

string sValue = "Life is about choices"; string [ ] sn = sValue.Split(' '); -The method in the string class that returns the string in uppercase is ____.

(Multiple Choice)
4.8/5
(77)

The Queue class represents a Last In First Out (LIFO)collection of objects while the Stack collection class represents a simple FIFO (First In First Out)collection.

(True/False)
5.0/5
(90)

The major requirement when working with arrays is the fact that all data values placed in an array must be of the ____________.

(Short Answer)
4.7/5
(75)

C# is a row major language,which means you specify the column index ____________ when you reference elements in a two-dimensional array.

(Short Answer)
4.8/5
(65)

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

(True/False)
4.8/5
(79)

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

(True/False)
4.9/5
(84)

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

(True/False)
4.9/5
(71)

With a two-dimensional array,GetLength(0)returns the number of rows and GetLength(1)returns the number of columns in the array.

(True/False)
5.0/5
(75)

C# has two types of string literals.Quoted string literals appear between double quotation marks (" ") and verbatim string literal,which start with the at symbol (@).

(True/False)
4.8/5
(88)

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

(Multiple Choice)
4.8/5
(76)

Like traditional arrays,indexes of ArrayList objects are ____________.

(Short Answer)
4.9/5
(82)

string [ , ] name = new string [2, 3] {{"Alex", "Ben", "Cay"}, {"Jose", "Tyne", "Yin" }}; -Which of the following segments of code will display the first row of a two dimensional array?

(Multiple Choice)
4.8/5
(72)

In C#,a two-dimensional array is usually visualized as a table divided into columns and rows where data is stored in contiguous memory locations by column.

(True/False)
4.7/5
(74)

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

(Multiple Choice)
4.8/5
(74)
Showing 41 - 60 of 75
close modal

Filters

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