local - ANSWER A variable is ___ to a method when it is declared within that method.
a. local
b. related
c. global
d. attached
True - ANSWER Once an array object's size has been allocated, that array object's
...
local - ANSWER A variable is ___ to a method when it is declared within that method.
a. local
b. related
c. global
d. attached
True - ANSWER Once an array object's size has been allocated, that array object's size may not be changed.
True or False
True - ANSWER When arrays of primitive numeric types (such as int and double) are allocated, C# automatically initializes each element to zero.
True or False
True - ANSWER You may not modify array elements traversed using a foreach loop.
True or False
pretest - ANSWER A while loop is a ____ loop.
A. posttest
B. intest
C. pretest
D. fortest
Error - ANSWER int[,] values = { { 1, 2, 3, 4 } , { 5, 6, 7, 8 } };
What is the value stored in values[2, 2]?
A. 3
B. 6
C. 7
D. Error
assignment compatible - ANSWER When you pass an argument to a method, the argument's data type must be ____ with the receiving parameters data type.
A. memory mapped
B. user friendly
C. data bound
D. assignment compatible
string - ANSWER the fact that the ReadLine() method call can be assigned to a string means that its return type is ____.
A.int
B.Char
C.bool
D.String
False - ANSWER When you instantiate an array, you can choose its exact location in memory
True or False
10 - ANSWER How many iterations will the following loop complete?
for (int i = 10; i >= 1; --i)
WriteLine(" i = " + i);
A. 0
B. 9
C. 10
D. 11
E. infinite Loop
True - ANSWER When a variable is declared on the initialization expression of a for loop, the scope of the variable is limited to the loop itself.
True or False
indefinite repetion - ANSWER Sentinel-controlled repetition is an example of:
A. indefinite repetition
B. double repetition
C. definite repetition
D. infinite repetition
void method - ANSWER When you call a ____, it simply executes the statements it contains and then terminates.
A. terminal method
B. private method
C. void method
D. value-returning method
return - ANSWER A value-returning method must have a _____ statement.
A. assignment
B. return
C. void
D. logical
value-returning method - ANSWER When you call a ___, it executes the statements that it contains and then it returns a value back to the statement that called it.
A. public method
B. value-returning method
C. recursive method
D. void method
True - ANSWER At most, a method can directly return on value to the statement that calls it.
True or False
arrayName.Length - 1 - ANSWER You can easily navigate through arrays using a for or while loop that varies a subscript from 0 up to (and including) ___.
A. arrayName.Length - 2
B. arrayName.Length - 1
C. arrayName.Length
D. arratName.Length + 1
inner - ANSWER when loops are nested, each pair contains a ___ loop and an outer loop.
A. posttest
B. pretest
C. inner
D. for
77 - ANSWER what will the value of the variable test be after the following sequence of statements complete execution?
int x = 77;
int test;
test = x--;
A. 76
B.0
C.77
D. 78
after - ANSWER The do-while repetition statement tests the condition ___ the body of the loop executes.
A. before
B. after
C. while
D. none of the above
True - ANSWER When writing a method, you have to specify the data type for every parameter variable that is declared in the parameter list.
True or False
True - ANSWER a partially-filled array is normally used with an accompanying integer variable that holds the number of items that are actually stored in the array.
True or False
new - ANSWER Memory for an array is typically allocated by using keyword ___.
A. new
B.array
C. mem
D. foreach
False - ANSWER When the keyword void appears in the method header, it means that the method will return a value.
True or False
do-while - ANSWER When you know you want to perform some task at least one time, the ____ loop is the best choice.
A. while
B. do-while
C. foreach
D. for
for - ANSWER With a ___ loop, you can indicate the starting value for the loop control variable, the test condition that controls loop entry, and the expression that alters the loop control variable, all in one convenient place.
A. do
B. do-while
C. while
D. for
jagged array - ANSWER A ____ is similar to a rectangular two-dimensional array, but each row can have a different number of columns.
A. offset array
B. skewed array
C. jagged array
D. differential array
integer - ANSWER An array subscript can be an expression, as long as the expression evaluates to a ____.
A.integer
B.float
C.double
D. boolean
iteration - ANSWER One execution of any loop is called a ____.
A. lap
B. iteration
C. path
D. round
Length property - ANSWER In C#, all arrays have a _____________ that is set to the
[Show More]