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
With what value should the accumulator variable be initialized to calculate the total of the values in a numeric array?
(Multiple Choice)
4.8/5
(34)
Each element in an array is assigned a unique number known as a(n) ____________.
(Multiple Choice)
4.9/5
(34)
If you provide an initialization list when declaring an array, you can leave out the size declarator, but you cannot leave out the new operator and its subsequent expression.
(True/False)
4.7/5
(39)
The memory that is allocated for a reference type variable is the actual location that will hold any value that is assigned to that variable.
(True/False)
4.8/5
(29)
Which one of the following statements assigns the value 40 to the first element in an int array named values?
(Multiple Choice)
4.8/5
(39)
To compare the contents of two arrays, you must compare the ____________ of the two arrays.
(Multiple Choice)
5.0/5
(39)
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)
4.8/5
(42)
In C#, you cannot reassign an array reference variable to a different array.
(True/False)
4.9/5
(34)
You can use the == operator to compare two array reference variables and determine whether the arrays are equal.
(True/False)
4.9/5
(41)
It is critical to use reference parameters in any method that must be able to change the values of the items that are passed to it as parameters.
(True/False)
4.8/5
(35)
All the data types in C# − and the underlying .NET Framework − fall into two categories: value types and reference types.
(True/False)
4.9/5
(40)
If you want to remove all the items from a List, you can call the ____________ method.
(Multiple Choice)
4.8/5
(34)
Creating a reference type object typically requires the following two steps:
1. You declare a reference variable.
2. You create the object and associate it with the reference variable.
(True/False)
4.8/5
(43)
A List object has a(n) ____________ that holds the number of items stored in the List.
(Multiple Choice)
4.9/5
(40)
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
(38)
Because arrays are always passed ____________, a method that receives an array as an argument has access to the actual array.
(Multiple Choice)
4.7/5
(43)
An array's Length property is read only, so you cannot change its value.
(True/False)
4.9/5
(39)
Showing 21 - 40 of 99
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)