

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. |
What is the signal generated by the code at ‘y’ below if the input to ‘x’ is given as 1100? |
A. | 11 |
B. | 10 |
C. | 00 |
D. | 01View Answer |
Answer» B. 10 | |
2. |
If we would require a technique which would be able to run the setup() function for ‘n’ times, which one would we use? Choose the correct Combination that works. |
A. | BC |
B. | A |
C. | C |
D. | BView Answer |
Answer» C. C | |
3. |
How many times will the code run? |
A. | 1 |
B. | 3 |
C. | 5 |
D. | 7View Answer |
Answer» D. 7View Answer | |
4. |
What do we need to do if we want to run the setup() function in an infinite loop? |
A. | Call the setup() function from a custom named function |
B. | Call the setup() function from a constructor |
C. | Call the setup() function from the loop() function |
D. | Call the setup() function from the destructor |
Answer» D. Call the setup() function from the destructor | |
5. |
What are the errors in the code given below? |
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4View Answer |
Answer» D. 4View Answer | |
6. |
What is the output of the following code if the input voltage to pin1 is 0V,3.3V, 3.2V, and 5V (assuming 0V – 0, 3.2V – 492, 3.3V – 501, 5V -1023)? |
A. | 0101 |
B. | 1011 |
C. | 1100 |
D. | 1111View Answer |
Answer» B. 1011 | |
7. |
Given below are 2 snippets of code. Which one(s) are/is correct in order to generate an output signal of the form given below?a. |
A. | Only a |
B. | Only b |
C. | Neither a nor b |
D. | Both a and bView Answer |
Answer» E. | |
8. |
Is it syntactically correct to write the loop() function over the setup() function while writing an Arduino program? |
A. | No, it is not syntactically correct |
B. | Yes, it is syntactically correct but will result in the loop() method executing first |
C. | Yes, it is syntactically correct and the setup() function will execute first |
D. | It is syntactically correct but logically wrong |
Answer» D. It is syntactically correct but logically wrong | |
9. |
Can the setup() function change the value of constant variables? |
A. | Yes, it can change |
B. | No, it cannot change |
C. | Yes, it can change but only integer values |
D. | Yes, it can change but only byte values |
Answer» C. Yes, it can change but only integer values | |
10. |
How many times does the setup() function run on every startup of the Arduino System? |
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4 |
Answer» B. 2 | |