Data Type (Strings, Integers, Floats)
If/Elif/Else
For loops, while loops, continue, break
Lists
Dictionaries
100

String, Integer, or Float? 50

Integer

100

Which keyword is used to start a decision-making statement in Python?

If

100

Which loop is best for repeating a block of code a specific number of times?

For loop


100

A list is written with these symbols.

[]

100

A dictionary stores data in these two parts.

Key and value

200

"Hello" is an example of this data type.

String

200

What word is used to check another condition if the first one is false?

Elif


200

Which loop runs as long as its condition is True?

While

200

What is the index of the first item in a Python list?

0

200

Which symbols are used to create a dictionary?

{}

300
This type stores numbers with decimals. 

Floats


300

In if x > 10: print("Yes"), what happens if x equals 10?

Nothing happens


300

This keyword stops the loop completely.

Break

300

What will this print?

fruits = ["apple", "banana", "cherry"]

print(fruits[1])   


"banana"

300

student = {"name": "Alex", "age": 15}

print(student["name"])


"Alex"

400

What data type is 0.0?

Float


400

Fill in the blank:

if score > 90:

    grade = "A"

_____ score > 80:

    grade = "B"

else:

    grade = "C"


elif


400

This keyword skips the rest of the current loop iteration but keeps looping.

continue
400

Which method adds a new item to the end of a list?

.append()

400

pet = {"type": "dog"}

pet["name"] = "Buddy"

print(pet)

# Output: {"type": "dog", _____ }


"name" : "Buddy"
500

What data type is 4 + 3.0?

Float


500

True or False: An else statement must always come after an if.

False

500

What is the output of this code?

for i in range(5):

    if i == 3:

        break

    print(i)


1

2

500

What will this print?

nums = [10, 20, 30, 40]

nums.pop(2)

print(nums)


[10, 20, 40]

500

scores = {"Alice": 90, "Bob": 85}

scores["Alice"] = 95

print(scores)


{"Alice": 95, "Bob": 85}

M
e
n
u