VB.NET Data Types and Basics
A quiz covering fundamental VB.NET data types (numeric, character, boolean, date), variable declarations with Dim and Const, identifier naming rules, and basic operator precedence and boolean logic.
Questions
Question 1 Multiple Choice (Single Answer)
Which is not an integer data type?
- Single
- Byte
- Short
- Integer
- Long
Question 2 Multiple Choice (Single Answer)
Which is a numeric data type?
- Floating point
- Integer
- Boolean
- Both a and b.
- All of the above.
Question 3 Multiple Choice (Single Answer)
Which sequence of char data types is listed from lowest to highest?
- a, A, z, Z
- a, z, A, Z
- A, a, Z, z
- A, Z, a, z
- z, a, Z, A
Question 4 Multiple Choice (Single Answer)
The Date data type does not hold which type of information.
- Seconds
- Hours
- Days
- Months
- Quarters
Question 5 Multiple Choice (Single Answer)
The Boolean data type:
- is unsigned.
- has two states.
- is displayed by the program as yes or no.
- Both a and b.
- All of the above.
Question 6 Multiple Choice (Single Answer)
Which is a valid statement for declaring a variable?
- Const Form As Integer
- Const myForm As Integer
- Dim Form As Integer
- Dim myForm As Integer
- All of the above.
Question 7 Multiple Choice (Single Answer)
VB.Net identifiers:
- are case sensitive.
- can begin with an underscore.
- can begin with a number.
- Both a and b.
- All of the above.
Question 8 Multiple Choice (Single Answer)
The name of a constant:
- must both begin with a letter and be all upper case.
- does not have to begin with a letter but must be all upper case.
- must begin with a letter but can be upper or lower case.
- does not have to begin with a letter and be either upper or lower case.
- None of the above.
Question 9 Multiple Choice (Single Answer)
The proper operator precedence, from first to last, is:
- logical, comparison, and arithmetic.
- arithmetic, comparison, and logical.
- arithmetic, logical, and comparison.
- comparison, arithmetic, and logical.
- logical, arithmetic, comparison.
Question 10 Multiple Choice (Single Answer)
With A = False and B = True, which statement evaluates as True?
- A AND A
- A AND B
- B AND A
- B AND B
- None are true.