Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HAFTR - Unity Coding Review

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What is Unity?

a)

A video game

b)

A game engine

c)

A coding language

d)

3D modeling software

2.

Which window holds a list of your gameObjects within the scene?

a)

Hierarchy Window

b)

Scene Window

c)

Project Window

d)

Inspector Window

3.

Which window shows the properties and components of a given gameObject?

a)

Hierarchy Window

b)

Scene Window

c)

Project Window

d)

Inspector Window

4.

Which of these is NOT a default 3D Object in Unity?

a)

Cube

b)

Capsule

c)

Wedge

d)

Plane

5.

Which colors correspond to the X, Y, and Z axis respectively?

a)

Blue, Green, Red

b)

Red, Blue, Yellow

c)

Green, Blue, Red

d)

Red, Green, Blue

6.

What properties are contained within the 'Transform' component?

a)

Move, Rotate, Scale

b)

Position, Rotation, Scale

c)

Position, Rotation, Size

d)

Move, Rotate, Size

7.

What language does Unity use for scripting?

a)

Python

b)

C++

c)

C#

d)

JavaScript

8.

What two methods are automatically added to our scripts?

a)

OnEnable() & OnDisable

b)

Awake() & Update()

c)

Start() & Update()

d)

Start() & FixedUpdate()

9.

What is the output of this code?

int x = 5;

x = 9;

Debug.Log( x );

a)

5

b)

9

c)

14

d)

Error

10.

What is the output of this code?

Debug.Log( "11" + 8 );

a)

118

b)

19

c)

88

d)

Error

11.

Integers, strings, & booleans are all examples of what?

a)

variables

b)

data types

c)

functions

d)

assets

12.

Which mathematical symbol is used for multiplication?

a)

+

b)

^

c)

%

d)

*

13.

To change a gameObject's position or scale in code, what type of data does it need?

a)

float

b)

variables

c)

Vector2

d)

Vector3

14.

What component do we need to add to a Sphere to make it affected by gravity and physics?

a)

Collider

b)

Rigidbody2D

c)

Rigidbody

d)

A script

15.

When is the FixedUpdate() method called?

a)

Always

b)

Every physics step

c)

Every frame

d)

Never

16.

To check if the player is pressing the Space key, we would write:

a)

Input.GetKey(KeyCode.Space)

b)

Input.GetAxis("Horizontal")

c)

if(spacePressed){}

d)

bool spacePressed = true;

17.

Unity's Prefab system allows us to save a gameObject as an asset to be reusable

a)

True, all components, properties, and children are saved

b)

True, but it cannot be edited later

c)

False, the prefab system only makes clones

d)

False, the prefab system turns assets into gameObjects

18.

Which method creates a gameObject?

a)

Invoke()

b)

InvokeRepeating()

c)

Clone()

d)

Instantiate()

19.

What does this code output?

int a = 1;

int b = 2;

int c = a + b;

Debug.Log( a + c );

a)

1

b)

3

c)

4

d)

Error

20.

Which symbol is used denote a comment?

a)

//

b)

++

c)

--

d)

#