Visual Basic .NET Programming Fundamentals

Test your knowledge of core Visual Basic .NET programming concepts including operators, functions, type conversion, form controls, and conditional statements.

10 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which operator is evaluated first?

  1. NOT
  2. AND
  3. XOR
  4. OR
  5. They are always evaluated left-to-right.
Question 2 Multiple Choice (Single Answer)

The right side of an assignment statement will hold:

  1. a variable.
  2. an object property.
  3. an expression.
  4. Both a and b.
  5. All of the above.
Question 3 Multiple Choice (Single Answer)

Which function will return the monthly payments of a loan?

  1. Pay (Rate, PV, Nper)
  2. Pmt (Rate, Nper, PV)
  3. FV (Rate, Nper, Pmt)
  4. FV (Rate, Nper, PV)
  5. None of the above.
Question 4 Multiple Choice (Single Answer)

Which function returns the numbers represented in the string "$56.7"?

  1. Abs
  2. CDbl
  3. Int
  4. Val
Question 5 Multiple Choice (Single Answer)

What will the function Val ($165.30) return?

  1. 165
  2. 165.3
  3. $165.30
  4. An error
Question 6 Multiple Choice (Single Answer)

Which function displays a pop-up window?

  1. MsgBox
  2. InputBox
  3. TextBox
  4. Both a and b.
  5. All of the above.
Question 7 Multiple Choice (Single Answer)

Which is true about the prompt argument?

  1. It can be made of multiple values concatenated into one string.
  2. It can include the vbCrLf constant.
  3. It can include the ampersand symbol to concatenate strings.
  4. Both a and b.
  5. All of the above.
Question 8 Multiple Choice (Single Answer)

In order to process a number typed in a TextBox the programmer must:

  1. use the Val function to convert the Text value.
  2. use the CDbl function to convert the Text value.
  3. use the IsNumeric function to convert the Text value.
  4. Both a and b.
  5. All of the above.
Question 9 Multiple Choice (Single Answer)

Which statements are optional in an If...Then statement?

  1. If
  2. Then
  3. Else
  4. Both a and b.
  5. All of the above.
Question 10 Multiple Choice (Single Answer)

How many RadioButtons in a Group Box can be selected at the same time?

  1. 1
  2. 2
  3. 3
  4. 4