
BELL RINGER: Unity C# Review 1
Authored by JASON SAMMONS
Computers
10th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
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 “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”)
2.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
In your game, you want to increase the player's health by 10 points when they pick up a health pack. You've written the following line in your script, but it's not working: playerHealth =+ 10;. What is the correct way to write this line?
playerHealth =+ 10;
playerHealth += 10;
playerHealth = 10+;
playerHealth +== 10;
3.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
To create a more dynamic game, you decide to randomly generate the color of an object at the start of the game. Which of the following code snippets correctly changes the object's color to a random color?
gameObject.GetComponent
gameObject.GetComponent
gameObject.GetComponent
gameObject.GetComponent
4.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
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?
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
5.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Which of these is the correct way to get a reference to an AudioSource component on a GameObject?
Select image to expand
Line A
Line B
Line C
Line D
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?
Similar Resources on Wayground
10 questions
Q4 M4 PRETEST
Quiz
•
10th Grade
10 questions
What is a program slides(6:16)
Quiz
•
8th - 12th Grade
10 questions
ExamenHojasdecalculo
Quiz
•
10th Grade
10 questions
𝐂𝐡𝐚𝐩𝐭𝐞𝐫 𝟐—The Blueprints for Modern Computers
Quiz
•
10th Grade
10 questions
Java: repetition control structure for & while
Quiz
•
10th - 12th Grade
10 questions
python quiz
Quiz
•
6th Grade - Professio...
10 questions
Scratch
Quiz
•
KG - Professional Dev...
10 questions
Network Security
Quiz
•
9th - 11th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade