Data Types
Loops
Variables
Functions
Random - any subject! Risky...
100

2 is an example of this data type.

What is integer?

100

What is a loop in programming?

A loop is a structure that repeats a section of code.

100

Why is it important to name variables with descriptive names?

Helps us understand what the program is doing... less bugs.. 

100
What key-word is used to return values from a function?

return

100

What is Mr. S's favorite hockey team?

New York Rangers

200

3.2 is an example of this data type.

What is a float?

200

What are the two types of loops?

For and while loops

200
What is a variable as used in computer science?

A value or "box" that stores information.

200

How do you correctly call the following function? : 

def square(x) : 

    a = pow(x,2)

    return a

x = square(5)

200

How many tattoos does Mr.S have? 

8 tattoos.

300

"5" is an example of this data type.

What is a string?

300

How many times does this loop run? 

for x in range(5):

t.circle(40)

t.forward(20)

5 times.

300

Write an example of a variable in Python syntax. 

color = red

300

The words in front of the parentheses are function names, and the comma-separated values inside the parentheses are function _____

arguments

300

What is the "NPC" abbreviation short for to a video gamer?

Non-Playable Character

400

True is an example of this data type.

What is a Boolean?

400

What is the difference between while and for loops?

For loops run for a specific amount of times. While loops run until a certain condition is met.
400

Ask a user for their age, with a variable to store that information.

age = int(input("how old are you?")

400

If Matt buys five hamburgers and spends $5.50, how much will it cost Matt to purchase twenty hamburgers for the bbq? Use functions, and the string below to complete your calculations. 

burgers = "5.50"

burgers = "5.50" 

burgers = int(burgers) 

burgers = burgers/5

def calculatebbq (price): 

     twenty = price*20

     return twenty

print(calculatebbq(burgers))

400

How do you calculate the atomic mass of an element?

Add the protons and neutrons. 

500

1 or 0 is an example of...(3 answers)

Integer / Boolean / Binary 

500

Write an algorithm that draws a star using a for loop.

for line in range(5): 

t.forward(30)

t.right(144)

500

What is it called when we use "int" when asking a user for a number alongside a string?

This is called casting. It changes the string to an integer automatically. 

500

Write a python code that uses input and a function to greet a user. 

def greeting(name): 

    print("Hello"+name)

username = input("Enter  your name:")

print(greeting(username))

500

Which planet is the hottest in our solar system?

Venus

M
e
n
u