wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CompuScholar Chapter 5 Exam

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which of the following best describes the job of a "physics engine"?

a)

To handle the complex math needed to simulate realistic physical behavior of game objects

b)

To handle the logic necessary to add artificial intelligence to game objects

c)

To help create very large virtual worlds within a video game

d)

To help draw complex images on the screen

2.

What would you do to a game object to make it react to gravity and other physical forces?

a)

Add a Rigidbody 2D component

b)

Add a Collider 2D component

c)

Add a complex C# script

d)

Add a Physics2D Material

3.

Which of the following Rigidbody 2D component properties will change how fast an object falls in response to gravity?

a)

Mass

b)

Gravity Scale

c)

Angular Drag

d)

Constrain - Y

4.

Which of the following Rigidbody 2D component properties would you set to freeze the position of an object in a horizontal (side-to-side) direction?

a)

Constraints-Y

b)

Constraints-Z

c)

Constraints-X

d)

HorizontalFreeze

5.

Which of the following Rigidbody2D component properties will control the amount of air resistance an object will experience when flying through the air or falling?

a)

Mass

b)

Linear Damping

c)

Angular Damping

d)

Gravity Scale

6.

Which of the following components would be best used to detect collisions around a pizza box in a 2D game?

a)

Box Collider 2D

b)

Circle Collider 2D

c)

Edge Collider 2D

d)

Polygon Collider 2D

7.

Which of the following components would be best used to detect collisions around a bicycle wheel in a 2D game?

a)

Box Collider 2D

b)

Circle Collider 2D

c)

Edge Collider 2D

d)

Polygon Collider 2D

8.

Which of the following components would be best used to detect collisions around an irregularly shaped rock?

a)

Box Collider 2D

b)

Polygon Collider 2D

c)

Edge Collider 2D

d)

Circle Collider 2D

9.

How can you get a collider boundary to match the edge of your object image as closely as possible?

a)

You have to rely on Unity to automatically set the best boundaries

b)

You need to add the green boundary lines to the original image file

c)

Click the "Edit Collider" button and adjust the green boundary lines

d)

You need to add multiple Collider 2D components to the sprite to build up a combination of shapes that match your object

10.

. An object that wants to move based on game physics AND detect collisions should have which component(s) attached?

a)

Rigidbody 2D and Collider 2D

b)

Rigidbody 2D only

c)

•Income is taxed twice.

•corporate income

•individual income

•CorCollider 2D only

d)

Physics2D only

11.

Where do you configure "friction" and "bounciness" properties of an object?

a)

On a Physics2D Material

b)

On a Rigidbody 2D component

c)

On a Collider 2D component

d)

On a Transform component

12.

Which of the following surfaces would likely have the highest "friction" value?

a)

Rough Sandpaper

b)

These will all have the same friction settings

c)

Glass

d)

Ice

13.

Which of the following objects would most likely have the lowest "bounciness" value?

a)

A tennis ball

b)

A brick

c)

A trampoline

d)

A beach ball

14.

Which of the following statements about sharing Physics2D Materials is true?

a)

Each object has its own Physics 2D Material component.

b)

Physics 2D Materials can be shared only by objects that have exactly the same type of collider.

c)

Physics 2D Materials are Assets that can be shared by multiple objects.

d)

Physics 2D materials are attached to a Rigidbody, and are therefore shared by all objects that use that same Rigidbody component.

15.

If you want to create a surface that lets objects easily slide across and bounce high into the air upon collision, what kind of "friction" and "bounciness" settings should you use?

a)

High friction and high bounciness

b)

Low friction and high bounciness

c)

Low friction and low bounciness

d)

High friction and low bounciness

16.

Which of the following events might be used to run some scripted logic?

a)

Player clicks on a button

b)

Player health reaches zero

c)

Two objects collide

d)

All of these, and more!

17.

. Which of the following functions can Unity call in response to a regular, physics-based collision event?

a)

OnCollisionEnter2D()

b)

Collided()

c)

Collided()

d)

OnCollisionDetection()

18.

Given the function below, what line of code could you write to show the name of the other object involved in a collision? void OnCollisionEnter2D(Collision2D otherObject)

a)

Debug.Log("Collision with: " Collision2D.name);

b)

Debug.Log("Collision with: " + otherObject.gameObject.name);

c)

gameObject.log("Collision with: " + name);

d)

Collision2D.log("Collision with: " + gameObject.name);

19.

. Which of the following best describes how you set up a Unity game object to call a function when a collision is detected?

a)

Attach a script with the event function to the game object

b)

Draw a line from the object in the hierarchy panel to the function in your script

c)

Attach a script with the event function to the Rigidbody 2D component on the object

d)

Add a Collider 2D component and a script with the event function to the game object

20.

If you want a collision event to call a function but not cause the objects to react physically, what setting should you change?

a)

Disable the "Physics2D" setting on the Rigidbody 2D component

b)

Check the "Is Trigger" box on the collider

c)

Check the "Transparent" box on the collider

d)

Set the "Body Type" property on the Sprite Renderer component