Font size
WorksheetsCoding and Robotics 1 First Semester Review
Total questions: 20
Worksheet time: 12mins
If you wanted to display a message using Python, what command should you use?
show
variable
if/else
You forgot to add a parentheses at the end of your print statement. What kind of error will you most likely receive?
Syntax
Name
Indentation
Type
One line of your code you use the variable named Cash, but later you accidentally type a lowercase cash as the variable name. What kind of error would you most likely see?
Syntax
Name
Indentation
Type
You are writing an if/else statement and forgot to space the next line over. What kind of error would you most likely see?
Syntax
Name
Indentation
Type
What do we use as a placeholder to store data, values, and information?
Print statements
While Loops
Inputs
Variables
If we want a user to be able to answer questions in our code or add a response or password, what kind of code allows them to do so?
Print statement
Input
Variable
While Loop
What kind of circuit is this?
Parallel
Series
If a circuit has only one path that it can follow, what kind of circuit is it considered?
Parallel
Series
Which light bulbs, if any, are currently on?
A
B
C
No light bulbs are on
What is the function or purpose of this item?
To reduce electrical flow
Provides power
Emits light when a current flows through it
Changes or diverts the direction of the current
What is the function or purpose of this item?
To reduce electrical flow
Provides power
Emits light when a current flows through it
Changes or diverts the direction of the current
What pins provide 5V of power? (Select all that apply)
Pin 1
Pin 2
Pin 4
Pin 6
Pin 9
What pins can be used for your negative wire? (Select all that apply)
Pin 1
Pin 2
Pin 4
Pin 6
Pin 9
What 3 things does a line of code need to be considered a List? (Select all that apply)
Brackets
Commas
Variable
Quotation Marks
Parentheses
What number will this Loop start at?
0
1
9
50
What kind of loop is this known as?
While Loop
If Statement
Nested Loop
Infinite Loop
How many times a Loop will run is known as a what?
Cycle
Iteration
Loop
What is wrong with the provided code?
The else should be the first statement
The elif should be after the if statement and before the else statement
The elif should be the first statement
The input command should be moved to line 11
While Loops are based on (a) and For Loops are based on (b) or (c)
While building your robot, you notice that one of the motors is spinning the wrong direction. What would be the MOST EFFICIENT way of fixing the problem?
Removing and replacing the wheel on the motor
Replace the motor with an entirely new motor
Switch the positive and negative wire to reverse the rotation
Unscrew the screws, take the motor off, and reattach it facing the other direction
