Unity gMetrix Module 10

Unity gMetrix Module 10

12th Grade

5 Qs

quiz-placeholder

Similar activities

Referencias en Word

Referencias en Word

12th Grade

10 Qs

Pemrograman Dasar Kelas X TKJ Smt 2

Pemrograman Dasar Kelas X TKJ Smt 2

12th Grade - University

10 Qs

Los periféricos del computador

Los periféricos del computador

1st Grade - Professional Development

9 Qs

BTEC Level 3 Nat Ext Dip in Computing - Unit 2.1 Hardware and Software

BTEC Level 3 Nat Ext Dip in Computing - Unit 2.1 Hardware and Software

11th - 12th Grade

10 Qs

Bài 6_Lớp 11_Tại lớp

Bài 6_Lớp 11_Tại lớp

12th Grade

10 Qs

Internet seguro

Internet seguro

8th Grade - University

10 Qs

Сpp 1_3

Сpp 1_3

9th - 12th Grade

10 Qs

Unity gMetrix Module 10

Unity gMetrix Module 10

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

10 mins • 1 pt

Your game's main character just picked up an item that increases health, but your character is already on the maximum health possible. The following code will prevent your character's health from going above the maximum health. if(currentHealth >= maxHealth){ currentHealth++; }

True

False

Answer explanation

False. The code will not work because the condition is using a greater than operator instead of a less than operator.


2.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Which operator is used a lot in C# to access methods and attributes inside a class or inside an instance of a class?

Assignment operator

Cross operator

Access operator

Dot operator

Answer explanation

Dot operator is used to access a member inside a class or an instance of that class.

3.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

A programmer is creating a player at runtime and wants to store the resulting instance into a variable using the following code: player = Instantiate(playerPrefab); Which is the correct data type the player variable should have?

Rigidbody

GameObject

Transform

Prefab

Answer explanation

The Instantiate method returns an object that can be stored into a GameObject type of variable.


4.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

A UI element anchored to the center of the parent will maintain a fixed offset to the center.

True

False

Answer explanation

True: Anchors will keep the offset relative to the selected location.

5.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

When a Button is added to a Canvas, the On Click event is available in the Inspector. To add a method to this event, what type of access modifier must the method use?

Private

SerializeField

Public

Protected

Answer explanation

To add a method to an On Click event, a public access modifier is needed.


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?