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 Choices:
True
False
Answer: True
Question: In C#, a variable must be assigned a value before it can be used.
Answer Choices:
True
False
Answer: True
Question: Any operation that can be performed on a string can be performed on a control’s Text property.
Answer Choices:
True
False
Answer: False
Question: In C#, all variables have a(n) _______ method that you can call to convert the variable’s value to a string.
Answer Choices:
cast
ToString
format
parse
Answer: ToString
Question: Fundamental types of data, such as strings, integers, and real numbers are known as __________.
Answer Choices:
fundamental data types
primitive data types
natural data types
basic data types
Answer: primitive data types
Question: The _______ is commonly used in financial applications because it can store real numbers with a great deal of precision.
Answer Choices:
decimal
int
double
string
Answer: decimal
Question: After a variable has been declared, you can use the = operator to store a value in the variable.
Answer Choices:
True
False
Answer: True
Question: You can assign int values to int, double, and decimal variables.
Answer Choices:
True
False
Answer: True
Question: A string can be converted to a decimal with the _______ method.
Answer Choices:
TryParseDecimal
decimal.TryParse
decimal.ToString
decimal.ParseString
Answer: decimal.TryParse
Question: A variable of the int data type can hold numbers with a fractional part, such as 22.1 or -4.9.
Answer Choices:
True
False
Answer: False
Question: You can use a cast operator to convert a string to a numeric type.
Answer Choices:
True
False
Answer: False
Question: A variable is visible only to statements outside the variable scope.
Answer Choices:
True
False
Answer: False
Question: A variable is visible only to statements outside the variable scope.
Answer Choices:
True
False
Answer: False
Question: You can declare multiple variables of different data types with one declaration statement.
Answer Choices:
True
False
Answer: False
Question: The IP address 10000011 11110101 10110101 11001111 is written in dotted decimal notation as:
Answer Choices:
193.234.186.206
193.224.176.205
137.237.166.195
137.247.170.193
Answer: 193.245.181.207