Unit 1
Unit 2
Unit 3
Unit 4
100

What is Python an example of?

Formal language

100

Who invented the first mechanical computer?

Charles Babbage

100

Function is "a named group of ____ that is designed to do a specific task".

Code

100

Why do you use loops?

To repeat the function.

200

True or False

"print" can only be used on output words.

False

200

What is the symbol for integer division?

//

200

What structure is used to determine if a condition is true or false?

If statement

200

Count variable counts how many times the loop runs or iterates.

T/F

True

300

Main memory is what?

Lost when the computer is turned off.
300

Symbols that store values are called what?

Variables

300

What does this symbol means?

!=

Not equal to

300

range(start, ___, step)

Stop

400

print(5+9*2)

23

400

What variable name is the best to hold the area of a rectangle?

area

400

When do you use 'else statement'?

When none of the other expressions were true.

400

What does for loop use to set the value of the loop control variable?

It uses the range function.

500

What is the error?

input("enter a word:")

print(w)

The input needs to be stored to a variable, w.

500

What is the output?

x=-2

y=-3

print(x*y+2)

8

500

x = int(input("Enter a number: "))

if x != 7:

        print("A")

if x == 7:

        print("B")

You typed in 7. What should be the output?

B

500

What are the valid ways to end a loop?

- Checking when a variable reaches a certain value 

- Using user input

M
e
n
u