WorksheetsLevel 6 - Review
Total questions: 25
Worksheet time: 13mins
1. How many analog pins are there is Atmega324PA?
6
4
8
10
What is the unit of Frequency?
ms
Hz
m/s
Volts
Which function is used to set a pin as INPUT or OUTPUT?
pinMode();
digitalWrite();
digitalRead();
Serial.begin();
Which of the following is correct syntax to make the pin 9 as high?
digitalRead (9, HIGH);
digitalwrite (9, HIGH);
digitalRead (9, high);
digitalWrite (9, HIGH);
What does PWM stand for?
Pulse Width Mode
Pin Wide Modulation
Pulse Width Modulation
Pin Wire Module
Which of the following is an output device?
Seven Segment Display
Joystick
Keypad
Microphone
Which function can be used to add 1 to a variable every time?
*
++
--
==
If a stepper motor has a step size of 10 degrees, how many steps will be required to complete one rotation?
3600
360
36
10
What does LCD stands for?
Light Clear Display
Liquid Crystal Device
Light Crystal Device
Liquid Crystal Display
How many times the following 'for loop' will repeat?
for (int x = 5; x < = 15; x++)
5
10
15
11
Which function in the program makes the program run forever?
void loop()
void setup()
forever ()
if ()
Which command is used to display texts or values on Serial monitor?
Serial.begin();
Serial.println();
Serial.write();
Serial.read();
Which operator is used to compare whether both the sides are same or not?
=
<
==
>
Which operator is used to execute an action only when two conditions are true at the same time?
!
&&
||
~
A 300 ms delay is how many seconds?
0.3 seconds
3 seconds
30 seconds
None of the above
Which is the correct syntax to add a library in program?
*include <LibraryName.h>
#add <LibraryName.h>
*add <LibraryName.h>
#include <LibraryName.h>
In a NTC thermistor, when temperature rises what happens to its resistance?
The resistance does not change
The resistance increases
The resistance decreases
Cannot say
Motor driver is used to
Ensure sufficient current is flowing through motors
Enable PWM
Ensure the motors can be controlled momentarily
None of the options
To comment a line in the program, which is the correct syntax?
++
//
--
**
Which data type you will use if you have to store decimal numbers in a variable?
int
char
long
float
if ( x <= 10)
{
Serial.println("Hello")
x = x + 2;
delay(1000);
}
How many times 'hello' will be printed on screen if x starts as 0?
1
10
5
0
What is used to indicate the end of a statement in Arduino C program?
"
;
)
//
LDR stands for
Light Diode Receiver
Light Dependent Receiver
Light Dependent Resistor
Light Diode Resistor
What is the baud rate required to operate the Bluetooth module (HC05) in data mode?
38400
2000000
115200
9600
if (digitalRead(0) == 1)
{
angle = angle * 2;
delay(500);
}
What will be the value of angle if switch on digital pin 0 is pressed 10 times? Consider the starting value of angle as 0.
0
2
20
200
