
Prototype 4
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Neil Boyle
Used 15+ times
FREE Resource
Enhance your content in a minute
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
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
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
10 questions
Basic Parts of Speech EPS
Quiz
•
9th - 10th Grade
10 questions
COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)
Quiz
•
11th - 12th Grade
9 questions
OCR GCSE CS - 2.1 ERL sorts and searches
Quiz
•
10th - 11th Grade
10 questions
Quiz 5 - Excel
Quiz
•
11th Grade
15 questions
# REVIEW 1 DATA TYPES
Quiz
•
10th Grade
11 questions
Threats to Data
Quiz
•
9th - 12th Grade
11 questions
HEALTH AND SAFETY 9
Quiz
•
7th - 9th Grade
Popular Resources on Wayground
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
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
