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.

To covert a number from one data type to another, you use the __________

A. Convert class
B. Parser
C. Literal constant
D. Object
Answer» B. Parser
2.

If the tryparse method determines that the string cannot be converted to the data type, it assigns __________ to the variable.

A. -1
B. 1
C. 0
D. 2
Answer» D. 2
3.

The __________ method converts a string to a number.

A. Tryparse
B. Parse
C. Convert
D. Extern
Answer» B. Parse
4.

A variable can store __________ value at a time.

A. Only one
B. More than one
C. Only two
D. More than two
Answer» B. More than one
5.

A __________ forces a literal constant to assume a data type other than the one its form indicates.

A. Literal type constant
B. Literal type variable
C. Any literal
D. Keyword
Answer» B. Literal type variable
6.

While entering a numeric literal constant you need not enter a __________

A. Number
B. Special character
C. Character
D. Double variable
Answer» C. Character
7.

The string literal are enclosed in __________

A. Quotation mark
B. Question mark
C. Exclamation mark
D. Dollar mark
Answer» B. Question mark
8.

The data type of the value assigned should be same as __________

A. Any constant defined in the application
B. The variable itself
C. Can be anything
D. Any extern defined in the application
Answer» C. Can be anything
9.

A __________ is an item of data whose values do not change while the application is running.

A. Literal constant
B. Variable
C. Auto variable
D. Extern variable
Answer» B. Variable
10.

An __________ statement is used to assign a value to an existing variable.

A. Arithmetic
B. Relational
C. Logical
D. Assignment
Answer» E.