Explore topic-wise MCQs in Visual Basic.

This section includes 9 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.

A constructor is a _____________

A. A function procedure
B. A sub procedure
C. Either a function procedure or a sub procedure
D. A property procedure
Answer» D. A property procedure
2.

The name of the class file ends with _____________

A. .cla
B. .class
C. .cla
D. .vb
Answer» C. .cla
3.

The class statement groups _______________ item in one unit.

A. Related
B. Different
C. Same access specifier items
D. Different access specifier items
Answer» B. Different
4.

The computer creates the object when it processes the statement containing ____________ keyword.

A. Class
B. Object
C. New
D. Private
Answer» D. Private
5.

After defining a class you can instantiate one or more ______________

A. Objects
B. Classes
C. Attributes
D. Methods
Answer» B. Classes
6.

The behavior are represented by ______________

A. Methods
B. Attributes
C. Values
D. Numbers
Answer» B. Attributes
7.

Objects are represented by _____________ variables and ______________ properties.

A. Private, Public
B. Public, Private
C. Protected, Public
D. Protected, Private
Answer» B. Public, Private
8.

The convention is to use ________________ case for classname.

A. Upper
B. Lower
C. Pascal
D. Mixed
Answer» D. Mixed
9.

Class is defined using ______________

A. Class statement
B. Object statement
C. Access specifier statement
D. Instance statement
Answer» B. Object statement