Prototype 4

Prototype 4

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Program Development - Python: Errors

Program Development - Python: Errors

8th - 10th Grade

13 Qs

Create with Code Prototype 2 Quiz

Create with Code Prototype 2 Quiz

9th - 12th Grade

10 Qs

Unity Game Mechanics

Unity Game Mechanics

10th - 12th Grade

15 Qs

Unity

Unity

10th - 12th Grade

15 Qs

Unity Game Design

Unity Game Design

10th - 12th Grade

15 Qs

Unity Game

Unity Game

10th - 12th Grade

15 Qs

Unity Gaming

Unity Gaming

10th - 12th Grade

15 Qs

Introduction to Unity Meetup 6

Introduction to Unity Meetup 6

1st Grade - Professional Development

15 Qs

Prototype 4

Prototype 4

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Neil Boyle

Used 10+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

You’re trying to write some code that creates a random age between 1 and 100 and prints that age, but there is an error. What would fix the error?

Add a new line after line 8 that says “return age;”

On line 7, change the word “private” to “void”

Add the word “int” to line 8, so it says “int age = …”

Change line 1 to “private float age”

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The following message was displayed in the console: “Monica has 20 dollars”.

Which of the line options in the PrintNames function produced it?

Option A

Option B

Option c

Option D

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

he code below produces “error CS0029: Cannot implicitly convert type 'float' to 'UnityEngine.Vector3'”. Which of the following would remove the error?

On line 1, change “Vector3” to “float”

On line 3, change “=” to “+”

Either A or BNone of the above

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following follows Unity’s naming conventions (especially as it relates to capitalization)?

Line A

Line B

Line C

Line D

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

You are trying to assign the powerup variable in the inspector, but it is not showing up in the Player Controller component. What is the problem?

You cannot declare a powerup variable in the Player Controller Script

You cannot assign GameObject type variables in the inspector

The powerup variable should be public instead of private

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Your game has just started and you see the error, “UnassignedReferenceException: The variable playerIndicator of PlayerController has not been assigned.” What is likely the solution to the problem?

PlayerController variable in the playerIndicator script needs to be declared

The playerIndicator variable needs to be made private

The PlayerController script must be assigned to the player object

An object needs to be dragged onto the playerIndicator variable in the inspector

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

You are trying to create a new method that takes a number and multiplies it by two. Which method would do that?

Method A

Method B

Method C

Method D

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?