---
title: "Quiz 3"
content_type: quiz
url: "https://learn.unity.com/quiz/quiz-3-tt?language=en"
language: en
difficulty: beginner
duration_minutes: 15
question_count: 10
correct_answers_to_pass: 1
unity_version:
  - "6.0"
  - "6.3"
supported_unity_versions:
  - name: "6.0"
    url: "https://learn.unity.com/quiz/quiz-3-tt.md?language=en&version=6.0"
  - name: "6.3"
    url: "https://learn.unity.com/quiz/quiz-3-tt.md?language=en&version=6.3"
  - name: "2022.3"
    url: "https://learn.unity.com/quiz/quiz-3-tt.md?language=en&version=2022.3"
  - name: "2021.3"
    url: "https://learn.unity.com/quiz/quiz-3-tt.md?language=en&version=2021.3"
available_languages:
  - name: "en"
    url: "https://learn.unity.com/quiz/quiz-3-tt.md?language=en"
  - name: "es"
    url: "https://learn.unity.com/quiz/prueba-3.md?language=es"
  - name: "ja"
    url: "https://learn.unity.com/quiz/quiz-3-dn.md?language=ja"
  - name: "ko"
    url: "https://learn.unity.com/quiz/kwijeu-3.md?language=ko"
last_updated: "2026-08-04T14:25:10.000Z"
---

# Quiz 3

Use this quiz to check your understanding of the skills and concepts covered in Unit 3.

This quiz will assess your knowledge of the skills and concepts learned in Unit 3.

## Question 1

You are trying to STOP spawning enemies when the player has died and have created the two scripts below to do that. However, there is an error on the underlined code, “isAlive” in the EnemySpawner script. What is causing that error?

![](https://connect-mediagw.unity.com/h1/20190812/learn/images/6c6c58d3-114c-45a0-a147-7c948efd2a18_Quiz_3.1.png)

_Select only one_

- The “p” should be capitalized in “playerController.isAlive”
- The “bool” in the PlayerController class needs a “public” access modifier
- The if-statement cannot be in the Update method
- “isAlive” must start with a capital “I” (“IsAlive”)

## Question 2

Match the following animation methods with its set of parameters

![](https://connect-mediagw.unity.com/h1/20190812/learn/images/65a970ca-749b-4125-a880-7310757b8143_Quiz_3.2.png)

_Select only one_

- 1A, 2B, 3C
- 1A, 2C, 3B
- 1B, 2A, 3C
- 1C, 2A, 3B

## Question 3

Given the animation controller / state machine below, which code will make the character transition from the “Idle” state to the “Walk” state?

![](https://connect-mediagw.unity.com/h1/20190812/learn/images/64dda82c-6ffd-4e8d-aa8c-74dbcd6e5bfb_Quiz_3.3.png)

_Select only one_

- setFloat(“Speed_f”, 0.3f);
- setInt(“Speed_f”, 1);
- setTrigger(“Speed_f”);
- setFloat(“Speed_f”, 0.1f);

## Question 4

Which of these is the correct way to get a reference to an AudioSource component on a GameObject?

![](https://connect-mediagw.unity.com/h1/20190812/learn/images/273f37ca-3608-4281-bd47-734725f3910d_Quiz_3.4.png)

_Select only one_

- Line A
- Line B
- Line C
- Line D

## Question 5

When you run a project with the code below, you get the following error: “NullReferenceException: Object reference not set to an instance of an object.” What is most likely the problem?

![](https://connect-mediagw.unity.com/h1/20190812/learn/images/fb1fb0c2-0da9-4a59-aced-0d1ecf86298b_Quiz_3.5.png)

_Select only one_

- The Player object does not have a collider
- The Enemy object does not have a Rigidbody component
- The “Start” method should actually be “Update”
- There is no object named “Player” in the scene

## Question 6

Which of the following conditions properly tests that the game is NOT over and the player IS on the ground

![](https://connect-mediagw.unity.com/h1/20190812/learn/images/9fa082ae-38c4-4b23-8c4d-9e1bb7a74eef_Quiz_3.6.png)

_Select only one_

- Line A
- Line B
- Line C
- Line D

## Question 7

By default, what will be the first state used by this Animation Controller?

![](https://connect-mediagw.unity.com/h1/20190812/learn/images/31afc4b7-f7d4-45f8-9caa-28fe8941ce1c_Quiz_3.7.png)

_Select only one_

- “Any State”
- “NotCrouched”
- “Death”
- “Crouch_Up”

## Question 8

Which of the following variable declarations observes Unity’s standard naming conventions (especially as it relates to capitalization)?

![](https://connect-mediagw.unity.com/h1/20190812/learn/images/b72cb465-c102-4217-9676-f358e932c6e2_Quiz_3.8.png)

_Select only one_

- 2 and 4
- 3 and 6
- 4 and 5
- 1 and 5

## Question 9

Which of the following is most likely the condition for the transition between “Run” and “Walk” shown below?

![](https://connect-mediagw.unity.com/h1/20190812/learn/images/d17b7f39-f233-4b9d-a2df-ffb385d81fc8_Quiz_3.9A.png)

![](https://connect-mediagw.unity.com/h1/20190812/learn/images/b19d7d29-1f09-44d7-b3d7-6aaa88061166_Quiz_3.9B.png)

_Select only one_

- Jump_b is true
- Speed_f is Less than 0.5
- Speed_f is Greater than 0.5
- Animation_int is Less than 10

## Question 10

Which of the following do you think makes the most sense for a simple movement state machine?

**Image A.**

![](https://connect-mediagw.unity.com/h1/20190812/learn/images/1f35dd22-e16e-42bb-8446-f907409c8514_Quiz_3.10A.png)

**Image B.**

![](https://connect-mediagw.unity.com/h1/20190812/learn/images/2791b699-102b-4dae-996a-46cfa23d4f30_Quiz_3.10B.png)

**Image C.**

![](https://connect-mediagw.unity.com/h1/20190812/learn/images/15e70191-80f6-48f4-90d0-2d8cf99f2e08_Quiz_3.10C.png)

_Select only one_

- Image A
- Image B
- Image C
