Computer Visual Basic 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: 1,994 | Questions: 31
Please wait...
Question 1 / 31
0 %
0/100
Score 0/100
1. Which of the following is not a valid data type?

Explanation

Answer: B Page: 97 Objective: 2

Submit
Please wait...
About This Quiz
Computer Visual Basic Quiz - Quiz

Computer Visual Basic is a programming language that provides Graphical User Interface. This computer Visual Basic quiz will test your knowledge of the subject and will also provide... see morevaluable insight into the matter. The quiz contains various facts, trivia, and other relevant questions from the stream to help you master the topic. Knowing computer Visual Basic would greatly help accelerate your career growth. So try this informative quiz. All the best! see less

2. 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
3. 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
4. The data type that is used for decimal fractions is _______.

Explanation

Answer: A Page: 97 Objective: 2

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

Explanation

Answer: C Page: 98 Objective: 3

Submit
6. A _______ variable is declared inside a procedure.

Explanation

Answer: C Page: 104 Objective: 5

Submit
7. Integer.Parse is used to _______.

Explanation

Answer: A Page: 106 Objective: 6

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

Explanation

Answer: C Page: 107 Objective: 6

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

Explanation

Answer: D Page: 98 Objective: 3

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

Explanation

Answer: A Page: 104 Objective: 5

Submit
11. 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
12. 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
13. 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
14. 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
15. 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
16. 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
17. 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
18. Which of the following has the highest order of precedence in arithmetic expressions?

Explanation

Answer: C Page: 109 Objective: 7

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

Explanation

Answer: B Page: 98 Objective: 3

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

Explanation

Answer: A Page: 104 Objective: 5

Submit
21. Declaration statements _______.

Explanation

Answer: C Page: 97 Objective: 1

Submit
22. 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
23. What statement should be used to declare a module-level variable?

Explanation

Answer: C Page: 104 Objective: 5

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

Explanation

Answer: C Page: 112 Objective: 8

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

Explanation

Answer: D Page: 98 Objective: 3

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

Explanation

Answer: B Page: 102 Objective: 4

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

Explanation

Answer: C Page: 99 Objective: 3

Submit
29. Intrinsic constants are _______.

Explanation

Answer: D Page: 101 Objective: 4

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

Explanation

Answer: C Page: 126 Objective: 12

Submit
View My Results

Quiz Review Timeline (Updated): Aug 21, 2023 +

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

  • Current Version
  • Aug 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • May 11, 2011
    Quiz Created by
    Tcarteronw
Cancel
  • All
    All (31)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which of the following is not a valid data type?
What will be the value of answerInteger after execution of the...
When you declare a variable or a named constant, Visual Basic reserves...
The data type that is used for decimal fractions is _______.
Which of the following does not follow the conventions for naming...
A _______ variable is declared inside a procedure.
Integer.Parse is used to _______.
Which of the following is not a valid method for parsing?
Which of the following is not a valid rule for naming identifiers?
Variables declared within a button's click-event are _____...
If a procedure contains a Dim statement and strName is assigned as the...
Which of the following is a valid statement that can be used to...
Which of the following is a valid statement that can be used to...
Where should the statement: Const STR_ACCOUNT_NUMBER As String =...
What will be the value of totalInteger after execution of this...
Using the order of precedence and the formula below, what is...
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?
A variable that is declared in the Declarations section of a form is...
Declaration statements _______.
What will be the value of answerInteger after execution of these...
What statement should be used to declare a module-level variable?
The Visual Basic statement that requires all variables to be declared...
The length of identifiers is limited to _______.
The reserved Visual Basic word, Dim, is short for dimension, which...
In order to control the number of decimals that will appear when a...
Which of the following is not a rule for naming identifiers for...
Intrinsic constants are _______.
If Option Strict is turned off and a declaration statement does not...
MessageBox.Show("Hello","Goodbye") will display...
Alert!

Advertisement