
Understanding Unity 2D Variables and Methods
Authored by Ashley Lilly
Computers
10th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare an integer variable named score in C#?
int score;
integer score;
var score;
score int;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you call a method named `DisplayMessage` that takes a string parameter in C#?
DisplayMessage("Hello World");
DisplayMessage;
DisplayMessage[];
DisplayMessage("Hello World")
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is commonly used to access a component attached to a GameObject in Unity?
GetNode( )
GetComponent<>()
FindComponent()
AccessComponent()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true about public variables in Unity?
They can only be modified in the script.
They can be assigned in the Inspector and accessed by other scripts.
They are not visible in the Inspector.
They do not exist between scenes.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods will destroy a gameObject?
OnDestroy( )
Delete( )
Enable( )
Destroy( )
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does ForceMode2D.Impulsedo when applied to a Rigidbody2D?
Applies a continuous force over time
Prevents any movement
Applies strong, quick force to create a sudden movement
Changes the mass of the Rigidbody
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does Vector2 represent in Unity?
A 3D point in space
A color value
A sound effect
A point or direction in 2D space
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
Algorithms
Quiz
•
7th - 10th Grade
11 questions
What is a computer
Quiz
•
KG - University
10 questions
Fundamentals of Algorithms
Quiz
•
10th Grade
15 questions
Disk Management and Boot Sequence Vocab
Quiz
•
9th - 12th Grade
10 questions
Working with tables
Quiz
•
5th - 12th Grade
11 questions
Cascading Style Sheets
Quiz
•
8th - 12th Grade
15 questions
REVISION-Primary & Secondary Storage
Quiz
•
10th - 11th Grade
15 questions
Chapter 3: Storage devices and media (Part 2):
Quiz
•
10th - 11th 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