PC Building
Functions
Iterations
Arrays
Python Misc
100

What does RAM stand for?

Random Access Memory

100

What is the keyword to define a function?

def

100

A for loop uses what to iterate through? 

Range

100

What do we call a list in Python?

Array


100

What do we call errors in code?

Bugs

200

What PC part is rated from 200W to 1600W?

Power Supply Unit

200

How would I call the following function?

(slide 5)

my_function()

200

while loop uses what to iterate through?

Loop Condition

200
Correctly tell me the syntax of a python list called 'seasons' that has the four seasons in the list.

seasons = ['fall', 'winter', 'spring', 'summer']

200

What symbol assigns a value to a variable?

equals sign (=)

300

What PC component performs calculations based on information from some components and passes the results to others?

Central Processing Unit

300

In the following function... what do we call horizontal, vertical, color... the items in the ()?

def rectangle(horizontal, vertical, color):

arguments

300

How many times will "dog" be printed in the following:

(slide 6)

4 times

300
What are two ways a programmer can add items to a list?

.append

.insert

300

What is used to make a comment in Python?

hashtag/pound #
400

What part of a PC is a mini computer itself, with processing power and memory to calculate the complex visuals of today's games and programs?

Graphics Processing Unit

400
How would I correctly call a function called "esports"?

def esports():

400

The following code results in a syntax error. How would you fix it?

(slide 7)

Line 3 needs to be "while answer == 'y':"

400
What are two ways a programmer can remove items from a list?

.pop

.remove

400

What keyword do we use to get an output in Python?

Print

500

What do we call the small pieces of metal that keep the motherboard raised off the case so it doesn't get fried?

Standoffs

500

What is a pre-installed Python library that enables users to create pictures and shapes by providing them with a virtual canvas?

Python Turtle

500

The following code results in a syntax error. How would you fix it?

(slide 8)

A : after line 2 and indent line 3

500

How would I print the following list out so each item in the list has its own line?


days_of_week = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday']

for x in days_of_week:

     print(x)

500

What do we call the 'rules' that say how a Python program will be written/looks.

syntax

M
e
n
u