Loops
Data Types
Variables/Syntax
Bonus/Extra
100

What is the name of the loop that iterates over a sequence, such as a list or string, in Python?

'For' loop

100

What data type is used to represent a decimal number in Python?

Floats 

100

What symbol is used to assign a value to a variable in Python?

=

100

What is this operator called: %?

Modulo

200

In a while loop, what happens if the loop condition is always true?

An infinite loop

200

Which data type is used to store multiple values in a single variable and is ordered and changeable?

List

200

What is the correct way to declare a variable named age and assign it the value 12?

age = 12

200

What is this way of writing a variable name:

iLoveDogs


Camel Casing

300

for i in range(1, 5):    

      print(i * 2)

2,4,6,8

300

is_valid = False

print(type(is_valid))

bool ( boolean )

300

Which of the following is the most correct way to write a variable name in Python?

  1. 1st_name
  2. first-name
  3. first_name
  4. first name

3. first_name

300

Tell me the process of how code runs?

Code written in environment, compiler, RAM, binary, CPU

400

In a for loop, which function is commonly used to generate a sequence of numbers?

range()
400

What data type would you use to create an immutable ( unchangeable ) sequence of items?

Tuple

400

name = "Charlie"

print("Hello, " + name)

Hello, Charlie

400

What is this number when converted from binary ro regular: 

1011


11

500

count = 0 

while count < 3:    

   print(count)    

   count += 1 

else:    

   print("Done!")

0, 1, 2, "Done!"

500

mixed = [42, "banana", 7.5, False] print(type(mixed[2]))

Float

500

What will be the output of the following code snippet?

x = 10

y = x

x += 5

print(y)

10

500

not True and False or ( not True ) and False or True and False

( must show your work )

False

M
e
n
u