wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Unit 3 Review: Programming Concepts

Total questions: 65

Worksheet time: 33mins

Name
Class
Date
1.
What are algorithms?
a)
A list of steps to finish a task.
b)
A set of rules that must be followed for any program.
c)
Small chunks of information that have been carefully formed from larger chunks of information.
d)
A way of communicating with the computer
2.
What is debugging
a)
Getting rid of extra enhancements, also known as bugs
b)
BBreaking a problem down into simpler steps
c)
Finding and fixing errors in the program
d)
A list of instructions.
3.
What is a function?
a)
A placeholder for a piece of information that can change
b)
An action that causes something to happen
c)
Getting help from a large group of people to finish something faster
d)
A piece of code that you can easily call over and over again
4.
Functions are implemented by copying and pasting the entire function everytime you want to use it
a)
True
b)
False
5.
What are parameters?
a)
An extra piece of information that you pass to the function to customize it for a specific need.
b)
An instruction for the computer
c)
CA type of measurement on a computer.
d)
A placeholder for a piece of information that can change.
6.
What does ambiguous mean?
a)
a list of steps that allow you to complete a task
b)
having more than one meaning
c)
having the best outcome for the least amount of work
7.
What does efficiency mean?
a)
having the best outcome for the least amount of work
b)
having more than one meaning
c)
a list of steps that allow you to complete a task
8.
You can tell a computer to do the same thing several different ways, but some ways are more efficient than others.
a)
True
b)
False
9.
Computers are very intuitive and can understand things the same way we do.
a)
True
b)
False
10.
The idea of efficiency is very important in computer science, because if your program has more instructions than it needs, then you are actually adding "time" to how long it takes a program to run.
a)
True
b)
False
11.
Sometimes it helps to write a program that works first, then cut out any steps that were unnecessary.
a)
True
b)
False
12.
What is abstraction?
a)
Breaking a problem into smaller steps
b)
Avoiding the problem that is being asked.
c)
A way of making a problem more complicated
d)
Pulling out specific differences to make one solution work for multiple problems.
13.
A computer will always understand the instructions that you give it.
a)
True
b)
False
14.
The following commands will make a 
a)
circle
b)
line
c)
square
d)
triangle
15.
The following commands will make a
a)
line
b)
triangle
c)
square
d)
circle
16.
This is an example of a _______, which is the extra bit of information that you pass into a function to customize it
a)
parameter
b)
function code
c)
binary code
d)
data bit
17.
We can measure angles in degrees. There are ____ degrees in one full rotation (one complete circle around) 
a)
120
b)
365
c)
360
d)
180
18.
There are ___ degrees in a straight angle.
a)
150
b)
45
c)
180
d)
360
19.
A statement that is either true or false depending on the situation is called a:
a)
Function
b)
Decrement
c)
Conditional
d)
Javascript
20.
A line that determines whether or not you run a chunk of code is an
a)
Increment
b)
If Statement
c)
Parameter
d)
Function
21.
Another way of saying "otherwise" is
a)
if
b)
else
c)
repeat
d)
while
22.
A piece of code that can be called over and over is a 
a)
Conditional
b)
Nested Statement
c)
Function
d)
Increment
23.
We call "if statements" conditionals because there is a "conditional" placed on them
a)
True
b)
False
24.
Pseudocode is the most widely adopted programming language
a)
True
b)
False
25.
Javascript is informally-written code that is easy for people to read. Each line of Javascript explains what that line of pseudocode is doing.
a)
True
b)
False
26.
if (card.color == black) {
team.points += 1; 
}
means if card's color is black then team's points increase by 1
a)
True
b)
False
27.
To add a certain amount once or many times.
Example: 5,10,15,20,25,30
a)
Conditional
b)
Decrement
c)
Variation
d)
Increment
28.
A statement inside another statement is called a
a)
Conditional
b)
If Statement
c)
Function
d)
Nested Statement
29.
To subtract a certain amount once or many times.
Example:100,90,80,70,60,50
a)
Increment
b)
Conditional
c)
Decrement
d)
Variation
30.
Conditionals are used for loops and if statements
a)
True
b)
False
31.
Conditionals are the way computers make decisions
a)
True
b)
False
32.
Function Definition is "The piece of a program that sends the computer to the function"
a)
True
b)
False
33.
What is the start value
a)
100
b)
1
c)
10
34.
What is the end value
a)
100
b)
1
c)
10
35.
What is the count value
a)
100
b)
1
c)
10
36.
Recursive means
a)
A placeholder for a value that can change
b)
A piece of code that can be called over and over
c)
A piece of music that repeats often
d)
A definition that refers to the word it is trying to define
37.
Function means
a)
A piece of code that can be called over and over
b)
A place holder for a value that can change
c)
A definition that refers to the word it is trying to define
d)
A piece of music that repeats often
38.
Variable means
a)
A piece of code that can be called over and over
b)
A piece of music that repeats often
c)
A placeholder for a value that can change
d)
A definition that refers to the word it is trying to define
39.
PARAMETERS are "The piece of a program that tells the computer what to do when the code calls the function."
a)
True
b)
False
40.
Define means to "create" or "write" a function
a)
True
b)
False
41.
Call means to "use" a function
a)
True
b)
False
42.
This is a function that creates a square that is 100 pixels wide
a)
True
b)
False
43.
The parameter for this is 100
a)
True
b)
False
44.
What does this code do?
a)
Make 7 squares all the same length
b)
Make 7 squares different lengths
c)
Make 5 squares all the same length
d)
Make 5 squares different lengths
45.
What is the size of the first square?
a)
50
b)
90
c)
10
46.
What is the size of the last square?
a)
50
b)
90
c)
10
47.
What is the change in the size of squares?
a)
50
b)
90
c)
10
48.
What is this an example of?
a)
Function call
b)
Function definition
c)
DON'T DO THIS!!!!
49.
What is this an example of?
a)
Function call
b)
Function definition
c)
DON'T DO THIS!!!!!
50.
What is this an example of?
a)
Function call
b)
Function definition
c)
DON'T DO THIS!!!!!
51.
Abstraction means
a)
A frame to guide you in creating something new
b)
Talking about only one exact thing
c)
Removing details from a solution so that it can work for many problems
52.
Template means
a)
Removing details from a solution so that it can work for many problems
b)
Talking about only one exact thing
c)
A frame to guide you in creating something new
53.
The reason we search for abstraction is so we can find many  solutions that will work for one thing.
a)
True
b)
False
54.
In order to call a function, you must first create it
a)
True
b)
False
55.
What does evaluate mean?
a)
A statement inside another statement
b)
Extra bits of information that you can pass into a function to customize it
c)
to work at an answer
d)
A piece of code that can be called over and over
56.
What does parameter mean?
a)
A statement inside another statement
b)
Extra bits of information that you can pass into a function to customize it
c)
to work at an answer
d)
A piece of code that can be called over and over
57.
What does function mean?
a)
A statement inside another statement
b)
Extra bits of information that you can pass into a function to customize it
c)
to work at an answer
d)
A piece of code that can be called over and over
58.
What does nested statements mean?
a)
A statement inside another statement
b)
Extra bits of information that you can pass into a function to customize it
c)
to work at an answer
d)
A piece of code that can be called over and over
59.
What is an example of an algorithm?
a)
Multiplying each number by 3 and adding 2
b)
Making a peanut butter and jelly sandwich
c)
Doing mad-libs with a friend
60.
What is an example of a pattern?
a)
Multiplying each number by 3 and adding 2
b)
Making a peanut butter and jelly sandwich
c)
Doing mad-libs with a friend
61.
What is an example of abstraction?
a)
Multiplying each number by 3 and adding 2
b)
Making a peanut butter and jelly sandwich
c)
Doing mad-libs with a friend
62.
What is an example of binary?
a)
Proof-reading an essay
b)
Taking an umbrella if it is raining
c)
Writing your initials in a code
d)
Going to school every day
63.
What is an example of a loop?
a)
Proof-reading an essay
b)
Taking an umbrella if it is raining
c)
Writing your initials in a code
d)
Going to school every day
64.
What is an example of debugging?
a)
Proof-reading an essay
b)
Taking an umbrella if it is raining
c)
Writing your initials in a code
d)
Going to school every day
65.
What is an example of a conditional?
a)
Proof-reading an essay
b)
Taking an umbrella if it is raining
c)
Writing your initials in a code
d)
Going to school every day