Question: The value that is returned from a method can be used like any other value.

Answer Choices:
True
False

Answer: True

 

Question: The ________ method can be used to convert a string to an int.

Answer Choices:
TryParse.Int
Int.TryParse
TryParseInt
Int.Parser

Answer: Int.TryParse

 

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

Answer Choices:
Buttons
Check boxes
Radio buttons
Text boxes

Answer: Radio buttons

 

Question: When the user selects an item in a ListBox, the item is stored in the ListBox’s ________ property.

Answer Choices:
DataSelection
SelectedItem
Checked
SelectedValue

Answer: SelectedItem

 

Question: Anytime a RadioButton or a CheckBox control’s Checked property changes, a ________ happens for that control.

Answer Choices:
CheckedChanged event
Click event
Focus event
ValueChanged event

Answer: CheckedChanged event

 

Question: When an event handler is generated for a control by Visual Studio, it doesn’t do anything until you add your own code.

Answer Choices:
True
False

Answer: True

 

Question: Once you create a ListBox control, you add items you wish to display to its _______.

Answer Choices:
Values property
Items property
Text property
Display property

Answer: Items property

 

Question: Ending a programming statement with a semicolon is not required in C#.

Answer Choices:
True
False

Answer: False

 

Question: RadioButton controls have a ________ property that determines whether the control is selected or deselected.

Answer Choices:
Active
Selected
Checked
Pushed

Answer: Checked

 

Question: A string can be converted to a decimal with the ________ method.

Answer Choices:
try.ParseDecimal
decimal.TryParse
decimal.ToString
decimal.ParseString

Answer: decimal.TryParse

 

Question: Modularization tends to simplify code.

Answer Choices:
True
False

Answer: True

 

Question: When the user selects an item in a ListBox, the item’s index is stored in the ListBox’s ________ property.

Answer Choices:
DataValue
ValueIndex
Index
SelectedIndex

Answer: SelectedIndex

 

Question: The ________ dictates which operations are performed first in a mathematical expression.

Answer Choices:
least significant value
compiler version
operator position
order of operations

Answer: order of operations

 

Question: A(n) ________ is a variable that is passed as an argument to a method, and when the method is finished, a value is stored in the variable.

Answer Choices:
in
out
ref
param

Answer: ref

 

Question: C# identifiers can contain spaces after the first character.

Answer Choices:
True
False

Answer: False

 

Question: When you want to create a check box on a form, you use the ________, which is found in the Common Controls section of the Toolbox.

Answer Choices:
CheckBox control
ListBox control
LinkLabel control
RadioButton control

Answer: CheckBox control

 

Question: When typing a statement in code, you can press the Tab key on the keyboard to accept suggestions made by the IntelliSense feature of Visual Studio.

Answer Choices:
True
False

Answer: True

 

Question: The method header is always terminated with a semicolon.

Answer Choices:
True
False

Answer: False

 

Question: When you call a method that has an output parameter, you must also write the keyword out before the argument.

Answer Choices:
True
False

Answer: True

 

Question: Once you have placed a Label control on a form, you set its Text property to the text that you want to display.

Answer Choices:
True
False

Answer: True

 

Question: A form’s fields exist as long as the form exists.

Answer Choices:
True
False

Answer: False

 

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

Answer Choices:
debug mode
break mode
exception mode
validation mode

Answer: break mode

 

Question: Once you create a ListBox control, you add items you wish to display to its ________.

Answer Choices:
Text property
Items property
Values property
Display property

Answer: Items property

 

Question: Nested if statements can be useful for modularizing input validation.

Answer Choices:
True
False

Answer: True

 

Question: Default arguments must be literals or constants.

Answer Choices:
True
False

Answer: True