Quiz 3 Flashcards
The following statement is valid:
Dim x As Double = 3,542.36
False
If strVar.Length is 5, then the value of
strVar.Substring (4,1)
is the last character of the value of strVar
True
Visual Basic always displays numbers in decimal format
True
The exponential notation used in Visual Basic is exactly the same as standard mathematical notation
False
When declaring a variable type String, you must specify a length for the string
False
When declaring a variable that will refer to a submarine, a good name for the variable is sub
False
The function Math.Int will always round mixed numbers down to the next lowest integer
True
When using the equal sign to assign values, the variable on the left hand side of the equal sign will always receive the value
True
The variable firstName and firstNAME are identical
True
The following statement assigns 6 times the value of y to x:
x = 6y
False
The following statement is valid:
y = y + 72
True
A numeric variable that has not been assigned a value has the default value zero
True
The statement a + b = c assigns to c the sum of the values of a and b
False
The lstBox.Items.Clear() statement is used to empty the contents of a list box
True
An assignment statement is used to assign a value to a variable or property
True
You can use a variable name in almost any place you could use a literal value
True
Numeric variables can be initialized to zero or any other number, but once they are initialized, they cannot be changed
False
The following two statements are equivalent:
var1 = var2
var2 = var1
False
The value of (11mod2) is 1
True
The value of (11\2) is 1
False