Visual Basic MCQs (Long Quiz)
This is the quiz about basics of Visual Basic Students and new learner's can test their knowledge.
1. The Visual Basic Code Editor will automatically detect certain types of errors as you are entering the code.
Correct Answer
Wrong Answer
2. Keywords are also referred to as reserved words.
Correct Answer
Wrong Answer
3. The divide-and-conquer method of problem-solving breaks a problem into large, general pieces first, then refines each piece until the problem is manageable.
Correct Answer
Wrong Answer
4. Visual Basic responds to events using which of the following?
Correct Answer
Wrong Answer
5. Find when the user clicks a button, _________ is triggered.
Correct Answer
Wrong Answer
6. Find what property of controls tells the order they receive the focus Find when the tab key is pressed during run time?
Correct Answer
Wrong Answer
7. Sizing Handles make it very easy to resize virtually any control Find when developing applications with Visual Basic. Find when working in the Form Designer, how are these sizing handles displayed?
Correct Answer
Wrong Answer
8. The Properties window plays an important role in the development of Visual Basic applications. It is mainly used
Correct Answer
Wrong Answer
9. Which of the properties in a control’s list of properties is used to give the control a meaningful name?
Correct Answer
Wrong Answer
10. Pseudocode is
Correct Answer
Wrong Answer
11. An algorithm is defined as:
Correct Answer
Wrong Answer
12. A variable declared inside an event procedure is said to have local scope
Correct Answer
Wrong Answer
13. A variable declared outside of an event procedure is said to have the class-level scope.
Correct Answer
Wrong Answer
14. Option Explicit requires you to declare every variable before its use.
Correct Answer
Wrong Answer
15. The value returned by InputBox is a string.
Correct Answer
Wrong Answer
16. Find what is the correct statement Find when declaring and assigning the value of 100 to an Integer variable called numPeople
Correct Answer
Wrong Answer
17. Which of the following arithmetic operations has the highest level of precedence?
Correct Answer
Wrong Answer
18. Find what value will be assigned to the numeric variable x Find when the following statement is executed? x = 2 + 3 * 4
Correct Answer
Wrong Answer
19. Which of the following is a valid name for a variable?
Correct Answer
Wrong Answer
20. Keywords in Visual Basic are words that
Correct Answer
Wrong Answer
21. To continue a long statement on another line, use:
Correct Answer
Wrong Answer
22. Find what is the proper syntax Find when using a message dialog box?
Correct Answer
Wrong Answer
23. Find what will be the output of the following statement? txtBox.Text = FormatCurrency(1234.567)
Correct Answer
Wrong Answer
24. The following lines of code are correct. If age >= 13 And < 20 Then txtOutput.Text = “You are a teenager.” End If
Correct Answer
Wrong Answer
25. Given that x = 7, y = 2, and z = 4, the following If block will display “TRUE”. If (x > y) Or (y > z) Then txtBox.Text = “TRUE” End If
Correct Answer
Wrong Answer
26. Asc(“A”) is 65. Find what is Asc(“C”)?
Correct Answer
Wrong Answer
27. Asc(“A”) is 65. Find what is displayed by txtBox.Text = Chr(65) & “BC”?
Correct Answer
Wrong Answer
28. Which of the following expressions has as its value the words “Hello World? surrounded by quotation marks?
Correct Answer
Wrong Answer
29. Which of the following is true?
Correct Answer
Wrong Answer
30. Which of the following is a valid Visual Basic conditional statement?
Correct Answer
Wrong Answer
What's Your Reaction?