Question: A variable’s _______ indicates the type of data that the variable will hold.
Answer Choices:
name
location in memory
assignment value
data type
Answer: data type
Question: Which one of the following statements assigns the value contained in the Text property of a TextBox control named ageTextBox to the Text Property of a Label control named ageLabel?
Answer Choices:
ageLabel = ageTextBox;
ageTextBox.Text = ageLabel.Text;
ageLabel.Text = ageTextBox.Text;
ageTextBox = ageLabel;
Answer: ageLabel.Text = ageTextBox.Text;
Question: IP provides:
Answer Choices:
Error-free delivery
Priority delivery
Guaranteed delivery
Best effort delivery
Answer: Best effort delivery
Question: Mathematical expressions are evaluated from left to right.
Answer Choices:
True
False
Answer: False
Question: One way to make sure that a variable has been assigned a value is to __________ the variable with a value when you declare it.
Answer Choices:
declare
instantiate
concatenate
compare
Answer: instantiate
Question: The current version of IP is:
Answer Choices:
8
4
9
16
Answer: 4
Question: In code, if you want to retrieve the data that has been typed into a TextBox, you simply retrieve the contents of the control’s __________ property.
Answer Choices:
Output
String
Text
Data
Answer: Text
Question: When you store a value in a variable, that value replaces the previous value that was in the variable.
Answer Choices:
True
False
Answer: True
Question: If you need to store numbers and perform mathematical operations on them, you have to use a numeric data type.
Answer Choices:
True
False
Answer: True
Question: When the user types into a TextBox control, the text is stored in the control’s _______ property.
Answer Choices:
Value
Input
String
Text
Answer: Text
Question: A _______ is a variable that is declared inside a class but not inside of any method.
Answer Choices:
property
named constant
field
namespace
Answer: field
Question: You cannot declare two variables with the same __________ in the same scope.
Answer Choices:
lifetime
data type
name
value
Answer: name