Name:     ID: 
 
Email: 

Intro to Computers Quiz 2

True/False
Indicate whether the statement is true or false.
 

 1. 

The part of a program that does not work correctly is called a bug.
 

 2. 

To speed up a sprite that a negative velocity, you need to add to the velocity inside the counter pattern.
 

 3. 

Debugging helps you find and fix problems in your algorithm or program.
 

 4. 

In order to plot things on the screen in Game Lab, you will need to use x and y coordinates. The y coordinate tells how far something is from the left side of the display area. The x coordinate tells how far something is from the top of the display area.
 

 5. 

A parameter is an extra piece of information that you pass to the function to customize it for a specific need.
 

 6. 

An algorithm that has been coded into something that can be run by a machine is called a program.
 

 7. 

The displace collider makes both the sprite and the target change how they are moving.
 

Multiple Choice
Identify the choice that best completes the statement or answers the question.
 

 8. 

The color parameter can be:
a.
The lowercase name of a color inside " ".
c.
both A and B
b.
A call to the rgb() command.
d.
neither A or B
 

 9. 

In the syntax for an ellipse, ellipse(x, y, w, h); which specifies the location of the center of the ellipse from top to bottom?
a.
x
c.
w
b.
y
d.
h
 

Multiple Response
Identify one or more choices that best complete the statement or answer the question.
 

 10. 

The following are types of collisions:
 a.
displace
 d.
bounce
 b.
replace
 e.
bounceOff
 c.
collide
 f.
elastic
 

 11. 

Check which of the following are Comparison Operators
 a.
==
 d.
>=
 b.
=!
 e.
<
 c.
>
 f.
=
 

Completion
Complete each statement.
 

 12. 

In the Animation Tab, the _____ button rotates the current image 90 degrees counter-clockwise.
 

 

 13. 

You can also change the shape of the colliders using the method _______. This method makes the collider a circle or a rectangle.
 

 

 14. 

_________ makes a sprite stop when it runs into something.
 

 

 15. 

The code _________ checks to see if a key is pressed.
 

 

 16. 

Game Lab uses the method ________ to check whether one sprite is touching another sprite.
 

 

 17. 

Use the block _______ to tell the sprite how fast to move across the screen.
 

 

 18. 

A(n) _________ is a group of commands (blocks) that you give a name so that you can use it over and over again.
 

 

 19. 

A collider must be used within the ______ function.
 

 

 20. 

A Boolean expression evaluates to ______ or ______. (enter each blank with only a space between words)
 

 



 
         Start Over