
Understanding Unity 2D Variables and Methods

Quiz
•
Computers
•
10th Grade
•
Easy

Ashley Lilly
Used 6+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Unity

Quiz
•
10th Grade
10 questions
Crash Course Computer Science #8 - Instructions & Programs

Quiz
•
9th - 12th Grade
12 questions
Guess the Gaming Food 1

Quiz
•
KG - Professional Dev...
15 questions
3.6 - Cyber Security

Quiz
•
10th Grade
10 questions
Keyboard Shortcuts

Quiz
•
10th Grade
10 questions
Q&A – Decomposition & Sub-Routines (Primary 4 – 4CT.06)

Quiz
•
4th Grade - University
6 questions
Lesson 16 Keyboard Input Exit Ticket

Quiz
•
10th Grade
7 questions
L3 - Script Kiddies

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade