Explore topic-wise MCQs in Visual Basic.

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.

The __________ argument contains the message to display inside the dialog box.

A. defaultResponse
B. prompt
C. title
D. message
Answer» C. title
2.

The value returned by the Inputbox depends on the __________ the user chooses.

A. Button
B. Message
C. Property
D. Return type
Answer» B. Message
3.

The InputBox functions prompt argument should be entered using __________

A. Book title capitalization
B. Sentence capitalization
C. Text capitalization
D. Post capitalization
Answer» C. Text capitalization
4.

__________ is an underscore that is immediately preceded by a space and is located at the end of the physical line of code.

A. Underscore
B. Hyphen
C. Line continuation character
D. Line termination character
Answer» D. Line termination character
5.

__________ displays an input dialog box containing a message, Ok and Cancel button and an input area.

A. Inputbox function
B. Inbox function
C. Dialogbox function
D. In function
Answer» B. Inbox function
6.

__________ in the syntax gives the format you want to use.

A. formatString
B. format
C. numericVariableName
D. toString
Answer» B. format
7.

The toString method formats the number stored in the numeric value and then returns the result as a __________

A. Integer
B. Double
C. Character
D. String
Answer» E.
8.

__________ function is used to format numbers.

A. toString
B. toNumber
C. toFormat
D. toSpecify
Answer» B. toNumber
9.

Specifying the number of decimal places and special characters to display in a number is called as __________

A. Including
B. Formatting
C. Emphasizing
D. Promoting
Answer» C. Emphasizing
10.

The __________ is used to concat to Strings.

A. Concatenation operator
B. + symbol
C. Concat function
D. Cat function
Answer» B. + symbol