VB.Net Practice Exam: Quiz!

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Tcarteronw
T
Tcarteronw
Community Contributor
Quizzes Created: 38 | Total Attempts: 32,383
| Attempts: 2,787 | Questions: 56 | Updated: Mar 22, 2025
Please wait...
Question 1 / 57
🏆 Rank #--
0 %
0/100
Score 0/100

1. The Properties window is used to set the properties for the objects on your form.

Explanation

Page: 12 Objective: 6

Submit
Please wait...
About This Quiz
VB.Net Practice Exam: Quiz! - Quiz

The VB. Net Practice Exam tests understanding of Visual Basic. NET fundamentals, including event-driven programming, UI design, and runtime properties. It's ideal for learners aiming to enhance their coding proficiency and problem-solving skills in VB. Net.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. Visual Basic.NET is an object-oriented programming language.  

Explanation

Page: 3 Objective: 2

Submit

3. After you have added a label to a form you can change the words that are displayed inside the button by changing the Text property.

Explanation

Page: 24 Objective: 8

Submit

4. A .vb file holds the definition of a form, its controls, and code procedures.

Explanation

Page: 7 Objective: 5

Submit

5. With Visual Basic you can write computer programs that run in the Microsoft Windows environment.

Explanation

Page: 2 Objective: 1

Submit

6. Which of the following is not a valid data type?

Explanation

Answer: B Page: 97 Objective: 2

Submit

7. The property used to display information in a TextBox is _______.

Explanation

Page: 63 Objective: 1

Submit

8. The data type that is used for decimal fractions is _______.

Explanation

Answer: A Page: 97 Objective: 2

Submit

9. Writing a program in Visual Basic is so easy that it is not necessary to do any planning.

Explanation

Page: 6 Objective: 4

Submit

10. What will be the value of answerInteger after execution of the following line of code?             Assume that numberAInteger = 6, numberBInteger = 4, numberCInteger = 2             answerInteger = (numberAInteger + numberBInteger) * (numberAInteger / numberCInteger)

Explanation

Answer: B Page: 109 Objective: 7

Submit

11. You are in run time when you design the user interface.

Explanation

Page: 13 Objective: 7

Submit

12. The ______ symbol is used for concatenation.

Explanation

Page: 80 Objective: 8

Submit

13. The .resx file is a text file that defines all resources used by the form including any graphics that are displayed on the form.

Explanation

Page: 7 Objective: 5

Submit

14. As a program runs, the insertion point can be moved from control to control.  In order to reset the focus back in a text box named nameTextBox you should use the code _______.

Explanation

Page: 79 Objective: 4

Submit

15. If the programmer does not write code for a button control, Visual Basic automatically provides code in the Click procedure that will close the form when the user clicks the button.

Explanation

Page: 28 Objective: 8

Submit

16. Which of the following is a valid statement that can be used to declare a local variable that will store whole numbers?

Explanation

Answer: D Page: 102 Objective: 4

Submit

17. If you would like to change the background color on a form, you must change the form's _____________ property.

Explanation

Page: 79 Objective: 6

Submit

18. You can use the Properties window to change the properties of controls during run time.

Explanation

Page: 12 Objective: 7

Submit

19. Which of the following does not follow the conventions for naming identifiers?

Explanation

Answer: C Page: 98 Objective: 3

Submit

20. Integer.Parse is used to _______.

Explanation

Answer: A Page: 106 Objective: 6

Submit

21. Which of the following is not a valid rule for naming identifiers?

Explanation

Answer: D Page: 98 Objective: 3

Submit

22. Which of the following is not an object?

Explanation

Page: 62 Objective: 1

Submit

23. Which of the following is not a valid method for parsing?

Explanation

Answer: C Page: 107 Objective: 6

Submit

24. You write Visual Basic code statements during design time.

Explanation

Page: 13 Objective: 7

Submit

25. A _______ variable is declared inside a procedure.

Explanation

Answer: C Page: 104 Objective: 5

Submit

26. When you declare a variable or a named constant, Visual Basic reserves an area of memory and assigns it a name called a(n) _______.

Explanation

Answer: A Page: 97 Objective: 1

Submit

27. Variables declared within a button's click-event are _____ variables.

Explanation

Answer: A Page: 104 Objective: 5

Submit

28. If a procedure contains a Dim statement and strName is assigned as the identifier, strName can be used _______.

Explanation

Answer: B Page: 104 Objective: 5

Submit

29. If a project runs without a syntax error, you can be certain that the code has performed the project's task correctly.

Explanation

Page: 43 Objective: 9

Submit

30. When creating a project in Visual Basic you should always begin by writing the Basic code.

Explanation

Page: 6 Objective: 4

Submit

31. Using the order of precedence and the formula below, what is answerInteger if:             numberOneInteger=2, numberTwoInteger=12, numberThreeInteger=20, and numberFourInteger=6             answerInteger= numberOneInteger * (numberTwoInteger + numberThreeInteger) - numberFourInteger / numberOneInteger

Explanation

Answer: C Page: 109 Objective: 7

Submit

32. Which of the following is a valid statement that can be used to declare a local variable that will store fractions?

Explanation

Answer: C Page: 102 Objective: 4

Submit

33. Setting the TabIndex of a control to 0 (zero) will _______.

Explanation

Page: 73 Objective: 4

Submit

34. Where should the statement: Dim counterInteger As Integer, appear if you plan to use counterInteger in only one event procedure?

Explanation

Answer: C Page: 103 Objective: 5

Submit

35. Which of the following has the highest order of precedence in arithmetic expressions?

Explanation

Answer: C Page: 109 Objective: 7

Submit

36. The Solution Explorer window is where you design a form that makes up your user interface.

Explanation

