Prototype 4

Prototype 4

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Threats to Data

Threats to Data

9th - 12th Grade

11 Qs

HEALTH AND SAFETY 9

HEALTH AND SAFETY 9

7th - 9th Grade

11 Qs

Chapter 7: System life cycle

Chapter 7: System life cycle

9th - 11th Grade

15 Qs

IT- Revision

IT- Revision

9th Grade

10 Qs

OCR GCSE CS - 2.1 ERL sorts and searches

OCR GCSE CS - 2.1 ERL sorts and searches

10th - 11th Grade

9 Qs

MEDIA AND INFORMATION LITERACY

MEDIA AND INFORMATION LITERACY

12th Grade

10 Qs

Review for Midterm Test ICT 3

Review for Midterm Test ICT 3

1st - 11th Grade

15 Qs

To Change or Not to Change?

To Change or Not to Change?

12th Grade

10 Qs

Prototype 4

Prototype 4

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Neil Boyle

Used 15+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?