WorksheetsArduino and Flowchart Quiz
Total questions: 60
Worksheet time: 30mins
What is the primary programming language used for Arduino?
Python
Java
C++
JavaScript
Which function is used to set up the initial state of an Arduino program?
loop()
setup()
init()
start()
Which function is used to create a delay in milliseconds in Arduino programming?
wait()
pause()
delay()
sleep()
What is the purpose of the loop() function in an Arduino sketch?
To initialize variables
To run code once
To run code repeatedly
To stop the program
Which function is used to read the value from a digital pin?
digitalWrite()
digitalRead()
analogRead()
analogWrite()
What is the correct syntax to set a pin as an output in Arduino?
pinMode(pin, OUTPUT);
setPinMode(pin, OUTPUT);
pinMode(OUTPUT, pin);
setMode(pin, OUTPUT);
Which function is used to write a HIGH or LOW value to a digital pin?
digitalWrite()
digitalRead()
analogWrite()
analogRead()
What is an Arduino?
A type of microcontroller
A programming language
A type of sensor
A type of motor
Which of the following is the most common Arduino board?
Arduino Mega
Arduino Nano
Arduino Uno
Arduino Leonardo
What is the operating voltage of an Arduino Uno?
3.3V
5V
9V
12V
How many digital I/O pins does an Arduino Uno have?
10
12
14
16
What is the function of the Arduino IDE?
To write and upload code to the Arduino board
To power the Arduino board
To connect sensors to the Arduino board
To store data from the Arduino board
What is the purpose of the reset button on an Arduino board?
To restart the code execution
To turn off the board
To upload new code
To erase the memory
What is the clock speed of the Arduino Uno?
8 MHz
16 MHz
32 MHz
64 MHz
Which of the following is a common use for Arduino boards?
Web development
Data analysis
Prototyping electronic projects
Graphic design
Which of the following sensors can be connected to an Arduino?
Temperature sensor
Light sensor
Motion sensor
All of the above
What is the function of the digitalWrite() function in Arduino programming?
To read analog values
To write digital values
To write PWM values
To read digital values
What is the purpose of the delay() function in Arduino programming?
To create a delay in code execution
To read sensor values
To write data to memory
To reset the board
What is the function of the pinMode() function in Arduino programming?
To set the mode of a pin (input/output)
To read the value of a pin
To write a value to a pin
To reset the pin
What is the function of the digitalRead() function in Arduino programming?
To read analog values
To write digital values
To read digital values
To write analog values
What is a flowchart?
A diagram that represents a process or workflow
A type of programming language
A chart that shows financial data
A tool for creating presentations
Which symbol is used to represent the start or end of a flowchart?
Rectangle
Diamond
Oval
Parallelogram
What does a rectangle symbolize in a flowchart?
Decision
Process
Input/Output
Start/End
Which symbol is used to represent a decision in a flowchart?
Rectangle
Diamond
Oval
Circle
What does a parallelogram represent in a flowchart?
Process
Decision
Input/Output
Start/End
What is the purpose of a flowchart?
To visualize the steps in a process
To create a database
To write code
To design a website
What does an arrow represent in a flowchart?
Start/End
Process
Decision
Flow of control
Which of the following is a benefit of using flowcharts?
Simplifies complex processes
Increases coding speed
Reduces the need for documentation
Enhances financial analysis
What is the purpose of a decision symbol in a flowchart?
To represent a process
To indicate the start or end
To show a point where a decision is made
To represent input/output
Which of the following is a common mistake when creating flowcharts?
Using too many symbols
Not using arrows to show flow
Including too much detail
Using color
What is the primary purpose of pseudocode?
To execute code
To provide a detailed, language-specific implementation
To outline the logic of an algorithm in plain language
To create a user interface
Which of the following is a characteristic of pseudocode?
It uses strict syntax rules
It is written in a specific programming language
It is easy to read and understand
It can be compiled and executed
Which keyword is commonly used in pseudocode to represent a decision?
IF
FOR
WHILE
Which of the following is a best practice when writing pseudocode?
Using complex language
Including specific programming syntax
Keeping it simple and clear
Avoiding the use of keywords
What symbol is used to indicate a comment in Arduino programming?
//
##
/*
!!
Before your program “code” can be sent to the board, it needs to be converted into instructions that the board understands. This process is called...
Stop
Compile
Create Sketch
Serial Monitor
Identify this component
Arduino Uno board
Raspberry Pi
Breadboard / Protoboard
White Plastic Board
A micro-controller is...
small CPU made of transistors and conductors of heat and sound sensor
portable circuits capable of making other circuits
small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals
small chip made of silver
Explain the function of the USB port on the Arduino Uno R3 board.
For charging the board
For uploading code and serial communication
For playing audio files
For connecting to WiFi
What is the role of the Arduino's power jack?
To provide a connection for the USB cable
To supply power to the Arduino board
To connect the Arduino to the internet
To display graphics on the LCD screen
delay (1000);
1000 in delay is equivalent to how many second?
10s
2s
60s
1s
int LED1=4;
What is 'int= integer' used for?
Alphabets
Capital and small letters
Combination of Numbers and Alphabets
Numbers
LED is setup-up to blink. LEDs is an
Output
Input
pinMode
digitalWrite
Which picture best represents the Arduino UNO Headers?
Which picture best represents the microcontroller that the Arduino UNO uses?
Which picture best represents the physical pins of the microcontroller that the Arduino UNO uses?
The Arduino UNO has power pins for 5 volts and 3.3 volts?
Just 3.3 V
True
Just 5V
Neither
A _______________ is connected to pin 13 on an Arduino UNO
Buffer
LED
Digital to Analog Converter
Analog to digital converter
There is a _____________ that can be used for resetting the Arduino UNO
Pin
Button
Pin and a button
While you upload a sketch to the Arduino UNO, the TX and RX LEDs should
Be off
Blink rapidly
Constantly on
How many ground pins are available on the Arduino UNO headers?
1
3
2
4
The Arduino UNO can be powered from a battery pack.
True
False
Digital Pins can act as
Input only
output only
Input and output
Analog pins can(A0 to A5)
read signals only
write signals only
read and write signals
An input signal is
A signal going into the board
A signal exiting the board
None of the above
Arduino can take power from an external power supply
True
False
An output signal is
A signal exiting the Arduino board
A signal entering the Arduino board
None of the above
A==7 means
A is equal to 7
7 is assigned as an int A
A is not equal to 7
A is greater than 7
