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 Collections75 Questions
Exam 9: Introduction to Windows Programming75 Questions
Exam 10: Programming Based on Events74 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 Applications75 Questions
Select questions type
int [ ,,] anArray = new [3,2,7] allows ____ elements to be stored.
(Multiple Choice)
4.9/5
(75)
The ____________ method is used with the ArrayList class to push items on the list.
(Short Answer)
5.0/5
(75)
int [ , ] score = {{88, 66, 76, 92, 95} {67, 88, 45, 99, 80}};
int total = 0;
foreach (int val in score)
total += val;
-Which of the following is a valid example of calling a method and sending it a two-dimensional array argument?
(Multiple Choice)
4.9/5
(77)
string sValue = "Life is about choices";
string [ ] sn = sValue.Split(' ');
-Which method in the string class might be useful to create a table with values number aligned?
(Multiple Choice)
4.9/5
(93)
A Hashtable represents a collection of key/value pairs that are organized based on the hash code of the key.
(True/False)
4.8/5
(77)
The foreach loop structure cannot be used to iterate through a multi-dimensional array.
(True/False)
4.8/5
(76)
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.9/5
(67)
With C#,you are limited to 10 dimensions for multi-dimensional arrays.
(True/False)
4.8/5
(81)
int[ ] [ ] anArray = new int[2] [ ];
anArray[0] = new int[ ] {100, 200};
anArray[1] = new int[ ] {11, 22, 37};
-The above segment of code ____.
(Multiple Choice)
4.9/5
(76)
C# uses a row major format for accessing arrays,which means that the elements are printed in rows.Every entry in the first column is printed before moving to the second column.
(True/False)
4.9/5
(72)
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.9/5
(75)
With a two dimensional array,when the number of columns in the rows differs,a jagged array can be created.
(True/False)
4.9/5
(68)
____ 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.9/5
(76)
int [ , ] score = {{88, 66, 76, 92, 95} {67, 88, 45, 99, 80}};
int total = 0;
foreach (int val in score)
total += val;
-BinarySearch( )is ____.
(Multiple Choice)
4.9/5
(86)
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.9/5
(70)
int[ ] [ ] anArray = new int[2] [ ];
anArray[0] = new int[ ] {100, 200};
anArray[1] = new int[ ] {11, 22, 37};
-For a two-dimensional array,values are stored ____________ using a row major format.
(Essay)
4.9/5
(79)
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
(63)
int[ ] [ ] anArray = new int[2] [ ];
anArray[0] = new int[ ] {100, 200};
anArray[1] = new int[ ] {11, 22, 37};
-The property ____________ returns the number of dimensions of the array.
(Short Answer)
4.8/5
(71)
Showing 21 - 40 of 75
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)