MCQOPTIONS
Saved Bookmarks
This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Basic C knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
_________________ argument in the Substring syntax specifies number of characters you want to access. |
| A. | numCharToAccess |
| B. | CharAccess |
| C. | numAccess |
| D. | ToAccess |
| Answer» B. CharAccess | |
| 2. |
________________ method is used for accessing any number of characters in a String. |
| A. | Substring |
| B. | Contains |
| C. | IndexOf |
| D. | CharAt |
| Answer» B. Contains | |
| 3. |
What output will be returned if the following Visual Basic code is executed? |
| A. | True |
| B. | False |
| C. | 11 |
| D. | 12View Answer |
| Answer» B. False | |
| 4. |
The Indexof method returns ________________ value. |
| A. | Integer |
| B. | Boolean |
| C. | Void |
| D. | String |
| Answer» B. Boolean | |
| 5. |
The Contains Method returns ______________ value. |
| A. | Integer |
| B. | Void |
| C. | Boolean |
| D. | String |
| Answer» D. String | |
| 6. |
The ______________ argument in syntax of Contains method represents the sequence of arguments you are searching. |
| A. | subString |
| B. | SearchString |
| C. | String |
| D. | Seq |
| Answer» B. SearchString | |
| 7. |
To determine whether a string has specific sequence of characters, use _________________ |
| A. | Contains method |
| B. | Specific method |
| C. | Sequence method |
| D. | Check method |
| Answer» B. Specific method | |