NEW
Font size
WorksheetsIntroduction to Arduino ( Part III )
Total questions: 15
Worksheet time: 14mins
What is the purpose of the Serial.begin() function in Arduino?
To initialize the serial communication at a specific baud rate
To begin the execution of the main program
To initialize the GPIO pins
To declare a new library
What does the "Wire.begin()" function do in Arduino programming?
Initializes the SPI communication
Initializes the I2C communication
Initializes the ADC
Initializes the PWM pins
Which Arduino library function is used to control the speed of a DC motor connected to an H-bridge?
analogWrite()
digitalWrite()
Servo.attach()
Stepper.setSpeed()
Which Arduino library function is used to set the resolution and gain of the ADC (Analog-to-Digital Converter)?
analogReference()
analogRead()
analogWrite()
attachInterrupt()
What does "millis()" function do :
Returns the number of milliseconds
Pauses the program for 1milli seconds
Stops the program execution
Returns the number of seconds
"flashDotOrDash” and “flashSequence” functions involve :
Morse code signaling
Mirror code signaling
Mouse code signaling
Meta code signaling
What is the use of "visual indicator" function?
Providing visual feedback
It visualize the code
Providing visual
None of these
What the "shiftOut" function do?
It shifts 2 byte data
Writes a byte of
data to a shift register
It shifts code to compiler
It shifts code to other line
What will be the output of the following Arduino code?
0xAB
0xa
0
Error
What will be the output of the following Arduino code?
10.21
8
null
23
What is the output of “pin1” if “pin2” is sent “1011” where 1 is 5V and 0 is 0V?
1110
0100
1111
1011
What is the purpose of the following Arduino code?
Send a signal to pin 40 on the Arduino board
Send a octal number of 40 through the Serial pins
Send a byte with value 40 through the Serial pins
Send a hexadecimal number of 40 through the Serial pins
What is the output of the program given below if a voltage of 5V is supplied to the pin corresponding to the A0 pin on an Arduino UNO?
0
1024
null
Error
What will be the output of the following Arduino code?
01234
56789
6789
9101112
What the " abs(x)" function do?
Absorbs an interrupt
Returns the absolute value
Returns the abstract value
Abstract the program code
