wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Robotics Review for Midterm 2021

Total questions: 31

Worksheet time: 23mins

Name
Class
Date
1.

STEM Education is a system whose goal is the development of the human mind for the betterment of society and the individual within it.

a)

True

b)

False

2.

Where was the first Robotic Arm used? 

a)

General Insurance

b)

General Motors

c)

Motors Inc.

d)

Engines Galore

3.

"A robot may not injure a human being or, through inaction, allow a human being to come to harm" was written by _____________. 

a)

Isaac Asimov

b)

Dr. Mark Tilden

c)

Karl Capek

d)

Fritz Lang

4.

Who sketched the first humanoid robot? 

a)

Karel Capek

b)

Isacc Asimov

c)

Leonardo Da'Vinci

d)

Joseph Engleberge

5.

What year did Joseph Engelberger and George C. Devol create the first, prototype - Unimate-001?

a)

1940

b)

1958

c)

1959

d)

1966

6.

When did the da Vinci medical robot receive approval for surgery?

a)

1994

b)

1998

c)

1999

d)

2000

7.

When the following for loop is complete, how many spaces will Tracy have moved?

for i in range(5):

forward(10)

a)

50 spaces

b)

60 spaces

c)

10 spaces

d)

5 spaces

8.

Suppose you write a function. How many times can you call the function in your code?

a)

Once

b)

Not more than the number of commands the function holds

c)

It depends on the function

d)

As many times as you want

9.

Which of the following pieces of code will make Tracy do the following actions three times: go forward, change colors, and then turn around.

a)
b)
c)
d)
10.

Which of the statements below is true about indentation in Python?

a)

Indentation only matters in for loops. Then, everything must be indented one level.

b)

Indentation never matters in Python. You can align your code any way you like, but indentation makes your code easier to read.

c)

Indentation always matters in Python. Every statement must be aligned correctly.

d)

Indentation only matters in functions. Then, everything must be indented one level.

11.

Which of the following is NOT a command you can give to Tracy?

a)

color

b)

turn

c)

backward

d)

left

12.

Which of the following statements are true about for loops? 

Select all that are true.

a)

By default, the range function starts at 0

b)

Using for i in range(4) will result in i taking the values 0, 1, 2, 3, 4

c)

For loops let you repeat something any number of times

d)

It is not possible to have the range values count 6, 12, 18, 24

e)

It is not possible to have the range values count 1, 2, 4, 8, 16

13.

Which of the following functions is defined correctly?

a)
b)
c)
d)
14.

What is the difference between defining and calling a function?

a)

Defining a function means you are teaching the computer a new word. Calling a function means you are commanding the computer to complete defined actions.

b)

There is no difference.

c)

Calling a function means you are teaching the computer a new word. Defining a function means you are commanding the computer to complete defined actions.

d)

Defining a function must be done each time you want to use the function. Calling a function can only happen once in your code.

15.

What does the number in the parentheses in a forward or backward command represent?

a)

How many degrees Tracy is supposed to turn

b)

How fast Tracy is supposed to move

c)

How many times Tracy should repeat the command

d)

How far Tracy is supposed to move

16.

What control structure would be best to use in the following code?

a)

A function

b)

A while loop

c)

A for loop

d)

An if/else statement

17.

Which of the following commands can be used to turn Tracy to face North if she is initially facing South?

a)

left(90)

right(90)

b)

right(180)

c)

right(90)

left(180)

d)

left(360)

18.

Which program below includes no errors?

a)
b)
c)
d)
19.

What shape will be drawn with the following command?

circle(50, 360, 3)

a)

A circle

b)

A hexagon

c)

A triangle

d)

A diamond

20.

What will be the radii of the circles drawn from the following code?

for i in range(10, 55, 10):

circle(i)

a)

10, 20, 30, 40, 50

b)

10, 15, 20, 25, 30, 35, 40, 45, 50, 55

c)

10, 55, 10

d)

10, 20, 30, 40, 50, 55

21.

What will be the output of the following code?

a)

5 circles in a row

b)

4 circles in a row

c)

A slinky with 5 circles

d)

An infinite loop will occur

22.

What is the final result of the expression 4 + 5 * 3?

a)

27

b)

12

c)

21

d)

19

23.

Which one of the statements below will cause an error?

a)

ans = “hi” * 8

b)

ans = “hi” + 9

c)

ans = “hi” + “hi” + “hi”

d)

ans = (“a” * 4) + “b”

24.

What does the following program print?

a)

<type 'str'>

b)

<type 'int'>

c)

<type 'float'>

d)

The program crashes and doesn’t print anything.

25.

What kind of data does a float variable contain?

a)

Whole numbers

b)

Words

c)

Numbers that can have decimal components

d)

A float is not a Python variable type

26.

Which of the following options is the best way to get a number from the user that you plan to use in a mathematical equation?

a)

num = str(input(“Enter a number: “))

b)

num = number(input(“Enter a number: “))

c)

num = input(“Enter a number: “)

d)

num = int(input(“Enter a number: “))

27.

What is the character that in-line Python comments begin with?

a)

#

b)

%

c)

-

d)

"

28.

What is the difference between a binary operator and a unary operator?

a)

A computer can use binary operators, but it cannot use unary operators.

b)

A unary operator needs two things, while a binary operator only needs one.

c)

A binary operator needs two things, while a unary operator only needs one.

d)

Binary operators are used for arithmetic expressions, while unary operators are for strings.

29.

What is the output of the following program? Assume the user enters “Florence”, then “Fernandez”.

a)

Fernandez Florence

b)

Florence

Fernandez

c)

FlorenceFernandez

d)

Florence Fernandez

30.

Which of the following choices is a properly formed Python variable name, meaning it is both legal in the Python language and considered good style?

a)

user_age

b)

uSeRaGe

c)

user!age!

d)

1user_age

31.

Which of the following choices is NOT a Python variable type?

a)

int

b)

str

c)

float

d)

number