

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 purpose of the code given below? |
A. | To demonstrate the working of the INPUT_PULLUP argument |
B. | To emulate the working of the OUTPUT argument |
C. | To emulate the analogRead method |
D. | To reset all input to 0View Answer |
Answer» B. To emulate the working of the OUTPUT argument | |
2. |
What is the difference between the INPUT and INPUT_PULLUP arguments in the pinMode() function? |
A. | They are both the same |
B. | INPUT supports only analog voltages while INPUT_PULLUP supports only digital voltage readings |
C. | INPUT takes the default reading as 0 while INPUT_PULLUP takes default reading as 1023 |
D. | INPUT takes the default reading as 1023 while INPUT_PULLUP takes the default reading as 0 |
Answer» D. INPUT takes the default reading as 1023 while INPUT_PULLUP takes the default reading as 0 | |
3. |
What is the output of the program given below if a 0V is put across pin 11? |
A. | 1 |
B. | 0 |
C. | 0.3 |
D. | 1.001View Answer |
Answer» B. 0 | |
4. |
How many errors are present in the code given below? |
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4View Answer |
Answer» C. 3 | |
5. |
What is the output at the serial monitor of the code below if pin 11 is given the following signal? |
A. | 0H0H0 |
B. | OHHO |
C. | OHHH |
D. | HOHOOView Answer |
Answer» B. OHHO | |
6. |
What will the code given below give as output if a 5V line is connected as input to pin 11? |
A. | 0 |
B. | 102 |
C. | Null |
D. | 1023View Answer |
Answer» E. | |
7. |
What are the voltage levels that can be detected if a pin is set to OUTPUT using the pinMode() method and the analogRead() method is used, in the Arduino Uno? |
A. | 0 and 5V |
B. | 0 to 5.1V |
C. | 0 to 5V |
D. | 0 to 10V |
Answer» D. 0 to 10V | |
8. |
What are the two modes that the pinMode() method sets for a particular pin? |
A. | DIGITAL and ANALOG |
B. | INPUT and OUTPUT |
C. | TX and RX |
D. | READ and WRITE |
Answer» C. TX and RX | |
9. |
What is the output of “pin1” if “pin2” is sent “1011” where 1 is 5V and 0 is 0V? |
A. | 0100 |
B. | 1011 |
C. | 1110 |
D. | 1111View Answer |
Answer» B. 1011 | |
10. |
What type of signal does the analogWrite() method generate when a pin is set to OUTPUT mode? |
A. | Digital Signal |
B. | Pulse Code Modulated Signal |
C. | Pulse amplitude Modulated Signal |
D. | Pulse Width Modulated Signal |
Answer» E. | |