Question: The purpose of a variable declaration statement is to tell the compiler that you plan to use a variable of a specified name to store a particular type of data in the program.

Answer Options:

True
False

Answer: True

 

Question: A variable of the int data type can hold numbers with a fractional part, such as 22.1 or -4.9.

Answer Options:

True
False

Answer: False

 

Question: You can declare multiple variables of different data types with one declaration statement.

Answer Options:

True
False

Answer: False

 

Question: You can assign int values to int, double, and decimal variables.

Answer Options:

True
False

Answer: False

 

Question: A variable is visible only to statements outside the variable scope.

Answer Options:

True
False

Answer: False

 

Question: Any data that the user enters into a TextBox control is stored in the control’s Text property as a string, even if it is a number.

Answer Options:

True
False

Answer: True

 

Question: Programs use data types to store data in memory.

Answer Options:

True
False

Answer: True

 

Question: The C# language provides many data types for storing fundamental types of data, such as strings, integers, and real numbers.

Answer Options:

True
False

Answer: True

 

Question: After a variable has been declared, you can use the = operator to store a value in the variable.

Answer Options:

True
False

Answer: True

 

Question: The Parse methods work even if the string that is being converted contains an invalid numeric value.

Answer Options:

True
False

Answer: False

 

Question: When you store a value in a variable, that value replaces the previous value that was in the variable.

Answer Options:

True
False

Answer: True

 

Question: When you perform a math operation on two operands of the same data type, the result will always be of that data type.

Answer Options:

True
False

Answer: True

 

Question: Mathematical expressions are evaluated from left to right.

Answer Options:

True
False

Answer: False

 

Question: Any operation that can be performed on a string can be performed on a control’s Text property.

Answer Options:

True
False

Answer: False

 

Question: A variable declaration specifies three things about the variable: the variable’s data type, the variable’s name, and the variable’s location in memory.

Answer Options:

True
False

Answer: False

 

Question: The C# compiler will compile code that tries to use an unassigned variable.

Answer Options:

True
False

Answer: False

 

Question: You can use a cast operator to convert a string to a numeric type.

Answer Options:

True
False

Answer: False

 

Question: Each numeric format string can optionally be followed by an integer that indicates how many digits to display after the decimal point.

Answer Options:

True
False

Answer: True