wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Coding and Robotics 1 First Semester Review

Total questions: 20

Worksheet time: 12mins

Name
Class
Date
1.

If you wanted to display a message using Python, what command should you use?

a)

print

b)

show

c)

variable

d)

if/else

2.

You forgot to add a parentheses at the end of your print statement. What kind of error will you most likely receive?

a)

Syntax

b)

Name

c)

Indentation

d)

Type

3.

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?

a)

Syntax

b)

Name

c)

Indentation

d)

Type

4.

You are writing an if/else statement and forgot to space the next line over. What kind of error would you most likely see?

a)

Syntax

b)

Name

c)

Indentation

d)

Type

5.

What do we use as a placeholder to store data, values, and information?

a)

Print statements

b)

While Loops

c)

Inputs

d)

Variables

6.

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?

a)

Print statement

b)

Input

c)

Variable

d)

While Loop

7.

What kind of circuit is this?

a)

Parallel

b)

Series

8.

If a circuit has only one path that it can follow, what kind of circuit is it considered?

a)

Parallel

b)

Series

9.

Which light bulbs, if any, are currently on?

a)

A

b)

B

c)

C

d)

No light bulbs are on

10.

What is the function or purpose of this item?

a)

To reduce electrical flow

b)

Provides power

c)

Emits light when a current flows through it

d)

Changes or diverts the direction of the current

11.

What is the function or purpose of this item?

a)

To reduce electrical flow

b)

Provides power

c)

Emits light when a current flows through it

d)

Changes or diverts the direction of the current

12.

What pins provide 5V of power? (Select all that apply)

a)

Pin 1

b)

Pin 2

c)

Pin 4

d)

Pin 6

e)

Pin 9

13.

What pins can be used for your negative wire? (Select all that apply)

a)

Pin 1

b)

Pin 2

c)

Pin 4

d)

Pin 6

e)

Pin 9

14.

What 3 things does a line of code need to be considered a List? (Select all that apply)

a)

Brackets

b)

Commas

c)

Variable

d)

Quotation Marks

e)

Parentheses

15.

What number will this Loop start at?

a)

0

b)

1

c)

9

d)

50

16.

What kind of loop is this known as?

a)

While Loop

b)

If Statement

c)

Nested Loop

d)

Infinite Loop

17.

How many times a Loop will run is known as a what?

a)

Cycle

b)

Iteration

c)

Loop

d)

Print

18.

What is wrong with the provided code?

a)

The else should be the first statement

b)

The elif should be after the if statement and before the else statement

c)

The elif should be the first statement

d)

The input command should be moved to line 11

19.

While Loops are based on ​ (a)   and For Loops are based on ​ (b)   or ​ (c)  

Choose from the below words
conditions
sets of numbers
Lists
Inputs
Print Statements
20.

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?

a)

Removing and replacing the wheel on the motor

b)

Replace the motor with an entirely new motor

c)

Switch the positive and negative wire to reverse the rotation

d)

Unscrew the screws, take the motor off, and reattach it facing the other direction