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,005
| Attempts: 2,751 | Questions: 56
Please wait...
Question 1 / 56
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... see morecoding proficiency and problem-solving skills in VB. Net. see less

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. Writing a program in Visual Basic is so easy that it is not necessary to do any planning.

Explanation

Page: 6 Objective: 4

Submit
9. The data type that is used for decimal fractions is _______.

Explanation

Answer: A Page: 97 Objective: 2

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

Explanation

Page: 13 Objective: 7

Submit
11. The ______ symbol is used for concatenation.

Explanation

Page: 80 Objective: 8

Submit
12. 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
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. You can use the Properties window to change the properties of controls during run time.

Explanation

Page: 12 Objective: 7

Submit
18. 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
19. Which of the following is not a valid rule for naming identifiers?

Explanation

Answer: D Page: 98 Objective: 3

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

Explanation

Answer: C Page: 98 Objective: 3

Submit
21. Integer.Parse is used to _______.

Explanation

Answer: A Page: 106 Objective: 6

Submit
22. Which of the following is not an object?

Explanation

Page: 62 Objective: 1

Submit
23. 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
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. 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
27. Which of the following is not a valid method for parsing?

Explanation

Answer: C Page: 107 Objective: 6

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

Explanation

Answer: A 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. The Solution Explorer window is where you design a form that makes up your user interface.

Explanation

Page: 12 Objective: 6

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

Explanation

Page: 4 Objective: 3

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

Explanation

Page: 73 Objective: 4

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

Explanation

Page: 72 Objective: 4

Submit
36. 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
37. 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
38. Which of the following has the highest order of precedence in arithmetic expressions?

Explanation

Answer: C Page: 109 Objective: 7

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. Which of the following statements will clear the contents of a text box named messageTextBox?

Explanation

Page: 78 Objective: 5

Submit
42. Declaration statements _______.

Explanation

Answer: C Page: 97 Objective: 1

Submit
43. 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
44. 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
45. 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
46. 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
47. A variable that is declared in the Declarations section of a form is a(n) _______.

Explanation

Answer: A Page: 104 Objective: 5

Submit
48. 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
49. MessageBox.Show("Hello","Goodbye") will display _______.

Explanation

Answer: C Page: 126 Objective: 12

Submit
50. The length of identifiers is limited to _______.

Explanation

Answer: D Page: 98 Objective: 3

Submit
51. Intrinsic constants are _______.

Explanation

Answer: D Page: 101 Objective: 4

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. Which of the following is not a rule for naming identifiers for constants?

Explanation

Answer: C Page: 99 Objective: 3

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

Explanation

Answer: C Page: 112 Objective: 8

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
View My Results

Quiz Review Timeline (Updated): Mar 22, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • May 11, 2011
    Quiz Created by
    Tcarteronw
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 _______.
Writing a program in Visual Basic is so easy that it is not necessary...
The data type that is used for decimal fractions is _______.
You are in run time when you design the user interface.
The ______ symbol is used for concatenation.
What will be the value of answerInteger after execution of the...
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...
You can use the Properties window to change the properties of controls...
If you would like to change the background color on a form, you must...
Which of the following is not a valid rule for naming identifiers?
Which of the following does not follow the conventions for naming...
Integer.Parse is used to _______.
Which of the following is not an object?
When you declare a variable or a named constant, Visual Basic reserves...
You write Visual Basic code statements during design time.
A _______ variable is declared inside a procedure.
If a procedure contains a Dim statement and strName is assigned as the...
Which of the following is not a valid method for parsing?
Variables declared within a button's click-event are _____...
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...
The Solution Explorer window is where you design a form that makes up...
In Form1.Text, the word Text is referring to a method.
Setting the TabIndex of a control to 0 (zero) will _______.
Create keyboard access on an object by ______________ in the Text...
Which of the following is a valid statement that can be used to...
Where should the statement: Dim counterInteger As Integer, appear if...
Which of the following has the highest order of precedence in...
Which of the following is NOT a rule for naming identifiers?
What will be the value of answerInteger after execution of these...
Which of the following statements will clear the contents of a text...
Declaration statements _______.
Where should the statement: Const STR_ACCOUNT_NUMBER As String =...
In order to control the number of decimals that will appear when a...
You can break a long line of code into multiple lines by ________ and...
If Option Strict is turned off and a declaration statement does not...
A variable that is declared in the Declarations section of a form is...
What will be the value of totalInteger after execution of this...
MessageBox.Show("Hello","Goodbye") will display...
The length of identifiers is limited to _______.
Intrinsic constants are _______.
What statement should be used to declare a module-level variable?
The reserved Visual Basic word, Dim, is short for dimension, which...
Which of the following is not a rule for naming identifiers for...
The Visual Basic statement that requires all variables to be declared...
You can vertically align a group of controls on your form by first...
Alert!

Advertisement