wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Computer Science Semester Exam Review

Total questions: 35

Worksheet time: 18mins

Name
Class
Date
1.

What does this comparison operator mean?

a)

Compares two values to see if the number on the left is less than or equal to the number on the right

b)

Compares two values to see if the number on the left is greater than or equal to the number on the right.

c)

Compares two values to see if the number on the left is greater than the number on the right.

d)

Compares two values to see if the number on the left is less than the number on the right.

2.

What does this comparison operator mean?

a)

Compares two values and returns true if they are not equal, otherwise false.

b)

Compares two values and returns true if they are equal, otherwise false.

c)

Compares two values to see if the number on the left is greater than the number on the right.

d)

Compares two values to see if the number on the left is less than the number on the right.

3.
What does this comparison operator mean?
a)
compares two values to see if the number on the left is greater than the number on the right
b)
compares two values and returns true if they are not equal, otherwise false
c)
compares two values to see if the number on the left is less than the number on the right
d)
Compares two values and returns true if they are equal, otherwise false.
4.
Which is not a rule for naming variables?
a)
no spaces
b)
camel case makes naming variables harder
c)
spelling & capitalization must match
d)
cannot start with numbers
5.

Which is an example of camel case?

a)

WelcomeToClass

b)

wlcmtclss

c)

WELCOMETOCLASS

d)

Welcome To Class

6.
Commands run in order from bottom to top.
a)
true
b)
false
7.

A computer science term that means true/false value

a)

boolean

b)

boolean expression

c)

conditional

d)

sprite

8.
A parameter is an extra piece of information that you pass to the function to customize it for a specific need.
a)
false
b)
true
9.
The image above is a graphic character on the screen with properties that describe its location, movement, and look is known as...
a)
attribute
b)
property
c)
sprite
d)
animation
10.
If statements are...
a)
statements that evaluates to a boolean value
b)
lines of code you use to change the flow of a program while it's running
11.
An algorithm is something that has been coded into something that can be run by a machine.
a)
true
b)
false
12.
The rate at which frames in an animation are shown, typically measured in frames per second: 
a)
animation
b)
if-statement
c)
parameter
d)
frame rate
13.
A bug in computer science is...
a)
any microorganism that causes illness
b)
something in nature that can be annoying
c)
part of a program that does not work correctly
d)
a character in the Marvel comic book series The Micronauts
14.
What would you expect to see based on the code above?
a)
a yellow rectangle with blue ellipse in the center
b)
a blue rectangle with a yellow ellipse in the center
c)
a yellow rectangle with a green ellipse in the center
d)
a green rectangle with a blue ellipse in the center
15.
When using variables, you only change the values of the variables because the variable label is connected to the sprite. 
a)
true
b)
false
16.
Are the sprites going to be drawn based upon these lines of code?
a)
yes
b)
no
c)
maybe
d)
only one will be drawn
17.
The above scale will draw the cactus half the original size.
a)
false
b)
true
18.
How will the flower move?
a)
diagonal
b)
from Right to Left
c)
from Top to Bottom
d)
rotate
19.
How will the bee move?
a)
diagonal
b)
from Right to Left
c)
from Top to Bottom
d)
rotate
20.
How will the mouse move?
a)
diagonal
b)
from Right to Left
c)
from Top to Bottom
d)
rotate
21.
How will the mercury move?
a)
diagonal
b)
from Right to Left
c)
from Top to Bottom
d)
rotate
22.
All of the code outside the draw loop is run first and only once
a)
false
b)
true
23.
What happens to the code inside the draw loop?
a)
gets drawn over and over
b)
nothing
c)
only drawn once
24.
Will this ellipse be drawn green?
a)
no
b)
yes
25.
What will the result of the line of code above be?
a)
the code will gernerate an ellipse at (0, 400)
b)
the code will generate only random y-values every time
c)
the code will generate only random x-values every time
d)
the code will generate new random numbers every time 
26.
Match this expression to the correct Boolean expression:
Is the dog sprite's scale greater than the cat sprite's scale? 
a)
dog.x > cat.x 
b)
dog.x < cat.x 
c)
dog.scale > cat.scale
d)
dog.scale < cat.scale
27.
A frame in computer science is...
a)
a single image within an animation
b)
something you put a picture in
c)
something that holds a house up
d)
the rate at which frames in an animation are shown
28.
A series of images that create the illusion of motion by being shown rapidly one after the other is known as...
a)
frame rate
b)
animation
c)
property
d)
sprite
29.
Conditionals are a generic term for code that alters program flow based on true/false values like an if-statement
a)
false
b)
true
30.
A type of statement that evaluates to a Boolean value (a single true/false) is a/an...
a)
Boolean expression
b)
parameter
c)
algorithm
d)
debugging
31.
A variable is a placeholder for a piece of information that can change.
a)
true
b)
false
32.
Attributes that describe an object's characteristics are called...
a)
property
b)
variable
c)
Boolean value
d)
bug
33.
When your notice your program is not working, but you do not fix it is known as debugging.
a)
true
b)
false
34.
Which result will be printed in the console by this program? 
a)
true, error, true 
b)
0, 200, 100 
c)
true, false, true 
d)
false, true, false 
35.
What does this comparison operator mean?
a)
compares two values and return true if they are not equal otherwise false
b)
compares tow values to see if the number on the left is greater than the number on the right
c)
compares two values and returns true if they are equal, otherwise false
d)
compares two values to see if the number on the left is less than the number on the right