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.

10 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which is not an integer data type?

  1. Single
  2. Byte
  3. Short
  4. Integer
  5. Long
Question 2 Multiple Choice (Single Answer)

Which is a numeric data type?

  1. Floating point
  2. Integer
  3. Boolean
  4. Both a and b.
  5. All of the above.
Question 3 Multiple Choice (Single Answer)

Which sequence of char data types is listed from lowest to highest?

  1. a, A, z, Z
  2. a, z, A, Z
  3. A, a, Z, z
  4. A, Z, a, z
  5. z, a, Z, A
Question 4 Multiple Choice (Single Answer)

The Date data type does not hold which type of information.

  1. Seconds
  2. Hours
  3. Days
  4. Months
  5. Quarters
Question 5 Multiple Choice (Single Answer)

The Boolean data type:

  1. is unsigned.
  2. has two states.
  3. is displayed by the program as yes or no.
  4. Both a and b.
  5. All of the above.
Question 6 Multiple Choice (Single Answer)

Which is a valid statement for declaring a variable?

  1. Const Form As Integer
  2. Const myForm As Integer
  3. Dim Form As Integer
  4. Dim myForm As Integer
  5. All of the above.
Question 7 Multiple Choice (Single Answer)

VB.Net identifiers:

  1. are case sensitive.
  2. can begin with an underscore.
  3. can begin with a number.
  4. Both a and b.
  5. All of the above.
Question 8 Multiple Choice (Single Answer)

The name of a constant:

  1. must both begin with a letter and be all upper case.
  2. does not have to begin with a letter but must be all upper case.
  3. must begin with a letter but can be upper or lower case.
  4. does not have to begin with a letter and be either upper or lower case.
  5. None of the above.
Question 9 Multiple Choice (Single Answer)

The proper operator precedence, from first to last, is:

  1. logical, comparison, and arithmetic.
  2. arithmetic, comparison, and logical.
  3. arithmetic, logical, and comparison.
  4. comparison, arithmetic, and logical.
  5. logical, arithmetic, comparison.
Question 10 Multiple Choice (Single Answer)

With A = False and B = True, which statement evaluates as True?

  1. A AND A
  2. A AND B
  3. B AND A
  4. B AND B
  5. None are true.