Unity gMetrix Module 10
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
Raymundo Martinez
Used 1+ times
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Your game's main character just picked up an item that increases health, but your character is already on the maximum health possible. The following code will prevent your character's health from going above the maximum health. if(currentHealth >= maxHealth){ currentHealth++; }
True
False
Answer explanation
False. The code will not work because the condition is using a greater than operator instead of a less than operator.
2.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Which operator is used a lot in C# to access methods and attributes inside a class or inside an instance of a class?
Assignment operator
Cross operator
Access operator
Dot operator
Answer explanation
Dot operator is used to access a member inside a class or an instance of that class.
3.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
A programmer is creating a player at runtime and wants to store the resulting instance into a variable using the following code: player = Instantiate(playerPrefab); Which is the correct data type the player variable should have?
Rigidbody
GameObject
Transform
Prefab
Answer explanation
The Instantiate method returns an object that can be stored into a GameObject type of variable.
4.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
A UI element anchored to the center of the parent will maintain a fixed offset to the center.
True
False
Answer explanation
True: Anchors will keep the offset relative to the selected location.
5.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
When a Button is added to a Canvas, the On Click event is available in the Inspector. To add a method to this event, what type of access modifier must the method use?
Private
SerializeField
Public
Protected
Answer explanation
To add a method to an On Click event, a public access modifier is needed.
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
Excel
Quiz
•
11th - 12th Grade
10 questions
Intro to Windows Server 2012
Quiz
•
12th Grade
10 questions
Arduino
Quiz
•
7th - 12th Grade
10 questions
Sistema Operativo
Quiz
•
1st - 12th Grade
10 questions
Câu hỏi về thiết bị máy tính
Quiz
•
7th Grade - University
10 questions
Microsoft Word 3ºB
Quiz
•
12th Grade
10 questions
HT3.2- Validation and Reliability
Quiz
•
8th Grade - University
10 questions
XÂU KÍ TỰ
Quiz
•
9th - 12th 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
