Question: How do you include an external library in your Arduino sketch? a . import b . load c . #include d . require e .
How do you include an external library in your Arduino sketch?
a import
b load
c #include
d require
e None of the above Which keyword is used to define an array in Arduino?
a list
b vector
c array
d None of the above
Which library is used for IC communication?
a SPI
b Wire
c Serial
d Ethernet
e None of the above
How do you include an external library in your Arduino sketch?
a import
b load
c#include
d require
e None of the above
What does the following code output?
c
Copy code
int arr;
Serial.printarr;
a
b
c
d
e None of the above
Section : Interrupts and Timers
What is the purpose of a hardware interrupt in Arduino?
a To generate random numbers
b To pause the microcontroller indefinitely
c To respond immediately to external events
d To control PWM signals
e None of the above
Which function is used to attach an interrupt to a pin in Arduino?
a interruptAttach
b pinInterrupt
c attachInterrupt
d setInterrupt
e None of the above
What is the name of the timer configuration register for Timer on the ATmega
a TCCRA
b TCCRB
c TMR
d TIMERCFG
e None of the above
Which timer mode allows for precise interval measurement in Arduino?
a Normal mode
b PWM mode
c CTC mode
d Fast PWM mode
e None of the above What is the maximum value of Timer on an Arduino Uno?
a
b
c
d
e None of the above
Section : Watchdog Timers
What is the primary purpose of the watchdog timer?
a To prevent overheating of the Arduino board
b To reset the microcontroller if it becomes unresponsive
c To manage power consumption
d To control peripheral devices
e None of the above
Which register is used to configure the watchdog timer on an ATmega
a WDTCSR
b WDCFG
c WDTSET
d TCCRWDT
e None of the above
What happens when the watchdog timer is not reset in time?
a The program restarts from the beginning
b The microcontroller enters sleep mode
c The program continues as normal
d A warning message is sent to the Serial Monitor
e None of the above
Which function is used to reset the watchdog timer in Arduino?
a watchdogReset
b wdtreset
c resetWDT
d clearWatchdog
e None of the above
What is the typical timeout period of the watchdog timer in Arduino?
a ms
b ms
c second
d Configurable
e None of the above
Section : Sleep Modes and Power Management
Which library is commonly used for sleep modes in Arduino?
a Timer
b Wire
c LowPower
d Serial
e None of the above
Which sleep mode consumes the least power on the ATmega
a Idle mode
b Powersave mode
c Powerdown mode
d ADC noise reduction mode
e None of the above
What is the primary purpose of sleep modes in microcontrollers?
a Increase clock speed
b Reduce power consumption
c Improve sensor accuracy
d Maintain serial communication
e None of the above
What can wake up the Arduino from sleep mode?
a External interrupt
b Watchdog timer
c Serial data reception
d All of the above
e None of the above
Which function is used to enable sleep mode?
a entersleep
b sleepMode
Extra Credit: Wireless Communication
Which of the following modules supports Bluetooth communication with Arduino?
a ESP
b HC
c nRFL
d Zigbee
e None of the above
What is the frequency band of the nRFL module?
a MHz
b GHz
c GHz
d MHz
e None of the above
Which library is used to communicate with WiFi modules like the ESP
a SPI
b Wire
c WiFi
d Ethernet
e None of the above What is the primary function of the MQTT protocol in wireless communication?
a File sharing
b Messaging between IoT devices
c Wireless firmware updates
d Remote debugging
e None of the above
Which Arduino board comes with builtin WiFi and Bluetooth capabilities?
a Arduino Uno
b Arduino Nano
c Arduino Nano IoT
d Arduino Mega
e None of the above
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
