NEW
Font size
WorksheetsArduino Signals and Programming Quiz
Total questions: 24
Worksheet time: 12mins
Which technique does Arduino use to generate analogue signals?
Pulse width modulation (PWM)
Amplitude modulation
Frequency modulation
Square wave modulation
Which value corresponds to a 100% duty cycle in PWM?
255
200
500
128
What programming language does Arduino use for sketch development?
Java
JavaScript
Python
C/C++
Which function is required to establish a serial communication with the Arduino board?
Serial.begin(9600);
Serial.init(9600);
Serial.start(9600);
Serial.send(9600);
In which part of the Arduino code should Serial.begin be written?
void setup():
void main():
void loop():
void start():
What does the statement Serial.println(…); do in Arduino?
It converts data to a string.
It initializes the serial communication.
It sends data without starting a new line.
It sends data and moves to a new line on the display.
What is the output of Serial.println(5+1); on the monitor?
5
1
5+1
6
Which statement accurately defines a variable in programming?
A temporary placeholder for function results.
A memory storage unit where data is kept.
A permanent storage location in memory.
A type of data structure in arrays.
What data type would 0.5 be classified as?
char
bool
float
int
What will be the output when executing Serial.print("5+1");?
The literal string 5+1
5 + 1
6
The number 5 and then 1
Which of the following is NOT a variable type in Arduino?
integer
char
string
float
In Arduino programming, what is the purpose of a semicolon?
To end a statement.
To start a block of code.
To comment a line.
To declare variables.
What will be the output for Serial.println("5+1");?
6
Error in syntax
5+1
5 + 1
What role does the Arduino IDE play in relation to the Arduino hardware?
It provides a physical interface for the hardware.
It is a programming interface for writing code.
It functions as an input device.
It serves as a power source for the board.
Which of the following components is classified as an output device?
Light
Sensor
Motor (Wheel)
Button
What type of Arduino board is indicated as being used in school?
Arduino Nano
Arduino Mega
Arduino Leonardo
Arduino Uno
Which of the following describes the Arduino UNO?
An advanced version of the Arduino Mega.
A board that can run Java applications.
A component that is only useful for advanced programming.
A microcontroller board used for various projects.
What is a primary function of the serial monitor in Arduino?
To simulate hardware components.
To send and receive data between the computer and Arduino.
To communicate with output devices only.
To upload code to the board.
How do you declare an integer variable named 'num' and assign the value 5 to it?
num int = 5;
integer num = 5;
int num: 5;
int num = 5;
What is the correct way to declare a boolean variable called 'result' and assign it the value true?
bool result = true;
bool result: true;
boolean result = true;
result bool = true;
Which line correctly declares a char variable called 'letter' and assigns it the character 'a'?
char letter = 'a';
letter char = 'a';
char letter = a;
char letter: 'a';
Which of the following correctly declares a float variable called 'grade_11' and assigns it the value 90.5?
float grade_11: 90.5;
float grade_11 = 90.5;
grade_11 float = 90.5;
float grade_11 = 90;
What is the correct way to declare multiple variables of different types in one statement?
int num, bool result;
int num; bool result;
num int; result bool;
result bool, num int;
Which option correctly shows the sequence of declaring an integer, a boolean, and a char variable?
char letter; bool result; int num;
num int; result bool; letter char;
float grade; int num; char letter;
int num; bool result; char letter;
