Understanding Unity 2D Variables and Methods

Understanding Unity 2D Variables and Methods

10th Grade

10 Qs

quiz-placeholder

Similar activities

Java Strings

Java Strings

9th - 12th Grade

12 Qs

A little of everything

A little of everything

KG - Professional Development

8 Qs

Parts of the Computer (Easy)

Parts of the Computer (Easy)

7th Grade - University

12 Qs

Week 11 Networks and Routing

Week 11 Networks and Routing

10th Grade - Professional Development

15 Qs

Computer Science

Computer Science

3rd - 12th Grade

12 Qs

Alice 2 - Chapter 3

Alice 2 - Chapter 3

7th - 12th Grade

10 Qs

Q&A – Predicting Outcomes of Repetition (Primary 4 – 4CT.05)

Q&A – Predicting Outcomes of Repetition (Primary 4 – 4CT.05)

4th Grade - University

10 Qs

Taylor Chess Quiz

Taylor Chess Quiz

4th - 12th Grade

14 Qs

Understanding Unity 2D Variables and Methods

Understanding Unity 2D Variables and Methods

Assessment

Quiz

Computers

10th Grade

Easy

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?