Page: 12 Objective: 6

Submit

37. Create keyboard access on an object by ______________ in the Text property.

Explanation

Page: 72 Objective: 4

Submit

38. In Form1.Text, the word Text is referring to a method.

Explanation

Page: 4 Objective: 3

Submit

39. Which of the following is NOT a rule for naming identifiers?

Explanation

Answer: B Page: 98 Objective: 3

Submit

40. What will be the value of answerInteger after execution of these statements?             Const numberAInteger as Integer = 6             Const numberBInteger as Integer = Const numberCInteger as Integer = 2             answerInteger = numberAInteger + numberBInteger * numberCInteger    

Explanation

Answer: B Page: 109 Objective: 7

Submit

41. Declaration statements _______.

Explanation

Answer: C Page: 97 Objective: 1

Submit

42. Which of the following statements will clear the contents of a text box named messageTextBox?

Explanation

Page: 78 Objective: 5

Submit

43. In order to control the number of decimals that will appear when a number is displayed, you can use _______.

Explanation

Answer: D Page: 116 Objective: 10

Submit

44. Where should the statement: Const STR_ACCOUNT_NUMBER As String = "A45", appear if you plan to use STR_ACCOUNT_NUMBER in more than one procedure?

Explanation

Answer: A Page: 104 Objective: 5

Submit

45. If Option Strict is turned off and a declaration statement does not specify a data type, it will default to _______.

Explanation

Answer: C Page: 101 Objective: 4

Submit

46. You can break a long line of code into multiple lines by ________ and then continuing writing code on the next line.

Explanation

Page: 81 Objective: 8

Submit

47. What will be the value of totalInteger after execution of this statement?             Assume that valueInteger = 2.             totalInteger= ((valueInteger + 2) * (valueInteger + 4)) / valueInteger + 1

Explanation

Answer: A Page: 109 Objective: 7

Submit

48. A variable that is declared in the Declarations section of a form is a(n) _______.

Explanation

Answer: A Page: 104 Objective: 5

Submit

49. MessageBox.Show("Hello","Goodbye") will display _______.

Explanation

Answer: C Page: 126 Objective: 12

Submit

50. Intrinsic constants are _______.

Explanation

Answer: D Page: 101 Objective: 4

Submit

51. The length of identifiers is limited to _______.

Explanation

Answer: D Page: 98 Objective: 3

Submit

52. What statement should be used to declare a module-level variable?

Explanation

Answer: C Page: 104 Objective: 5

Submit

53. The reserved Visual Basic word, Dim, is short for dimension, which means _______.

Explanation

Answer: B Page: 102 Objective: 4

Submit

54. The Visual Basic statement that requires all variables to be declared is _______.

Explanation

Answer: C Page: 112 Objective: 8

Submit

55. Which of the following is not a rule for naming identifiers for constants?

Explanation

Answer: C Page: 99 Objective: 3

Submit

56. You can vertically align a group of controls on your form by first selecting all of the controls to be aligned, and then _______.

Explanation

Page: 70 Objective: 3

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (56)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
The Properties window is used to set the properties for the objects on...
Visual Basic.NET is an object-oriented programming language. ...
After you have added a label to a form you can change the words that...
A .vb file holds the definition of a form, its controls, and code...
With Visual Basic you can write computer programs that run in the...
Which of the following is not a valid data type?
The property used to display information in a TextBox is _______.
The data type that is used for decimal fractions is _______.
Writing a program in Visual Basic is so easy that it is not necessary...
What will be the value of answerInteger after execution of the...
You are in run time when you design the user interface.
The ______ symbol is used for concatenation.
The .resx file is a text file that defines all resources used by the...
As a program runs, the insertion point can be moved from control to...
If the programmer does not write code for a button control, Visual...
Which of the following is a valid statement that can be used to...
If you would like to change the background color on a form, you must...
You can use the Properties window to change the properties of controls...
Which of the following does not follow the conventions for naming...
Integer.Parse is used to _______.
Which of the following is not a valid rule for naming identifiers?
Which of the following is not an object?
Which of the following is not a valid method for parsing?
You write Visual Basic code statements during design time.
A _______ variable is declared inside a procedure.
When you declare a variable or a named constant, Visual Basic reserves...
Variables declared within a button's click-event are _____...
If a procedure contains a Dim statement and strName is assigned as the...
If a project runs without a syntax error, you can be certain that the...
When creating a project in Visual Basic you should always begin by...
Using the order of precedence and the formula below, what is...
Which of the following is a valid statement that can be used to...
Setting the TabIndex of a control to 0 (zero) will _______.
Where should the statement: Dim counterInteger As Integer, appear if...
Which of the following has the highest order of precedence in...
The Solution Explorer window is where you design a form that makes up...
Create keyboard access on an object by ______________ in the Text...
In Form1.Text, the word Text is referring to a method.
Which of the following is NOT a rule for naming identifiers?
What will be the value of answerInteger after execution of these...
Declaration statements _______.
Which of the following statements will clear the contents of a text...
In order to control the number of decimals that will appear when a...
Where should the statement: Const STR_ACCOUNT_NUMBER As String =...
If Option Strict is turned off and a declaration statement does not...
You can break a long line of code into multiple lines by ________ and...
What will be the value of totalInteger after execution of this...
A variable that is declared in the Declarations section of a form is...
MessageBox.Show("Hello","Goodbye") will display...
Intrinsic constants are _______.
The length of identifiers is limited to _______.
What statement should be used to declare a module-level variable?
The reserved Visual Basic word, Dim, is short for dimension, which...
The Visual Basic statement that requires all variables to be declared...
Which of the following is not a rule for naming identifiers for...
You can vertically align a group of controls on your form by first...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!