Search Header Logo

C sharp 2024

Authored by Michael Hippo

Other

12th Grade

Used 30+ times

C sharp 2024
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

57 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'GetComponent<T>()' method do in Unity?

It adds a new component of type T to the game object.

It finds and returns the first active loaded object of Type T.

It returns the component of Type T if the game object has one attached, null if it doesn't.

It deletes the component of Type T from the game object.

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt


When you Edit a Prefab Instance, the Inspector window provides options for working with the Prefab Asset and applying overrides.

t

f

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which parameter is for the animator function shown: ("Animation");

SetBool

SetFloat

SetInt

SetTrigger

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

vChoose the best comment for this code:

Adds things to a new list

Adds t to a list

Adds a single object

Adds objects to a new list for each object in "myList"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write code that states: if coins equal 100 or 150 give an extra life. (Hint: need to know symbol for "or" and "equals".

if (coins == 100 || coins == 150) { lives += 1; }

if (coins = 100 % coins = 150) { lives += 1; }

if (coins AND 100 OR coins AND 150) { lives += 1; }

if (coins += 100 | coins += 150) { lives += 1; }

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Input.GetMouseButtonDown(1)

Returns true if the left mouse button was pressed.

Returns true if the middle mouse button was pressed.

Returns true if the right mouse button was pressed.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which checkbox tells Unity an object will be stationary?

Move Tool

Static

Grid Snapping

Rigidbody Component

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?