Question: A control’s name should never be changed to something other than the default name that Visual Studio gives it.

Answer Choices:
True
False

Answer: False

 

Question: In a C# application, all the buttons on a form must share the same Click event handler in form’s source code file.

Answer Choices:
True
False

Answer: False

 

Question: When a method is called, the program branches to that method and executes the statements in its body.

Answer Choices:
True
False

Answer: True

 

Question: Each form and control in an application’s GUI must have a name that identifies it.

Answer Choices:
True
False

Answer: True

 

Question: The _______ operator is the logical OR operator, which takes two Boolean expressions as operands and creates a compound Boolean expression that is true when either of the subexpressions is true.

Answer Choices:
&&
||
<>
!

Answer: ||

 

Question: When an application is running, the control having the _______ is the one that receives the user’s keyboard input.

Answer Choices:
tab Index
focus
scope
data

Answer: focus

 

Question: A(n) ________ variable belongs to the method in which it is declared, and only statements inside that method can access the variable.

Answer Choices:
local
global
limited
static

Answer: local

 

Question: If you do not initialize a(n) ________ field, it begins with a special value known as null.

Answer Choices:
int
decimal
double
string

Answer: string

 

Question: A ________ appears as a small box with some accompanying text.

Answer Choices:
check box
radio button
link
list box

Answer: check box

 

Question: In the header, the method name is always followed by a set of parentheses.

Answer Choices:
True
False

Answer: True

 

Question: When you pass an argument to a ref parameter, that argument must already be set to some value.

Answer Choices:
True
False

Answer: True

 

Question: When an exception is thrown, an object known as an ________ is created in memory.

Answer Choices:
exception object
debug variable
try object
state object

Answer: exception object

 

Question: When a method is declared with the private access modifier, it can be called only by code inside the same class as the method.

Answer Choices:
True
False

Answer: True

 

Question: When you write a catch clause, you can optionally assign a name to the exception object.

Answer Choices:
True
False

Answer: True

 

Question: The _______ keyword is required when specifying a variable as an output variable.

Answer Choices:
out
ref
pass
value

Answer: out