Unity gMetrix Module 9
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
A programmer set up a UI button and added a GameObject with the following code to the On Click event: private void LoadGame () { Debug.Log("Load game code here ... "); } The goal is to call LoadGame when the button is pressed, but the method is not showing on the functions dropdown button.
What is causing this issue?
LoadGame will not show if there is only a Debug.Log method inside.
LoadGame should be public in order to be shown on the dropdown.
SceneManagement namespace is not added to the script.
Ul buttons can't be used to load other scenes.
Answer explanation
Only public methods can be accessed when using an On Click event.
2.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
The code below is causing an error. What is most likely the cause of the error? private void OnCollisionEnter2D(Collision collision) { }
OnCollisionEnter2D needs to be public to collide with another GameObject.
OnCollisionEnter2D scope can't be empty.
OnCollisionEnter2D only works with a Collision2D type of parameter.
OnCollisionEnter2D should have a Collision return type.
Answer explanation
OnCollisionEnter2D only works with Collision2D type of parameter. When OnCollisionEnter2D gets called, the parameter receives a Collision2D type
3.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
True or False: OnTriggerEnter2D works only if the GameObject with the code inside has either a BoxCollider or a BoxCollider2D component setup.
True
False
Answer explanation
False. OnTriggerEnter2D will work with any 2D type of collider.
4.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Which tool is used to add packages that extend Unity capabilities?
Package Manager
Asset Manager
Download Manager
Package Assistant
Answer explanation
Package manager is used to add functionality to Unity.
5.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
Inside an if statement, there can only be one condition.
True
False
Answer explanation
False. Inside an if statement, there can be more than one condition.
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
ICT as Platform for Change
Quiz
•
11th - 12th Grade
10 questions
emtech
Quiz
•
12th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
8 questions
Basic computer
Quiz
•
9th - 12th Grade
10 questions
Identify the type of keywords
Quiz
•
9th - 12th Grade
10 questions
QUIZ AIJ KELAS XII
Quiz
•
12th Grade
10 questions
U07 D1 Mobile App Design & Implementation
Quiz
•
12th Grade
10 questions
GDPR
Quiz
•
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
