Explore topic-wise MCQs in Visual Basic.

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

The code contained in the ______ allows an application to retrieve the contents of the Private variable associated with the property.

A. Set Block
B. Retrieve
C. Get Block
D. Getter Block
Answer» D. Getter Block
2.

The ________ keyword indicates that an application can set the property s value, but it cannot retrieve the value.

A. Receive
B. Write
C. WriteOnly
D. ReceiveOnly
Answer» D. ReceiveOnly
3.

The ________ keyword indicates that the property s value can be retrieved (read) by an application.

A. Access
B. Get
C. Read
D. ReadOnly
Answer» E.
4.

You create a Public property using a _______ procedure.

A. SetProp
B. Property
C. Access
D. SetAccess
Answer» C. Access
5.

_______ variables of a class are not visible to applications that use the instance of that class.

A. Public
B. Private
C. Default
D. Static
Answer» C. Default
6.

It is disadvantageous to use public variables in classes because ___________

A. Its values cannot be initialized
B. It results in compilation error
C. It cannot be accessed by other variables
D. It cannot control its values
Answer» E.
7.

_______ can be used instead of a Structure statement.

A. Class
B. Struct
C. StructDef
D. Sdef
Answer» B. Struct