
Prototype 4

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Neil Boyle
Used 10+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You’re trying to write some code that creates a random age between 1 and 100 and prints that age, but there is an error. What would fix the error?
Add a new line after line 8 that says “return age;”
On line 7, change the word “private” to “void”
Add the word “int” to line 8, so it says “int age = …”
Change line 1 to “private float age”
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following message was displayed in the console: “Monica has 20 dollars”.
Which of the line options in the PrintNames function produced it?
Option A
Option B
Option c
Option D
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
he code below produces “error CS0029: Cannot implicitly convert type 'float' to 'UnityEngine.Vector3'”. Which of the following would remove the error?
On line 1, change “Vector3” to “float”
On line 3, change “=” to “+”
Either A or BNone of the above
None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following follows Unity’s naming conventions (especially as it relates to capitalization)?
Line A
Line B
Line C
Line D
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are trying to assign the powerup variable in the inspector, but it is not showing up in the Player Controller component. What is the problem?
You cannot declare a powerup variable in the Player Controller Script
You cannot assign GameObject type variables in the inspector
The powerup variable should be public instead of private
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Your game has just started and you see the error, “UnassignedReferenceException: The variable playerIndicator of PlayerController has not been assigned.” What is likely the solution to the problem?
PlayerController variable in the playerIndicator script needs to be declared
The playerIndicator variable needs to be made private
The PlayerController script must be assigned to the player object
An object needs to be dragged onto the playerIndicator variable in the inspector
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are trying to create a new method that takes a number and multiplies it by two. Which method would do that?
Method A
Method B
Method C
Method D
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Youtube

Quiz
•
4th Grade - University
5 questions
Unity_М2У3_1

Quiz
•
11th Grade
13 questions
GDSC DEU & POG Unity Quiz

Quiz
•
9th - 12th Grade
10 questions
Breakthrough!

Quiz
•
12th Grade
10 questions
Microsoft Windows

Quiz
•
4th Grade - University
10 questions
Past Technology

Quiz
•
KG - Professional Dev...
10 questions
GADV 03 - Scripting

Quiz
•
9th - 12th Grade
15 questions
Python Basics Quiz

Quiz
•
6th - 10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade