Unity Programming Certification

Quiz
•
Computers
•
12th Grade
•
Hard
Raymundo Martinez
Used 3+ times
FREE Resource
23 questions
Show all answers
1.
DROPDOWN QUESTION
1 min • 1 pt
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)
Answer explanation
When using a Vector2 object, you must instantiate it using the "new" kekyword
2.
DROPDOWN QUESTION
1 min • 1 pt
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)
Answer explanation
The access modifier needed for the actionBtPressed() method is public.
3.
DROPDOWN QUESTION
1 min • 1 pt
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)
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.
anim.SetBool("ThrowSpear", true);
Instantiate(spear, projectileStartPos.t)
Input.GetMouseButtonDown(0)
anim.Trigger("Walk");
Input.GetKeyDown(KeyCode.Space)
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
Similar Resources on Wayground
22 questions
Gears and Robotics Quiz

Quiz
•
9th Grade - University
20 questions
Unit CC LO1

Quiz
•
12th Grade
20 questions
Quis Sistem Keamanan Jaringan

Quiz
•
12th Grade
21 questions
Rob 2 Sem. 1 Study Guide

Quiz
•
9th Grade - University
20 questions
MTA: 98-367 Security Part 1

Quiz
•
KG - Professional Dev...
20 questions
Databases

Quiz
•
12th Grade - University
25 questions
3DS Max Capstone Vocabulary

Quiz
•
9th - 12th Grade
18 questions
Unity Pro M1Y4

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade