NEW
Font size
WorksheetsArduino ELESA
Total questions: 10
Worksheet time: 5mins
What type of signal does the analogWrite() function output?
Pulse Code Modulated Signal
Frequency Modulated Signal
Pulse Width Modulated Signal
Pulse Amplitude Modulated Signal
Which of the following is used to control the brightness of an LED connected to an Arduino board?
Analog input pin
Digital input pin
Analog output pin
Digital output pin
Which of the following is the correct syntax for reading data from a sensor connected to an analog input pin?
analogRead(sensor_pin);
digitalRead(sensor_pin);
analogWrite(sensor_pin, value);
digitalWrite(sensor_pin, value);
Which of the following is the correct syntax for sending data over the serial port in an Arduino sketch?
Serial.println(data);
Serial.print(data);
Serial.write(data);
Serial.read(data);
Which of the following is the correct syntax for creating a delay of 1 second in an Arduino sketch?
delay(60);
delay(1);
delay(1000);
delay(60000);
What is the microcontroller used in Arduino UNO?
ATmega328p
ATmega2560
ATmega32114
AT91SAM3x8E
Arduino IDE consists of 2 functions. What are they?
Loop() and build() and setup()
Build() and loop()
Setup() and build()
Setup() and loop()
What is the use of the Arduino.h header file?
It enables the programmer to access all of Arduino’s core functionality
It doesn’t have any use and can be omitted any point of time in the code
It gives root access to the microcontroller’s file system
It allows other people to create libraries for the Arduino code
How many times does the setup() function run on every startup of the Arduino System?
5
4
1
2
What is the function of the setup() function in an Arduino sketch?
It runs continuously while the sketch is running
It sets up the initial configuration of the sketch
It handles the input/output operations of the sketch
It is used to define custom functions in the sketch
