MCQOPTIONS
Saved Bookmarks
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. |
Which is used to check one among both the conditions in a given if statement? |
| A. | OrElse |
| B. | AndAlso |
| C. | NOT |
| D. | OR |
| Answer» B. AndAlso | |
| 2. |
Which is used to check both the conditions in a given if statement? |
| A. | OrElse |
| B. | AndAlso |
| C. | NOT |
| D. | OR |
| Answer» C. NOT | |
| 3. |
If the txtPrice control contains the value 75, what value will the Decimal.TryParse (txtPrice.Text,decPrice) method return? |
| A. | False |
| B. | True |
| C. | 75 |
| D. | 75.00 |
| Answer» E. | |
| 4. |
If the txtPrice control contains the value 75, what value will the variable=Decimal.TryParse (txtPrice.Text,decPrice) method return? |
| A. | False |
| B. | True |
| C. | 75 |
| D. | 75.00 |
| Answer» C. 75 | |
| 5. |
The __________ operator reverses the value of the condition. |
| A. | AND |
| B. | OR |
| C. | NOT |
| D. | NAND |
| Answer» D. NAND | |
| 6. |
__________ is used to converting a string to uppercase. |
| A. | toUpper |
| B. | toLower |
| C. | toUpperCase |
| D. | toLowerCase |
| Answer» B. toLower | |
| 7. |
String comparison in Visual basic is case-sensitive. |
| A. | True |
| B. | False |
| Answer» B. False | |