

MCQOPTIONS
Saved Bookmarks
This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Visual Basic knowledge and support exam preparation. Choose a topic below to get started.
1. |
Two procedures can have procedure-level variable whose names are same. |
A. | True |
B. | False |
Answer» B. False | |
2. |
A procedure-level variable is declared using ____________ keyword. |
A. | Private |
B. | Public |
C. | Dim |
D. | Static |
Answer» D. Static | |
3. |
A class-level variable is declared using ______________ keyword. |
A. | Private |
B. | Public |
C. | Dim |
D. | Static |
Answer» B. Public | |
4. |
Lifetime of a class-level variable is till ________________ |
A. | A procedure ends |
B. | An application ends |
C. | A block ends |
D. | Within the control section |
Answer» C. A block ends | |
5. |
When you declare a variable in the form s declaration section, it is called as ______________ |
A. | Class-level variable |
B. | Object variable |
C. | Procedure-level variable |
D. | Auto variable |
Answer» B. Object variable | |
6. |
Variables declared in a block have _____________ scope. |
A. | Class |
B. | Procedure |
C. | Block |
D. | Object |
Answer» D. Object | |
7. |
Variable declared in a procedure have ______________ scope. |
A. | Class |
B. | Procedure |
C. | Block |
D. | Object |
Answer» C. Block | |
8. |
Variables declared in a form s declaration section have _____________ scope. |
A. | Class |
B. | Procedure |
C. | Block |
D. | Object |
Answer» B. Procedure | |
9. |
A variable s _______________ indicates how long the variable stays in the computer s internal memory. |
A. | Scope |
B. | Lifetime |
C. | Place |
D. | Position |
Answer» C. Place | |
10. |
A variable s ____________ indicates where the variable can be used in an application code. |
A. | Scope |
B. | Lifetime |
C. | Place |
D. | Position |
Answer» B. Lifetime | |