Unity Programming Certification

Unity Programming Certification

12th Grade

23 Qs

quiz-placeholder

Similar activities

Django-quiz

Django-quiz

5th Grade - University

20 Qs

Sun lit

Sun lit

1st Grade - University

20 Qs

QUIZ 3 SAM

QUIZ 3 SAM

12th Grade

20 Qs

Fundamentos de Mecatrónica

Fundamentos de Mecatrónica

9th - 12th Grade

20 Qs

Socket in Java

Socket in Java

12th Grade

18 Qs

Arduino_Quiz

Arduino_Quiz

12th Grade

20 Qs

Computer parts

Computer parts

1st - 12th Grade

20 Qs

History of the computer

History of the computer

12th Grade

20 Qs

Unity Programming Certification

Unity Programming Certification

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Raymundo Martinez

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

23 questions

Show all answers

1.

DROPDOWN QUESTION

1 min • 1 pt

Media Image

An error is being thrown when setting the velocity of the RigidBody2D in the Update() method.

The error produced states the following: CS1955 C# Non-invocable member 'Vector2' cannot be used like a method.

Select the appropriate options in the dropdown menus that would fix the error.

​ (a)  

Choose One
new
void
() =>

Answer explanation

When using a Vector2 object, you must instantiate it using the "new" kekyword

2.

DROPDOWN QUESTION

1 min • 1 pt

Media Image

You want to be able to call the actionBtPressed() method from your player object. What is the appropriate access modifier and return type that the method should have? Select the appropriate option from the dropdown menu.​ (a)  

Choose One...
void
public
virtual
private
accessible

Answer explanation

The access modifier needed for the actionBtPressed() method is public.

3.

DROPDOWN QUESTION

1 min • 1 pt

Media Image

Based on the API definition, select the correct implementation of the AddForce() function from the dropdown menu.

Rigidbody.AddForce

public void AddForce(float x, float y, float z, ForceMode mode = ForceMode.Force);

Parameters:

∎x Size of force along the world x-axis.

∎y Size of force along the world y-axis.

∎z Size of force along the world z-axis.

∎mode Type of force to apply.

Description:

Adds a force to the Rigidbody.

Force is applied continuously along the direction of the x,y, and z vectors. Specifying the ForceMode mode allows the type of force to be changed to an Acceleration, Impuls, or Velocity Change.

Force can be applied only to an active Rigidbody. If a GameObject is inactive, AddForce has no effect.

By default, the Rigidbody's state is set to awake once a force is applied unless the force is Vector3.zero.​ ​ (a)  

Choose One...
AddForce(0, 0, thrust, ForceMode.Impulse);
AddForce("0", "0", thrust, ForceMode.Impulse);
AddForce(0, 0, ForceMode.Impulse);

4.

LABELLING QUESTION

1 min • 1 pt

Your current task is to create a script that will start an attack animation and instantiate a projectile when the play presses a button on the keyboard. Drag the appropriate code snippets to the correct place in the code block.

a
b
c

Input.GetKeyDown(KeyCode.Space)

anim.SetBool("ThrowSpear", true);

Input.GetMouseButtonDown(0)

Instantiate(spear, projectileStartPos.t)

anim.Trigger("Walk");

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Input.GetMouseButton(0) returns true if the left mouse button is held down.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Input.GetMouseButtonDown(1) returns true if the middle mouse button was pressed.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Input.GetMouseButtonUp(2) returns true if the right button was released.

True

False

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?