WorksheetsRobotics Practice Exam
Total questions: 35
Worksheet time: 30mins
Which statement best differentiates a microcontroller from a single-board computer like Raspberry Pi?
Microcontroller runs one task without an operating system
Microcontroller uses Linux and supports full multitasking
Microcontroller is primarily a general-purpose desktop computer
Microcontroller requires high power and complex cooling
Fill in the formula that represents Ohm’s Law.
(a)
An LED requires a voltage drop across it and is connected to a 5 V supply with a series resistor. If the LED has a forward voltage of 2 V and we want to limit the current to 20 mA, what resistor value will be needed to achieve this current?
Which description correctly distinguishes series from parallel circuits for identical components?
Parallel forces different currents but equal power in each branch
Series have multiple paths and constant voltage across branches
Parallel uses one path and the same current everywhere
Series share one path and equal current through components
Plan a test to compare conductor and insulator behavior using a multimeter continuity mode. Describe setup, evidence to collect, and criteria to conclude material type.
Which breadboard feature provides vertical columns dedicated to power and ground distribution?
Bus strips for power and ground
Proto rails for temporary storage
Socket strips for component rows
Schematic strips for wire routing
A push button described as momentary behaves in which way when released?
Gradually ramps down current
Stays on if pull‑up is enabled
Turns off immediately after release
Locks in the on state until reset
Which sensor detects orientation by closing a circuit when a small metal ball shifts position?
Potentiometer varying manual resistance
LDR changing resistance with light
PIR sensor detecting infrared heat
Tilt sensor using a rolling ball
Identify the correct LED polarity pairing.
Anode positive long leg; cathode negative short leg
Anode negative short leg; cathode positive long leg
Anode flat side short leg; cathode round long leg
Anode ground bus leg; cathode socket row leg
Which output component relies on the piezoelectric effect to generate sound from vibrations?
Piezo buzzer creating audible tones
RGB LED mixing colored light
LCD panel displaying characters
Vibration motor providing haptics
When increasing the frequency (Hz) driving a piezo buzzer, what happens to the perceived pitch?
Pitch increases with higher frequency
Pitch randomly fluctuates with frequency
Pitch stays constant regardless frequency
Pitch decreases with higher frequency
Which actuator combines red, green, and blue diodes and uses PWM to blend colors?
Piezo buzzer with tones
Coreless DC vibration motor
LCD with 16x2 characters
RGB LED with color mixing
Explain how PWM enables color blending in an RGB LED.
Fill in the blank: The LCD mentioned typically has a _____ character by _____ row configuration.
(a)
Which pairing correctly matches breadboard sections to their function?
Schematic diagram shows physical location of parts
Socket strips provide internal component rows
Bus strips distribute power and ground
Bus strips route signals between IC pins
Plan a simple prototype to detect room occupancy and provide feedback using listed components. Describe the chosen sensor and actuator, and justify the wiring on a breadboard.
In an Arduino sketch, what is the primary difference between void setup() and void loop()?
Both run repeatedly after reset
Both run once at program start
setup() runs repeatedly; loop() runs once
setup() runs once; loop() runs repeatedly
Which symbol must appear at the end of most C++ statements in an Arduino sketch?
Semicolon
Curly brace
Parenthesis
Double slash
Select all commands that configure or control a digital pin on Arduino.
digitalRead(pin)
pinMode(pin, mode)
digitalWrite(pin, state)
analogRead(pin)
Which operator checks equality in C++?
=== strict equality operator
= assignment operator
!= inequality operator
== comparison operator
Complete the single precise blank: The command that prints data to the Serial Monitor on a new line is (a) .
A sensor returns LOW on pin 7. Which if-statement correctly triggers an LED HIGH only when the sensor reads HIGH?
if (digitalRead(7)) { digitalWrite(LED_PIN, HIGH); }
if (digitalWrite(7) == HIGH) { digitalRead(LED_PIN); }
if (digitalRead(7) == HIGH) { digitalWrite(LED_PIN, HIGH); }
if (digitalRead(7) = HIGH) { digitalWrite(LED_PIN, HIGH); }
Which set of statements best demonstrates correct use of if-else with equality comparison and assignment?
if (buttonState == HIGH) { digitalWrite(13, HIGH); } else { digitalWrite(13, LOW); }
if (buttonState = HIGH) { digitalWrite(13, HIGH); } else { digitalWrite(13, LOW); }
if (HIGH == 13) { buttonState = LOW; } else { buttonState = HIGH; }
if (buttonState != HIGH) { digitalWrite(13, HIGH); } else { digitalWrite(13, LOW); }
Explain the role of pinMode, digitalRead, and digitalWrite in building a basic button-controlled LED circuit. Describe the sequence of operations and where each line typically appears in an Arduino sketch.
Which command generates a specific pitch on a buzzer and which command stops it? Select all that apply.
tone(pin, frequency); starts sound
delay(ms); stops sound
noTone(pin); stops sound
Serial.println(data); starts sound
A variable declaration requires three parts. Choose the best example that shows all required parts.
int sensorValue = 0;
sensorValue int 0;
int sensorValue;
int = 0;
What is the primary function of a resistor in an electronic circuit?
To amplify signals
To limit current flow
To store electrical energy
To convert AC to DC
Which component is used to measure voltage in a circuit?
Ohmmeter
Voltmeter
Amperemeter
Capacitor
In Arduino programming, which function is used to read the state of a digital pin?
digitalWrite()
analogRead()
pinMode()
digitalRead()
What is the purpose of a capacitor in an electronic circuit?
To convert AC to DC
To limit current flow
To store electrical energy
To amplify signals
Which component is typically used to control the speed of a DC motor?
Resistor
Capacitor
Transistor
Diode
In an Arduino sketch, which function is used to set a digital pin as an output?
analogWrite()
pinMode()
digitalWrite()
digitalRead()
What is the primary purpose of a diode in an electronic circuit?
To store electrical energy
To limit voltage levels
To allow current to flow in one direction
To amplify signals
Which function in Arduino is used to write a value to a digital pin?
digitalRead()
analogWrite()
digitalWrite()
pinMode()
What is the effect of increasing resistance in a circuit on current flow?
Current decreases
Current fluctuates
Current increases
Current remains constant
