Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Robotics Final Study Guide

Total questions: 40

Worksheet time: 33mins

Name
Class
Date
1.
What converts electrical energy into other forms of energy? For example, using electricity to make sound or using electricity to make light.
a)
actuator
b)
sensor
c)
resistor
d)
Arduino
2.
When writing most words in a program, what is the name of the technique for combining words and capitalizing parts of the combined word?
a)
camelCase
b)
upDownWriting
c)
capCombination
d)
wordFusion
3.
which programming code reads the value from an analog pin? a number from 0 to 1023
a)
analogRead();
b)
analogWrite();
c)
digitalRead();
d)
digitalWrite();
4.
which programming code reads the value from a digital pin? a number that is 0 or 1
a)
digitalRead();
b)
analogRead();
c)
analogWrite();
d)
digitalWrite();
5.
Which of the following is an example of a micro-controller that we use in class?
a)
Arduino Uno
b)
Laptop
c)
Desktop computer
d)
Raspberry Pi
6.
Which of the following is a board for making an experimental model of an electric circuit?
a)
Breadboard
b)
Proto board
c)
jumper wires
d)
Arduino board
7.
The ______________ is the part of the breadboard that provides access to 5v and ground (GND) for all of the components used in a prototyping project.
a)
power bus
b)
power board
c)
bread board
d)
Arduino pins
8.
Which programming code reads the value of a digital pin? HIGH or LOW
a)
digitalRead();
b)
analogRead();
c)
analogWrite();
d)
digitalWrite();
9.
Which programming code turns a digital pin on or off?
a)
digitalWrite();
b)
analogRead();
c)
digitalRead();
d)
analogWrite();
10.
A(n) _______ is a polarized component that only works when wired properly? Positive pin gets wired to + Negative pin gets wired to -
a)
LED
b)
220 ohm resistor
c)
button
d)
temperature sensor
11.
Choose all that apply when using the code digitalWrite(2, HIGH); The word, "HIGH" represents:
a)
ON
b)
1
c)
sending 5v through digital pin 2
d)
0
e)
OFF
12.
Choose the correct way to declare a variable.
a)
int ledPin = 2;
b)
int led pin = 2;
c)
int LEDpin = 2
d)
int led pin == 2;
13.
When using jumper wires to connect components on the breadboard, which of the following statements is true?
a)
RED wires represent +voltage | BLACK wires represent -voltage
b)
BLACK wires represent +voltage | RED wires represent -voltage
c)
All wires represent +voltage
d)
RED wires represent signals | BLACK wires represent electrical voltage
14.
Choose one statement below that is true about LEDs. (Choose the best option)
a)
the long leg is positive
b)
LEDs do not require resistors
c)
the short leg is negative
d)
The legs of an LED do not have specific + or - wiring requirements
e)
All LEDs in basic robotics should be wired with a 220 ohm resistor
15.
If your project uses an LED, which of the following programming codes do you need to use when writing your setup function?
a)
pinMode(ledPin, OUTPUT);
b)
pinMode(ledPin, INPUT);
c)
digitalWrite(ledPin, OUTPUT);
d)
definePin(ledPin, OUTPUT);
16.
These are good for detecting on/off signals and will display 1 or 0 in the Serial Monitor when using the programming code: Serial.println(digitalRead(buttonPin));
a)
Push buttons
b)
transistors
c)
jumper wires
d)
Sensors
17.
Which component can resist the flow of electricity in a circuit? creating heat and allowing for proper function of components
a)
Resistor
b)
LED
c)
button
d)
jumper wires
18.
Which component changes its voltage output depending on the temperature of the component?
a)
Temperature sensor TMP36
b)
LED
c)
Resistor
d)
Photodetector
19.
_______________ is a code used to open the Serial Monitor. This allows you to communicated between the Arduino and your computer.
a)
Serial.begin();
b)
Serial.monitor();
c)
Serial.print();
d)
Serial.println();
20.
Which programming function works continuously to run a project after the setup function?
a)
void loop(){
b)
void setup(){
c)
analogWrite();
d)
Serial.begin();
21.
What is the name of the function that runs once at the beginning of the program?
a)
void setup(){
b)
void loop(){
c)
analogWrite();
d)
Serial.begin();
22.
What is a component that operates in the same way a potentiometer operates?
a)
joystick
b)
transistor/MOSFET
c)
piezo
d)
tilt sensor
23.
When sending PWM (pulse width modulation) signals with the Arduino, _______________ is used to dim an LED.
a)
analogWrite();
b)
digitalWrite();
c)
analogRead();
d)
digitalRead();
24.
Which of the following options in the correct way to send a PWM signal to an LED?
a)
analogWrite(ledPin, 255);
b)
digitalWrite(ledPin, 1023);
c)
analogRead(ledPin, OUTPUT);
d)
digitalRead(ledPin, HIGH);
25.
When mapping the values of an analog sensor from 0-1023 to the range of 0-255 to control an LED, you can divide the analog sensor reading by 4. mappedLedState = analogSensorValue/4;
a)
True
b)
False
26.
Which line of code is used to take a reading of the photoresistor?
a)
rawValue = analogRead(photoPin);
b)
//How to wire and program analog sensors (photoresistor)
c)
const int photoPin = A0;
d)
int rawValue = 0;
e)
void setup(){
27.
What environmental factor changes the raw value of the photoresistor's reading?
a)
Temperature of the room
b)
Ambient lighting of the room
c)
Color of the wires used
d)
Noise level of the room
28.
Looking at the wires for the servo motor, which color wire is the signal wire?
a)
Orange/Yellow
b)
Red
c)
Black
d)
Blue
29.
What is the name of the library used in the following project?
a)
Servo.h
b)
myServo
c)
myServo.attach();
d)
servo
30.
Which line of code, from the servo motor project below, is similar to pinMode(); when used with LEDs, buttons, ...
a)
myServo.attach(9);
b)
pinMode(ledPin, OUTPUT);
c)
pinMode(buttonPin, OUTPUT);
d)
myServo.write(180);
31.
map() uses the format: map(value, fromHigh, toHigh, fromLow, toLow)
a)
True
b)
False
32.
In the project below, what environmental factor determines the position of the servo motor?
a)
Amount of light
b)
Angle of the motor
c)
Number shown in the monitor
d)
Level of noise
33.
In the project below, which line of code creates noise?
a)
digitalWrite(3, HIGH);
b)
pinMode(3, OUTPUT);
c)
tone(3, 500, 20);
d)
digitalWrite(3, LOW);
34.
In the project below, which line of code stops the noise?
a)
digitalWrite(3, LOW);
b)
pinMode(3, OUTPUT);
c)
digitalWrite(3, HIGH);
d)
tone(3, 500, 20);
35.
In the project below, which line of code creates noise?
a)
tone(3, 500, 20);
b)
pinMode(3, OUTPUT);
c)
digitalWrite(3, HIGH);
d)
digitalWrite(3, LOW);
36.
In the project below, which line of code stops the noise?
a)
tone(3, 500, 20);
b)
pinMode(3, OUTPUT);
c)
digitalWrite(3, HIGH);
d)
digitalWrite(3, LOW);
37.
In the project below, what does the resistor do on the negative side of the piezo speaker?
a)
The resistor decreases the volume of the speaker
b)
This project is miswired and should not have a resistor
c)
This project is miswired and the resistor should be on the + side
d)
The resistor increases the volume of the speaker
38.
In project below, reflect on the line of code while(millis() < 5000){ how many times will the light turn on if the program runs for 30 seconds?
a)
1
b)
2
c)
3
d)
4
e)
5
39.
In the project below, which button is powered with the most voltage? The buttons are labeled from left to right 1, 2, 3, 4.
a)
Button 1 (far left)
b)
Button 2
c)
Button 3
d)
Button 4 (far right)
40.
In the project below, what is the value of note[2]?
a)
391
b)
329
c)
261
d)
98
e)
11