Search Header Logo

Create with Code - Unit 1 review

Authored by Kelly Herbert

Computers

9th - 12th Grade

Create with Code - Unit 1 review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Which Unity window contains a list of all the game objects currently in your scene?

Scene View

Project window

Hierarchy

Inspector

Answer explanation

The Hierarchy window contains a list of every GameObject in the current

Scene. As objects are added and removed in the Scene, they will appear and

disappear from the Hierarchy as well.

2.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

True or False: Visual Studio is not a part of Unity. You could use a different code editor to edit your C# scripts if you wanted to.

True

False

Answer explanation

True. Visual Studio is just one of many editors you could use to edit your

code, including editors like Atom, Sublime, or even a basic Text Editor.

3.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Media Image

What best describes the difference between the below images, where the car is in the second image is further along the road?

The second car’s X location value is higher than the first car’s

The second car’s Y location value is higher than the first car’s

The second car’s Z location value is higher than the first car’s

The second car’s Transform value is higher than the first car’s.

Answer explanation

You can tell which axis the car has moved along using the XYZ directional gizmo in the top-right, which shows the blue axis pointing forwards down the road.

4.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Media Image

In what order do you put the words when you are

declaring a new variable?

[data type] [access modifier]

[variable value] [variable name]

[access modifier] [data type]

[variable name] [variable value]

[data type] [access modifier]

[variable name] [variable value]

[variable name] [data type]

[access modifier] [variable value]

Answer explanation

Variables are always declared in the order:

[access modifier] - public, private, etc

[data type] - float, int, GameObject, etc

[variable name] - speed, turnSpeed, player, offset, etc

[variable value] - 1.0f, 2, new Vector3(0, 1, 0), etc

5.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Media Image

Which of the following variables would be visible in the Inspector?

speed

turnSpeed

speed & turnSpeed

horizontalInput & forwardInput

Answer explanation

“public float speed” would be visible because it has the “public” modifier

applied to it

6.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Media Image

What is a possible value for the horizontalInput variable?

-10

0.52

"Right"

Vector3.Up

Answer explanation

Input.GetAxis returns a float value between -1 and 1, which means 0.52 is a

possible value

7.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Media Image

What is true about the following two lines of code?

They will both move an object

the same distance

They will both move an object

in the same direction

They will both move an object

along the same axis

They will both rotate an object,

but along different axes

Answer explanation

Vector3.forward is the equivalent of (0, 0, 1), which has the same magnitude as (1, 0, 0), even though they’re in different directions, so they would both move an object the same distance, but along different axes

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?