WorksheetsQuarter 3 Progress Check Intro to Programming
Total questions: 12
Worksheet time: 6mins
These include: int, bool, float, and string.
Functions
Variables
Logical Operators
Data Types Unique to Unity
These include:
void Start () {
} and
void Update () {
}
Functions
Variables
Logical Operators
Data Types Unique to Unity
These include:
public MyFirstScript myscript;
public BoxCollider mycollider;
because they are unique to me. This can sometimes lead to a Null Reference error.
Functions
Variables
Logical Operators
Data Types that I Created
An example of this would be:
int i = 4;
int j = i * 2;
int k = j – i;
Debug.Log(k);
Make sure to follow PEMDAS!
Functions
Variables
Logical Operators
Data Types that I Created
This uses frames per second to dictate how often items are updated.
Inputs
Time
Vector3
Conditionals
This is dependent on if a statement is true or false. It only runs if specific criteria are met.
Inputs
Time
Vector3
Conditionals
This is a representation of 3D points and positions.
Inputs
Time
Vector3
Conditionals
An example of this would be pressing "s" to move down and "w" to move up. "s" and "w" are these.
Inputs
Time
Vector3
Conditionals
Variable Quiz - what type of variable is this?
..... lifecount = 1;
Integer
Float
Boolean
String
Variable Quiz - what type of variable is this?
..... isRunning = true;
Integer
Float
Boolean
String
Variable Quiz - what type of variable is this?
..... speed = 2.5f;
Integer
Float
Boolean
String
Variable Quiz - what type of variable is this?
..... myName = "Michael";
Integer
Float
Boolean
String
