WorksheetsComputer and Arduino Basics Quiz
Total questions: 50
Worksheet time: 25mins
What is a computer?
A machine that accepts input and provides output
A device for making calculations
A tool for painting
A device for producing sound
Processing cycle:
Sequence: Storage, Output, Processing, Input
Sequence: Input, Processing, Storage, Output
Sequence: Processing, Input, Storage, Output
Sequence: Input, Output, Processing, Storage
Information processing cycle:
Store, retrieve, display results
Steps: Accept input, process data, provide results
Process, store, share results
Retrieve input, compute results
Main component controlling data:
Hard Drive
Central Processing Unit (CPU)
Motherboard
Graphics Card
Device in Figure 2:
Storage device
Input device
Output device
Processing device
Devices in Figure 3:
Storage devices
Output devices
Input devices
Communication devices
Memory for quick data retrieval:
Hard Disk Drive (HDD)
Cache Memory
Random Access Memory (RAM)
Flash Drive
Purpose of computer storage:
To process data quickly
To hold data permanently
To convert data
To display data
Set of instructions for a computer:
Hardware
Software
Firmware
Operating System
Most popular operating system:
macOS
Linux
Windows
Android
Memory stores data/programs:
Temporarily or permanently
Permanently only
Temporarily only
Not at all
Device not used for storage:
Central Processing Unit (CPU)
USB Drive
SSD
HDD
What is a program?
Set of tasks
Sequence of operations
Set of instructions to perform tasks
Collection of data
Low-level language:
Machine language (binary)
Assembly language
Python
HTML
Purpose of assembly language:
Execute directly by CPU
Bridge between high-level and machine languages
Interpret high-level code
Manage hardware
Language closer to human:
Machine language
Assembly language
High-level programming language
Low-level programming language
What is Arduino?
High-speed processor
Cloud storage platform
Open-source platform with microcontroller
Video editing tool
Arduino IDE:
Software to upload programs to Arduino
Hardware for Arduino projects
Arduino-powered robot
Development tool for Raspberry Pi
Function in Arduino:
Main function
Start function
Loop function
Call function
“X” on Arduino board:
LED
Battery
Microcontroller
Resistor
Arduino Sketch Structure (once):
Main Function
Setup Function
Start Function
Loop Function
Breadboard usage:
Permanent soldering
Temporary electronic circuit creation
Data storage
Microcontroller programming
Arduino Sketch Structure (called):
Setup Function
Loop Function
Main Function
Conditional Function
Writing HIGH on LED pin:
Turns LED OFF
Increases brightness
Turns LED ON
Adjusts voltage
Delay command for LED:
Wait( )
Sleep( )
Delay( )
Pause( )
Sketch setup in Figure 6:
Sets pin for LED as INPUT
Sets pin for LED as OUTPUT
Sets pin for LED as HIGH
Sets pin for LED as LOW
Purpose of / /:
Compiles the code
Adds comments in code
Executes the program
Stores temporary data
Writing LOW on LED pin:
Turns LED OFF
Turns LED ON
Increases brightness
Adjusts voltage
Sketch purpose:
Sets pin for LED as INPUT
Sets pin for LED as OUTPUT
Initializes the microcontroller
Loops the program
Line numbers in editor:
Allow code debugging
Highlight syntax errors
Useful for locating errors
Enable code execution
Operator for equality:
*
/
=
%
IF()…ELSE purpose:
Loop control
Conditional control
Function initialization
Memory allocation
Types of loops:
Unlimited, timer, count, logic
Infinite, finite, conditional
Timer, infinite, direct
Logic, count, storage
Programs on a system:
Firmware
Hardware
Software
Data
Examples of data:
Image
Memory
Code
Power
Breadboard description:
Device for permanent wiring
Plastic board with holes
Sensor circuit
LED mount
Output device in Figure 7:
Sensor
Small motor
LED
Resistor
Sensor in Figure 8:
Pressure sensor
Light sensor
Distance sensor
Sound sensor
Block “1” in Figure 9:
Output A+B
Output B+C
Input A+B
Input B+C
Motor speed in Figure 10:
50
75
100
25
Output in Figure 11:
Motor
LED
Buzzer
Speaker
Robot drives forward:
Power: 75, Time: 2 seconds
Power: 100, Time: 2 seconds
Power: 50, Time: 3 seconds
Power: 25, Time: 1 second
Boolean variable:
Stores integers
Stores text
Stores true/false values
Stores floating-point numbers
Iterative control commands:
If statement
While loop, for loop, break/continue
Switch case
Void function
Baud rate:
Data transfer rate
Processing speed
Storage capacity
Signal strength
Purpose of Serial.begin(9600):
Opens serial port and sets baud rate
Initializes the microcontroller
Configures the LED pins
Activates the sensor
Block in Figure 14:
Start block
Wait block
Output block
Loop block
Operator for multiplication:
*
/
+
-
Arduino statement ending:
,
.
;
:
Arduino programming language:
Python
C++
Arduino C
Java
