Variables
Mathematical Operators
Python & Command Line Basics
Lists
Decision Making and Functions
100

This variable type stores letters, numbers, and symbols.

What are strings?

100

This is the correct way of writing exponents in Python

a**b

100

To comment out a single line in Python, you use these characters

What are #?

100

This is the correct way of accessing an item in a list

What is list[i]?

100

All function definitions must start with this phrase

What is def?
200

This operator is used to define a variable

What is the assignment operator?

200

This operator divides two numbers and returns the remainder

What is the modulus operator (%)?

200

To print out the path to the directory I am in, I use this command line command

What is pwd?
200

Indexes in lists start from this value

What is 0?
200

These structures allow decision making in programs

What are selection structures?

300

These are not allowed in variable names

What are spaces and special characters?

300

If y = 3 and z = 7, the value of 

y != z and z <= 5


What is False

300

This command line command is used to make a new directory

What is mkdir?

300
This is the correct way to put a list in alphabetical order

What is list.sort()?

300

This statement is used to allow a function to provide output

What is return?

400

This term is used to describe turning a variable from one data type to another

What is typecast?

400

If a = 4, b = 5, and c = 8

The value of a<b or b>=c

What is True

400

This character is used to make new lines or tabs in print statements

What is the escape character?

400

These two are the correct ways to remove an item from a list

What are

list.remove("item") and del list[index]?

400

This is the difference between parameters and arguments

Parameters are used in the function definition, arguments are the values you put in when the function is called

500

These are allowed at the start of variable names

What are letters, and underscores

500

The value of 22//5

What is 4?

500

This type of error occurs when your code runs but does not produce the desired output

What is a logic error?

500

This is what happens if you sort a list containing both numbers and strings

You will get an error because you cannot sort a list containing different data types

500

In an if/elif/else statement, if three statements are true, your code will execute this many of them

What is the first true one?

M
e
n
u