MCQOPTIONS
Saved Bookmarks
This section includes 9 Mcqs, each offering curated multiple-choice questions to sharpen your Arduino knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is the return type of the substr() function? |
| A. | int |
| B. | long |
| C. | byte |
| D. | string |
| Answer» E. | |
| 2. |
Which of these functions are used to partially or fully substitute a string? |
| A. | replace() |
| B. | size() |
| C. | subs() |
| D. | substring() |
| Answer» B. size() | |
| 3. |
How many arguments does the at() function take? |
| A. | 0 |
| B. | 1 |
| C. | 2 |
| D. | 3 |
| Answer» C. 2 | |
| 4. |
How many arguments does the back() function take? |
| A. | 0 |
| B. | 1 |
| C. | 2 |
| D. | 3 |
| Answer» B. 1 | |
| 5. |
What is the return type of the front() function? |
| A. | char |
| B. | int |
| C. | long |
| D. | short |
| Answer» B. int | |
| 6. |
Which of the following escape sequences placed at the end of a string makes the string a Null Terminated String? |
| A. | p |
| B. | u |
| C. | 0 |
| D. | 1 |
| Answer» D. 1 | |
| 7. |
What is the function of the strcmp() function? |
| A. | To compare two strings |
| B. | To compile two strings |
| C. | To concatenate two strings |
| D. | To converge two strings |
| Answer» B. To compile two strings | |
| 8. |
What is the minimum number of arguments that the strcpy() function accept? |
| A. | 4 |
| B. | 3 |
| C. | 2 |
| D. | 1 |
| Answer» D. 1 | |
| 9. |
What is the special escape sequence for newline in C++? |
| A. | b |
| B. | m |
| C. | n |
| D. | |
| Answer» D. | |