wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Module 3 - Unity Scripting Basics

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What programming language is used with the Unity game engine?


a)

GDScript

b)

C#

c)

C++

d)

Luau

2.

When using the Unity Manual or Unity Scripting Reference, it’s important to:


a)

Print it

Answered

b)

Bookmark it in your web browser

c)

Make sure the correct Unity version is selected

d)

Google it

3.

What is a Unity application programming interface (API)?


a)

A collection of functions and methods that game developers can access to easily create game mechanics and systems

Answered

b)

User interface components that developers can import into a project

c)

A collection of game assets that you can easily download and use in a Unity game development project

d)

Game examples you can use as a template to start developing a new Unity project

4.

At the beginning of every Unity C# script, APIs are accessed with what command?


a)

use

b)

boilerplate

c)

import

d)

using


5.

In the Unity game engine, how often is the Update() function automatically called?


a)

every minute

Answered


b)

every frame


c)

every 30 frames


d)

every second


6.

What command is used to define a function in the C# programming language?


a)

func

b)

def

c)

function

d)

void

7.

Which function name likely indicates that it’s a game loop?


a)

Update()


b)

Draw()


c)

Loop()


d)

Start()


8.

In the Input Manager, which movement would you use to edit the keys or joystick input used to make a sprite or game character move along the x-axis?


a)

Horizontal

b)

Mouse Y

c)

Jump

d)

Vertical

9.

In the Input Manager, which movement would you use to edit the keys or joystick input used to make a sprite or game character move along the y-axis?


a)

Horizontal

b)

Vertical

c)

Mouse X

d)

Jump

10.

If you want to change the keyboard keys used to move a sprite, do you need to change it in a C# script that uses axes input?


a)

No. You would only need to change the key inputs in the Game Settings.

Answered


b)

Yes. You would need to update the Input Manager and identify the keys in the script.


c)

Yes. You would need to identify each key used for input in the C# script.


d)

No. You would only need to change the keys used for input in the Input Manager.


11.

Input.GetMouseButtonDown(1) returns true if the middle mouse button was pressed.

a)

True

b)

False

12.

In Unity, which component is used to detect collisions between game objects?

a)

Renderer

b)

Collider

c)

Animator

d)

Rigidbody

13.

Which Unity component is responsible for rendering 3D models in a scene?

a)

Collider

b)

Renderer

c)

Animator

d)

Rigidbody

14.

What is the default method used to initialize variables or game state in Unity scripts?

a)

Start()

b)

Initialize()

c)

Awake()

d)

Setup()

15.

In Unity, which function is used to apply physics forces to a game object?

a)

ApplyForce()

b)

Rigidbody.AddForce()

c)

Physics.Push()

d)

Force.Apply()