Search Header Logo

Lesson 04 Number Wizard UI

Authored by Thomas Maher

Computers

9th - 12th Grade

Used 15+ times

Lesson 04 Number Wizard UI
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

When using Random.Range(min, max) where min is an integer of 1 and max is an integer of 5, what are are the possible values we can return?

1, 2, 3, 4

0, 1, 2, 3, 4

0, 1, 2, 3, 4, 5

1, 2, 3, 4, 5

2.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

When creating standalone PC/Mac builds it's always good manners to provide players with an easily accessible way to quit the game.

True

False

3.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Using "Application.Quit() pretty much does nothing when used in the editor.

True

False

4.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Application.Quit() always needs to be connected to a button and this is done using a public method.

True

False

5.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

The following function call will return random values in what range?int result = Random.Range(0, 7);

1, 2, 3, 4, 5, 6

0, 1, 2, 3, 4, 5, 6

1, 2, 3, 4, 5, 6, 7

1 or 7 only

6.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

When using Random.Range() with integers, min is inclusive and max is exclusive.

True

False

7.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

When displaying our guess to the player, why do we need to use ToString() and not just display our integer as it is?

To avoid the issue where our number has too many decimal places to display within our text box.

Because we are presenting both words and numbers in our guess box and need a way to combine those values.

We are using a text field so we can make our guess font look pretty, and our text field requires data as a string.

So that we can confuse the player, keep them guessing.

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?