
Prototype 3 Quiz
Authored by Neil Boyle
Computers
11th Grade
Used 29+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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?
The “bool” in the PlayerController class needs a “public” access modifier
The “p” should be capitalized in “playerController.isAlive”
The if-statement cannot be in the Update method
“isAlive” must start with a capital “I” (“IsAlive”)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Match the following animation methods with its set of parameters
1A, 2B, 3C
1B, 2A, 3C
1A, 2C, 3B
1C, 2A, 3B
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the animation controller / state machine below, which code will make the character transition from the “Idle” state to the “Walk” state?
setInt(“Speed_f”, 1);
setTrigger(“Speed_f”);
setFloat(“Speed_f”, 0.3f);
setFloat(“Speed_f”, 0.1f);
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is the correct way to get a reference to an AudioSource component on a GameObject?
Line B
Line C
Line D
Line A
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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?
There is no object named “Player” in the scene
The “Start” method should actually be “Update”
The Enemy object does not have a Rigidbody component
The Player object does not have a collider
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following conditions properly tests that the game is NOT over and the player IS on the ground
Line A
Line C
Line B
Line D
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
By default, what will be the first state used by this Animation Controller?
“Any State”
“Death”
“NotCrouched”
“Crouch_Up”
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?