Worksheets09_Minesweeper
Total questions: 10
Worksheet time: 5mins
Which line of code gives a 15% probability that an element is a mine?
Random.Range (1, 15);
Random.value < 0.15%;
Random.value < 0.15;
Random.value < 15%;
public Sprite[] emptyTextures; is a/an ______.
Texture
String
Array
GameObject
Using the given code, On what line would you add the code to make the scene change if the player lost?
18
26
42
46
Using the given code, On what line would you add the code to make the scene change if the player won?
18
26
42
46
Using the given code, Line 22 is referencing what?
The Grid you created in the game scene
The Game Scene called Grid
A function previously created in the Element Script
The function uncoverMines in the Grid script
On Line 33 of the given code, the variable "x" can be used throughout the script.
True
False
In the given code, if "mine" is true, which lines of code will run?
Lines 21 - 46
Lines 21 - 26
Lines 32 - 42
Choose the correct answer that correctly declares a function. (Unity and C# has a specific naming convention)
void Drive()
Void Drive()
void _Drive()
void _drive()
Choose the correct answer that correctly declares the int variable. (Unity and C# has a specific naming convention)
Integer myInt
int myInt;
int MyInt
int My_int
Method parameters are enclosed in parentheses and are separated by colons.
True
False
