Name:     ID: 
 
Email: 

Intro to Computers Quiz 2

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

 1. 

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
 

 2. 

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
 

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

 3. 

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

 4. 

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

Completion
Complete each statement.
 

 5. 

_________ makes a sprite stop when it runs into something.
 

 

 6. 

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

 

 7. 

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

 

 8. 

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

 

 9. 

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

 

 10. 

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

 

 11. 

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

 

 12. 

A collider must be used within the ______ function.
 

 

 13. 

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

 

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

 14. 

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

 15. 

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

 16. 

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

 17. 

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

 18. 

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

 19. 

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

 20. 

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.
 



 
         Start Over