Topic 1
Topic 2
Topic 3
Topic 4
Topic 5
1

What is Computer Science?

using the internet to solve problems using technology to solve human problems  

1

What prints when you execute the following code?       x = 12 

y = 17 

print(x + y) 

29

1

What is a function?

A named group of code that is designed to do a simple task

1

What is a loop?

A way of repeating code

1

What do you have to import to make an image?

import simplegui

2

What is a formal language?

Language that is based on a set of very specific rules for communicating 

2

What is happening in this line of code? 

x = 5 * 8  

They are being multiplied 

2

What is a Parameter?

Parameters are the extra information set within the parentheses of a function.

2

What are the two ways to stop a loop?

User input and Count variable 

2

What are the three letters for the basic colors? 

RGB

3

What is the difference between hardware and software?

Hardware is the actual physical computer and software is instructions for the computer and code the computer runs on 

3

What does "**" represent in a basic calculation in python?

It makes the next integer an exponent

3

In an if statement, how would you write that a number is NOT equal to another number?

!=

3

Make a count variable using the variable "x".

x=x+1

3

What are the numbers between to determine a color?

0-255

4

What do Compilers do?

Translate code to machine language

4

What math function finds the square root of a number?

sqrt(x)

4
What does Elif do in an if statement?

elif lets you test a second (or third, or fourth…) condition and when the first option that is true happens, the rest are skipped.

4

What is a For loop?

A loop with a count variable built into it 

4
What function is used to draw a line

canvas.draw_line / draw_line

5

What is a variable?

A name for a spot in the computer’s memory

5

What would you put at the beginning of your code to make the code input random numbers?

import random

5

How do you add more than one condition to an if statement?

You can use "and" or, "or"

5

What outputs when you type?

for n in range(1,4):

     print(n)    

1

2

3

5

What function is used to draw a circle

canvas.draw_circle / draw_circle