Unity gMetrix Module 11

Unity gMetrix Module 11

12th Grade

5 Qs

quiz-placeholder

Similar activities

ukuran data

ukuran data

1st - 12th Grade

10 Qs

Scratch_SM

Scratch_SM

10th - 12th Grade

10 Qs

java script

java script

12th Grade

10 Qs

Kuis Search Engine

Kuis Search Engine

12th Grade

10 Qs

kiểm tra 15p - lần 1 - HKII - khối 10

kiểm tra 15p - lần 1 - HKII - khối 10

9th - 12th Grade

10 Qs

delet11

delet11

10th - 12th Grade

10 Qs

Kemahiran Komputer

Kemahiran Komputer

6th Grade - Professional Development

10 Qs

Computer Basics 2 - CESA

Computer Basics 2 - CESA

7th Grade - University

10 Qs

Unity gMetrix Module 11

Unity gMetrix Module 11

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Raymundo Martinez

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following code: public class Employee : MonoBehaviour{ public int employeeId = 10; public int employeeAge = 35; public int GetEmployeeId(){ return 10; } } If you want to access the employeeId value from another script on the same GameObject, which is the proper way to do it?

GetComponent<Employee>(.employeeld = 5;

GetComponent<MonoBehaviour>().Employeeld = 5;

gameObject.Employee.Employeeld = 5;

Employee.employeeId = 5;

Answer explanation

GetComponent is how you can get a reference of a Component. If the Component is on the same GameObject, you don't need a reference to another GameObject. You

would use GetComponent<Employee>().employeeld = 5; to get the employeeld value.


2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a custom word that can be assigned to a GameObject to create a custom identifier?

Mark

Id

Label

Tag

Answer explanation

Tags are word-based custom identifiers you can add to a GameObject.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When the game starts playing in the editor, the following message is shown in the Console window: "Hello World!". Which of the following lines of code will generate that message if added to the Start method?

Debug.Log("Hello World" + !);

Debug.Log("Hello World" + "!");

Debug.Log(Hello World!)


Debug.Log("HelloWorld" + "!");


Answer explanation

Debug.Log("Hello World" + "!"); is the only line of code that will generate that message.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following components receives input for any given AudioSource in a scene?

Audio Listener

Audio Mixer

Audio Manager

Audio Clip

Answer explanation

Audio Listeners are capable of receiving input from Audio Sources and playing the sound through speakers.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Considering the following image and code, the press of the button will cause currentHealth to increase by one.

Button addHealth;

int currentHealth;


private void Start()

{

addHealth.onClick.AddListener(IncreaseHealth);

}

void IncreaseHealth() {

currentHealth++;

}


True

False

Answer explanation

Button events can be added on the Inspector and also through code.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?