Exam 7: Arrays and Lists
Exam 1: Introduction to Computers and Programming161 Questions
Exam 2: Introduction to Visual C#131 Questions
Exam 3: Processing Data176 Questions
Exam 4: Making Decisions78 Questions
Exam 5: Loops, Files, and Random Numbers112 Questions
Exam 6: Modularizing Your Code with Methods69 Questions
Exam 7: Arrays and Lists99 Questions
Exam 8: More About Processing Data90 Questions
Exam 9: Classes and Multiform Projects89 Questions
Exam 10: Inheritance and Polymorphism37 Questions
Exam 11: Databases69 Questions
Select questions type
When processing the contents of an array, the foreach loop does not provide a variable that can be used as an array subscript.
(True/False)
4.8/5
(39)
Because subscript numbering starts at 0, the subscript of the last element in an array is 1 less than the total number of elements in the array.
(True/False)
4.8/5
(33)
It is critical to use reference parameters in any method that must be able to change the values of the items passed to it as arguments.
(True/False)
4.9/5
(38)
The storage locations in an array are known as ____________.
(Multiple Choice)
4.8/5
(46)
When you use either the ref or out keywords before an array parameter, the receiving method does not automatically make a local copy of the array.
(True/False)
4.8/5
(31)
Look at the following code sample: const int ROWS = 2;
Const int COLS = 2;
Int[,] grid = new int[ROWS, COLS];
What is the total number of elements in the grid array?
(Multiple Choice)
5.0/5
(37)
The ____________ works like this: The smallest value in the array is located and moved to element 0. The next smallest value is located and moved to element 1. This process continues until all the elements have been placed in their proper order.
(Multiple Choice)
4.8/5
(39)
You can call the ____________ method to insert an item at a specific index position in a List object.
(Multiple Choice)
4.8/5
(40)
What special value are the elements of an array of reference type objects equal to by default?
(Multiple Choice)
5.0/5
(44)
Look at the following code sample: const int SIZE = 10;
Int[] values = new int[SIZE];
For (int index = 0; index < SIZE; index++)
{
Values[index] = index + 1;
}
When the loop is finished stepping through the values array, what value will be stored in values[0]?
(Multiple Choice)
4.8/5
(33)
An array and the variable that references it hold the same value.
(True/False)
4.9/5
(46)
The foreach loop is designed to work with a temporary, read-only variable known as the ____________.
(Multiple Choice)
4.9/5
(41)
A List object has a(n) ____________ that holds the number of items stored in the List.
(Multiple Choice)
4.9/5
(32)
Because arrays are always passed ____________, a method that receives an array as an argument has access to the actual array.
(Multiple Choice)
4.8/5
(35)
When calling a method and passing an array variable as an argument, the variable contains a ____________ to the array.
(Multiple Choice)
4.9/5
(38)
To declare a two-dimensional array, two ____________ are required: The first one is for the number of rows, and the second one is for the number of columns.
(Multiple Choice)
4.8/5
(34)
A two-dimensional array can be thought of as having rows and columns of elements.
(True/False)
4.8/5
(39)
C# provides a special loop known as the ____________, that automatically iterates once for each element in the array.
(Multiple Choice)
4.9/5
(35)
You can optionally initialize a List object when you declare it.
(True/False)
4.7/5
(32)
If you want to take out all items from a List object, call the ____________ method.
(Multiple Choice)
4.8/5
(38)
Showing 61 - 80 of 99
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)