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.
Questions
Question 1 Multiple Choice (Single Answer)
Which operator is evaluated first?
- NOT
- AND
- XOR
- OR
- They are always evaluated left-to-right.
Question 2 Multiple Choice (Single Answer)
The right side of an assignment statement will hold:
- a variable.
- an object property.
- an expression.
- Both a and b.
- All of the above.
Question 3 Multiple Choice (Single Answer)
Which function will return the monthly payments of a loan?
- Pay (Rate, PV, Nper)
- Pmt (Rate, Nper, PV)
- FV (Rate, Nper, Pmt)
- FV (Rate, Nper, PV)
- None of the above.
Question 4 Multiple Choice (Single Answer)
Which function returns the numbers represented in the string "$56.7"?
- Abs
- CDbl
- Int
- Val
Question 5 Multiple Choice (Single Answer)
What will the function Val ($165.30) return?
- 165
- 165.3
- $165.30
- An error
Question 6 Multiple Choice (Single Answer)
Which function displays a pop-up window?
- MsgBox
- InputBox
- TextBox
- Both a and b.
- All of the above.
Question 7 Multiple Choice (Single Answer)
Which is true about the prompt argument?
- It can be made of multiple values concatenated into one string.
- It can include the vbCrLf constant.
- It can include the ampersand symbol to concatenate strings.
- Both a and b.
- All of the above.
Question 8 Multiple Choice (Single Answer)
In order to process a number typed in a TextBox the programmer must:
- use the Val function to convert the Text value.
- use the CDbl function to convert the Text value.
- use the IsNumeric function to convert the Text value.
- Both a and b.
- All of the above.
Question 9 Multiple Choice (Single Answer)
Which statements are optional in an If...Then statement?
- If
- Then
- Else
- Both a and b.
- 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
- 2
- 3
- 4