MCQOPTIONS
Saved Bookmarks
This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Arduino knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Can the loop() function be called recursively? |
| A. | Yes, it can be called recursively |
| B. | No, it cannot be called recursively |
| C. | Yes, it can be called recursively but only by the setup() function |
| D. | Yes, it can be called recursively but only twice |
| Answer» B. No, it cannot be called recursively | |
| 2. |
How to make the loop function run only once but the code inside run infinitely? |
| A. | Create a recursive function call statement |
| B. | Create a nested infinite loop within the loop() function |
| C. | Call the setup() function from the loop() function |
| D. | Call the loop() function from the setup() function |
| Answer» C. Call the setup() function from the loop() function | |
| 3. |
What is the output given by the code? |
| A. | Infinite Series of 010101… |
| B. | Finite Series of 11111…. |
| C. | Finite Series of 0000… |
| D. | Infinite Series of 1010101….View Answer |
| Answer» E. | |
| 4. |
Can the loop() function be used to replace the functionality of the setup() function? |
| A. | Yes, it can |
| B. | No, it cannot |
| C. | Yes, it can, but only for certain Arduino Boards |
| D. | Yes, it can, but only for a limited time frame |
| Answer» B. No, it cannot | |
| 5. |
Can a programmer not use the loop function at all in a code? |
| A. | Yes |
| B. | No |
| C. | Yes, but it needs to be called at least once |
| D. | Yes, but it needs to be commented out |
| Answer» B. No | |
| 6. |
How many times does the code give a digital HIGH signal at pin1? |
| A. | 1 |
| B. | 2 |
| C. | 3 |
| D. | 4View Answer |
| Answer» C. 3 | |
| 7. |
What is the output of the output on the Serial Monitor for the program given below if the input supplied to pin1 is of the form 0111? |
| A. | -1 0 1 1 |
| B. | -1 0 0 1 0 1 0 |
| C. | 1 0 1 1 0 1 1 |
| D. | -1 1 1 0 1 1 0View Answer |
| Answer» C. 1 0 1 1 0 1 1 | |
| 8. |
Is the loop() function a replacement of the main() function in the Arduino Programming Environment? |
| A. | No, it is a replacement for the constructor |
| B. | Yes, it is a replacement |
| C. | Yes, but only for certain Arduino Boards |
| D. | No, it is not a replacement |
| Answer» E. | |
| 9. |
Can the loop() function be used to call another function that is custom defined by the programmer? |
| A. | Yes, it can call |
| B. | No, it cannot call |
| C. | Yes, it can call but only functions with no return values |
| D. | Yes, it can call but only functions with return values |
| Answer» B. No, it cannot call | |
| 10. |
How many times does the loop() function run on every startup of the Arduino System? |
| A. | 1 |
| B. | Depends upon the setup() function |
| C. | Infinitely till the power is supplied to the Arduino |
| D. | 3 |
| Answer» D. 3 | |