
Unity gMetrix module 7
Authored by Raymundo Martinez
Computers
12th 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
5 mins • 1 pt
Consider the following code: void Start() { for (int i = 0; i < 10; i++) { if (i < 5) { Debug.Log("X"); } else { Debug.Log("Y"); } } } How many times will the characters X and Y be printed to the Console?
5 X's and 5 Y's
0 X's and 10 Y's
4 X's and 6 Y's
6 X's and 4 Y's
Answer explanation
5 X's and 5 Y's will happen since you need to consider index 0 in the if statement condition.
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What are the possible numbers that can be stored in the rnd variable? int rnd = Random.Range(1, 3);
0, 1, 2
1, 2, 3
2, 3
1, 2
Answer explanation
Only 1 and 2 are possibilities since Random.Range is exclusive when working with integers, so it will ignore the highest value.
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
True or False: The following array variable is properly declared. [SerializeField] Transform target[];
True
False
Answer explanation
False. The proper way is to add brackets to the type and not the name of the variable.
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Consider the following image:
The game is running, and the character is currently playing the Run animation state and increases the speed to 1.5. The user then presses the jump button and the JumpIsPressed parameter becomes true. Which animation state will be played on the following frame?
Entry
LongJump
Idle
Run
Answer explanation
Since one of the conditions is that xSpeed should be greater than 1.5 to transition into the LongJump animation state and the speed is exactly 1.5, the animation will
remain in the Run animation state.
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
When working with a raycast, you can get information from an object you hit with a ray. What type of variable can be used to store this data?
Hit
Physics
RaycastInfo
Answer explanation
Raycast information can be extracted and stored in a RaycastHit type of variable.
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
Using and Maintaining Hand Tools- TLE CSS
Quiz
•
12th Grade
10 questions
Численные методы
Quiz
•
12th Grade
10 questions
DATA STRUCTURES
Quiz
•
12th Grade
10 questions
paquetes contables lección 1
Quiz
•
11th Grade - Professi...
10 questions
Treasure Hunt
Quiz
•
12th Grade
10 questions
Sistema Binario
Quiz
•
1st Grade - University
10 questions
Initial Assessment - Cybersecurity Awareness
Quiz
•
9th Grade - Professio...
10 questions
Greetings
Quiz
•
1st Grade - University
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