Question: A method definition has two parts: a header and a body.

Answer Choices:
True
False

Answer: True

 

Question: When an exception is thrown, the application stops running and Visual Studio goes into a special mode known as _______.

Answer Choices:
break mode
debug mode
validation mode
exception mode

Answer: break mode

 

Question: When the PictureBox control’s SizeMode property is set to AutoSize, the PictureBox control is automatically resized to fit the image that will be displayed.

Answer Choices:
True
False

Answer: True

 

Question: Passing an argument by reference guarantees that the argument will not be changed by the method it is passed into.

Answer Choices:
True
False

Answer: False

 

Question: With the ________ methods, you can determine whether a string contains a value that can be converted to a specific data type before it is converted to that data type.

Answer Choices:
Peek
Int.Convert
TryParse
Preemptive

Answer: TryParse

 

Question: In code, if you want to clear the text that is displayed in a Label control, simply assign an empty string (“”) to the control’s Text property.

Answer Choices:
True
False

Answer: True

 

Question: ________ are useful when you want the user to select one choice from several possible choices.

Answer Choices:
Text boxes
Buttons
Check boxes
Radio buttons

Answer: Radio buttons

 

Question: The Math class provides two predefined named constants, Math.PI and Math.E, which are assigned mathematical values for pi and e.

Answer Choices:
True
False

Answer: True

 

Question: The statements that make up the method body are enclosed inside a set of curly braces.

Answer Choices:
True
False

Answer: True

 

Question: If no item is selected in the ListBox, the SelectedIndex property is set to what value?

Answer Choices:
0
-1
true
false

Answer: -1

 

Question: In C#, string literals must be enclosed in double quotation marks.

Answer Choices:
True
False

Answer: True

 

Question: void methods are useful for simplifying complex conditions that are tested in decision and repetition structures.

Answer Choices:
True
False

Answer: False

 

Question: An error will occur if you attempt to use a string that is set to null.

Answer Choices:
True
False

Answer: False

 

Question: When the keyword void appears in the method header, it means that the method will return a value.

Answer Choices:
True
False

Answer: False

 

Question: The order in which controls receive the focus is called the ________.

Answer Choices:
focus index
tab order
order element
data value

Answer: tab order

 

Question: You have to write the data type for each parameter variable that is declared in a parameter list.

Answer Choices:
True
False

Answer: True

 

Question: A Panel control cannot display a title and does not have a Text property.

Answer Choices:
True
False

Answer: False

 

Question: The assignment operator assigns the value that appears on its left side to the item that appears on its right side.

Answer Choices:
True
False

Answer: False

 

Question: TextBox controls are the only controls with TabIndex values.

Answer Choices:
True
False

Answer: False

 

Question: The first character of a C# identifier must be one of the letters a through z or A through Z or an underscore character (_).

Answer Choices:
True
False

Answer: True

 

Question: GroupBox controls do not have their own TabIndex property.

Answer Choices:
True
False

Answer: False

 

Question: The _______ has two possible paths of execution—one path is taken if the Boolean expression is true, and the other path is taken if the Boolean expression is false.

Answer Choices:
branching structure
comparative structure
dual-alternative decision structure
multi-decision structure

Answer: dual-alternative decision structure

 

Question: A constant field’s value can be changed by other statements inside the class.

Answer Choices:
True
False

Answer: False

 

Question: When you declare a named constant, an initialization value is not required.

Answer Choices:
True
False

Answer: False