Site MapHelpFeedbackMultiple Choice Quiz
Multiple Choice Quiz
(See related pages)

1
When you declare a variable or a named constant, Visual Basic reserves an area of memory and assigns it a name called a(n) _______.
A)Identifier
B)Identity
C)Declaration
D)Dimension
2
Declaration statements _______.
A)Can only be written inside a procedure
B)Are only allowed in the Declarations section of a form
C)Give variables and constants names, and specify the type of data they will hold
D)Are not needed for constants
3
Which of the following is NOT a valid Visual Basic data type?
A)Integer
B)Real
C)Decimal
D)String
4
The data type that is used for decimal fractions is _______.
A)Decimal
B)Short
C)Integer
D)Fraction
5
Which of the following is NOT a valid rule for naming identifiers?
A)Names may contain underscores
B)Names may contain letters
C)Names may contain digits
D)Names may contain spaces
6
Which of the following is NOT a rule for naming identifiers?
A)Identifiers for constants should use an underscore between words
B)Identifiers should use periods to separate words
C)Identifiers should list the data type at the end of the name
D)Identifiers cannot contain embedded blanks
7
The length of identifiers is limited to _______.
A)1 to 8 characters
B)1 to 256 characters
C)1 to 4,000 characters
D)1 to 16,383 characters
8
Which of the following does not follow the conventions for naming identifiers?
A)UnitsEnrolledDecimal
B)ZipCodeString
C)Amount.Due.Decimal
D)COUNTRY_OF_BIRTH_String
9
Intrinsic constants are _______.
A)Declared using the keyword Const
B)Declared using the keyword Dim
C)Placed in the Declarations section of a form
D)Built into Visual Studio
10
Which of the following is NOT a rule for naming identifiers for constants?
A)Include the data type at the end of the identifier
B)Everything in the identifier's name should be capitalized except the data type
C)Identifiers for constants should begin with a prefix of Const
D)Identifiers for constants should use an underscore between words







Bradley:Programming in VB 2008Online Learning Center

Home > Chapter 3 > Multiple Choice Quiz