OOP
Variables
Flow Control
General Python
Operations
100

A blueprint for creating objects.

What is class?

100

This common variable type stores letters, numbers, and symbols.

What is a string?

100

This often used statement checks the validity of a statement before creating a branch.

What is an 'if' statement?

100

To comment a line in Python, you use this/these character(s).

What is a pound sign (#) ?

100
This operator "glues" two strings together.
What is the concatenation (+) operator?
200

An object created from a class.

What is an Instance (object)

200

This variable type stores decimal numbers.

What is a float?

200

This flow control statement loops through a set of statements if a test statement continues to evaluate to True.

What is a for/while loop?

200

This commonly used Python data structure contains a collection of items referenced by a numeric index.

What is a list?

200

Identify the letter printed from these lines of code: words = "Python Rules!" print words[8]

What is 'R'?

300

Fill in the blank:

class Dog: def bark(_____): 

print("Woof!")

What is self?

300

Which variable name is NOT valid in Python?
- student_name
- student1
- 1student
- student_name_2

What is 1student?

300

What is the value of 'x'?

x = 10
if x > 5:
     print("A")
else:
     print("B") 

What is A?

300

Data structure stores information using key : value pairs?

What is a dictionary?

300

What prints?

word = "Python"

print(word[0])

What is P?

400

What the object has (color, speed, name)

What is attribute

400

Data stored as a string is surrounded by these.

What are quotes?

400

This type of operators allow you to string together tests in an 'if' statement.

What is a Boolean operator?

400

What prints?

colors = ["red","blue","green"]
print(colors[1])

What prints blue?

400

What prints?

word = "Python"
print(word[-1])

What is n?

500

*Denoted as '%', this operator returns the remainder of a division operation.

What is the modulus?

500

To determine the variable type of a variable, you would use this function.

What is type()?

500

What is printed?

numbers = [3, 5, 7]
numbers.append(9)
print(numbers[2])

What is 7?

500

This built-in Python function returns the length of many objects, including Lists.

What is len()?

500

Denoted as '%', this operator returns the remainder of a division operation.

What is the modulus?

M
e
n
u