Variables
Conditional Statements
Loops
Number Systems
Miscellaneous
100

What are variables used for?

To store values in python

100

Name a type of conditional statement

if-elif-else

100

Name two types of loops

for and while

100

Decimal to binary

56

111000

100

What changes byte code to running code

Virtual Machine

200

Name at least two types of data types

String, Boolean, Number, List, Tuple, Dictionnary

200

Name the conditional operators

==, <=, >=, <, >, and, or, not

200

is while a definite loop?

no

200
binary to octal

101

5

200

What changes source code to byte code

A compiler

300

What are modules?

Contains variables, functions, and classes

300

What does the following code output:

x = 1

if x<3:

     print true

else

     print false

 true

300

syntax for for loop is

for variable in range (end):

300

binary to hexadecimal

1011101

5D

300

Where do we import code from

Library modules

400

Can a variable be named for?

no

400

Write code to test if a variable is even or odd

if a%2 == 0:

  print even

else

  print odd

400

write a for loop to print 1 through 5

for i in range(5):

 print i

400

decimal to hexadecimal

120

78

400

Is an official language of what company

Google
500

Name at least two keywords in Python

for, if, else, while

500

Write code to print yes if number is even and greater than 10, maybe if number is even and less than or equal to 10, and no if none of the above is true

if i%2 == 0 and i>10:

 print yes

elif i%2==0:

 print maybe

else:

 print no


500

write an infinite loop

while 1==1:

 print infinite

500

octal to hexadecimal

76

3E

500
Who created Python

Guido Van Rossum

M
e
n
u