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
Normally you will want to use two integral values to reference individual elements in a two-dimensional array.If you use just one integral value,you get all of the values for that row.
Free
(True/False)
4.9/5
(72)
Correct Answer:
False
To declare a three-dimensional array,three integral values are used.The first number specifies the number of ____________.
Free
(Short Answer)
4.8/5
(76)
Correct Answer:
planes
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 heading for a method that could accept the two-dimensional array as an argument?
Free
(Multiple Choice)
4.9/5
(81)
Correct Answer:
A
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.
(True/False)
4.8/5
(78)
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.7/5
(90)
A two dimensional array is accessed much like you access cells in a spreadsheet.
(True/False)
4.8/5
(83)
The ArrayList does not allow you to mix types.All elements must be of the same data type.
(True/False)
4.9/5
(89)
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 could be a method heading for a member method that returns a two-dimensional array?
(Multiple Choice)
4.9/5
(68)
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.9/5
(80)
string sValue = "Life is about choices";
string [ ] sn = sValue.Split(' ');
-After the above segment of code is executed,where is "choices" stored?
(Multiple Choice)
4.8/5
(72)
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.7/5
(75)
The string method that retrieves part of a string from a string argument is ____.
(Multiple Choice)
5.0/5
(81)
One of the properties of the ArrayList class is ____. It Gets or sets the number of elements that the ArrayList can contain.
(Multiple Choice)
4.9/5
(77)
int[ ] [ ] anArray = new int[2] [ ];
anArray[0] = new int[ ] {100, 200};
anArray[1] = new int[ ] {11, 22, 37};
-The ____________ property can be used with multidimensional arrays to get the total number of elements in all dimensions.
(Short Answer)
4.9/5
(82)
Multi-dimensional array identifiers are normally defined using a plural noun.
(True/False)
4.7/5
(66)
The Rank property is used with array collections to return the number of dimensions.
(True/False)
4.8/5
(89)
The GetLength( )method can be called to return the number of rows or columns.
(True/False)
4.9/5
(87)
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
(71)
Console.WriteLine(calories.GetUpperBound(0));returns the largest value in an array.
(True/False)
4.8/5
(84)
Showing 1 - 20 of 75
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)