Exam 8: Advanced Collections
Exam 1: Introduction to Computing and Programming75 Questions
Exam 2: Data Types and Expressions75 Questions
Exam 3: Methods and Behaviors75 Questions
Exam 4: Creating Your Own Classes75 Questions
Exam 5: Making Decisions75 Questions
Exam 6: Repeating Instructions75 Questions
Exam 7: Arrays75 Questions
Exam 8: Advanced Collections74 Questions
Exam 9: Introduction to Windows Programming75 Questions
Exam 10: Programming Based on Events75 Questions
Exam 11: Advanced Object-Oriented Programming Features75 Questions
Exam 12: Debugging and Handling Exceptions75 Questions
Exam 13: Working With Files75 Questions
Exam 14: Working With Databases75 Questions
Exam 15: Web-Based Applications73 Questions
Select questions type
Since the string data type is a reference type, you compare addresses as opposed to comparing contents or values when you use the equality operators with two string data items.
Free
(True/False)
4.9/5
(46)
Correct Answer:
False
The method ____ of the ArrayList class returns an arraylist that is a subset of another arraylist.
Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
D
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 (@).
Free
(True/False)
4.8/5
(37)
Correct Answer:
True
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)
4.8/5
(34)
To declare a three-dimensional array, three integral values are used. The first number specifies the number of ____________.
(Short Answer)
4.8/5
(35)
The ArrayList class requires you to add and remove elements to/from the structure using Push( ) and Pop( ) methods.
(True/False)
4.8/5
(38)
The foreach loop structure cannot be used to iterate through a multi-dimensional array.
(True/False)
4.9/5
(39)
____ are types of data structures that consist of a sequence of data records such that in each record there is an additional field that contains a reference (i.e., a link) to the next record in the sequence.
(Multiple Choice)
4.8/5
(40)
As with the ArrayList class, in order to instantiate objects of many of the collection classes, you need to include a using ____________.
(Short Answer)
4.8/5
(32)
A Hashtable represents a collection of key/value pairs that are organized based on the hash code of the key.
(True/False)
4.7/5
(46)
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}};
Looking above, the value of price.Length is 10.
(True/False)
4.9/5
(39)
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.9/5
(40)
In order to determine the position of one or more characters inside a string argument, use the ____ method of the string class.
(Multiple Choice)
4.9/5
(43)
If an array named num is dimensioned to hold 10 values in 5 rows and 2 columns, how would you store 50 in the first physical row and first physical column?
(Multiple Choice)
4.7/5
(44)
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)
4.9/5
(40)
The Rank property is used with array collections to return the number of dimensions.
(True/False)
4.8/5
(31)
The major requirement of dealing with multi-dimensional arrays is the fact that all data values placed in an array must be of the same base type.
(True/False)
4.7/5
(30)
The ____________ method is used with the ArrayList class to push items on the list.
(Short Answer)
4.9/5
(37)
Which of the following returns the number of columns in a two-dimensional array?
(Multiple Choice)
4.8/5
(35)
Showing 1 - 20 of 74
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)