Exam 7: Arrays and Lists
Exam 1: Introduction to Computers and Programming161 Questions
Exam 2: Introduction to Visual C131 Questions
Exam 3: Processing Data174 Questions
Exam 4: Making Decisions77 Questions
Exam 5: Loops, Files, and Random Numbers109 Questions
Exam 6: Modularizing Your Code With Methods61 Questions
Exam 7: Arrays and Lists99 Questions
Exam 8: More About Processing Data87 Questions
Exam 9: Classes and Multiform Projects89 Questions
Exam 10: Inheritance and Polymorphism37 Questions
Exam 11: Databases69 Questions
Select questions type
The advantage of the binary search is its simplicity, but its disadvantage, however, is its inefficiency.
(True/False)
4.8/5
(37)
The sequential search algorithm is the simplest of all search algorithms.
(True/False)
4.7/5
(39)
A search algorithm is a technique for scanning through an array and rearranging its contents in some specific order.
(True/False)
4.9/5
(28)
When processing the contents of an array, there are some circumstances in which the foreach loop is not adequate, and the for loop should be used instead.
(True/False)
5.0/5
(31)
It is preferred practice to use a(n) ____________ as an array's size declarator.
(Multiple Choice)
4.8/5
(43)
C# provides a special loop known as the ____________, that automatically iterates once for each element in the array.
(Multiple Choice)
4.9/5
(29)
You can use subscript notation to access the items in a List, just as you can with an array.
(True/False)
4.9/5
(38)
An array's size declarator must be a nonnegative integer number.
(True/False)
4.7/5
(37)
The first element in an array is assigned the subscript 1, the second element is assigned the subscript 2, and so forth.
(True/False)
4.9/5
(32)
When you use either the ref or out keywords with an array parameter, the receiving method not only has access to the array, but it also has access to the reference variable that was used to pass the array.
(True/False)
4.8/5
(37)
Look at the following code sample:
const int ROWS = 8;
Const int COLS = 2;
Int[,] table = new int[ROWS, COLS];
Which one of the following statements stores the value 25 in the element located at the first row and second column of the table array?
(Multiple Choice)
4.8/5
(44)
When reading the contents of a file into an array, the loop should iterate until either the array is filled or the end of the file is reached.
(True/False)
4.8/5
(37)
To add items to an existing List object, you use the ____________.
(Multiple Choice)
4.8/5
(32)
Various techniques known as ____________ have been developed to locate a specific item in a larger collection of data, such as an array.
(Multiple Choice)
4.8/5
(38)
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.9/5
(32)
You can optionally initialize a List object when you declare it.
(True/False)
4.9/5
(33)
An array's____________ indicates the number of values that the array should be able to hold.
(Multiple Choice)
4.8/5
(41)
Which one of the following declaration statements is not a value type?
(Multiple Choice)
5.0/5
(40)
Showing 81 - 99 of 99
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)