Data Types
Debugging
Unity Basics
C# Syntax
Fix This Code
100

The data type used to store a whole number like a score or number of lives


What is int?

100
This error happens when you break the rules of the programming language causing the game to not run.

What is Syntax Error?

100

The window that shows all the GameObjects in your current scene.

What is the Hierarchy?

100

True or False. Unity C# is case-sensitive.

What is true?

100

int daysSincePayDay = 10000

What is semicolon ; (located after the 10000)?

200

The data type used to store a number with decimals, like money?

What is float?

200

This symbol is needed at the end of ALMOST every coding "sentence".

What is semicolon ; ?

200

The level or area where the game happens.

What is the Scene?

200

The color of the line that appears underneath code that is type incorrectly.

What is red?

200

True or False. Something is wrong with this code.

Debug.Log("Hello World");


What is false?

300

This is used for testing if a level is completed or not.

What is bool?

300

These symbols are needed to open and close a method.

What are Curly Braces/Brackets {} ?

300

This is used as a template or blueprint for GameObjects.

What is a prefab?

300

Identify the error in this code:

Debug.log("Happy New Year! It's 2026!");

The 'l' in "log" should be capitalized?

300

Two things need to be added to this if statement:

if Input.GetKey(KeyCode.W)

{

    transform.Translate(0, 5, 0);

}


What are opening and closing parenthesis around Input.GetKey(KeyCode.W)?

400

True or False. This code will produce an error:

float speed = 5;

What is false?

400

You press play on your game and notice this message in the Console: "NullReferenceException" .

What is Runtime Error?

400

The location where Unity allows you to change a GameObject's components and values.

What is the Inspector?

400

Identify what is wrong with this line:

void Start() {}

What is nothing?

400

The code compiles, but the player moves up WAY too fast. Fix this code:

transform.Translate(0, 5, 0);

What is multiplying the 5 by Time.deltaTime?

 transform.Translate(0, 5 * Time.deltaTime, 0); 

500

This set of symbols goes around any text to actually make it a string.

What is quotations?

500

The player intends to crouch when pressing shift, but instead jumps.

What is Logical Error?

500

Location where all files/assets are kept.

What is the Project Window?

500

Identify the NUMBER of Syntax errors in this code:

if (Input.GetKey(KeyCode.W)

{

    transform.Translate(0, 5, 0)

}


What is 2?

500

Identify ALL the fixes needed to make this code work:

void Start(

{

    int score = "10";

    Debug.Log(Score)

}

What are 4 fixes (1. Start(), 2. int score = 10; , 3. Debug.Log(score) , 4. semicolon after (score); )?