1/23
Vocabulary flashcards covering C# variables, data types, operators, and Unity concepts from the study guide.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Variable
A named place to keep a value of a declared type.
Declaration
Creating a variable with a type and name.
Initialization
Giving a variable its first value.
Assignment
Storing a new value in a variable later using the equals sign, which replaces the old value.
Identifier
The name given to something in code; may use letters, digits, and underscores, but cannot start with a digit.
camelCase
A naming convention where the first word is lowercase and each later word is capitalized, used for values.
Type
The kind of value a variable can hold.
int
A data type that holds whole numbers and counts, such as 12.
float
A data type that holds decimals, times, and prices, written with an f suffix such as 3.75f.
string
A data type that holds text inside double quotes, such as "Ready".
bool
A data type that holds true or false.
Literal
A value typed directly into code, like 12 or "Hi".
Float suffix (f)
The f appended to a literal that marks it as a float value.
Type mismatch
A compile error caused by assigning a value that does not fit the declared type.
Modulo (%)
An arithmetic operator that gives the remainder of integer division.
Operator precedence
The order operators resolve in: Parentheses first, then multiplication (*), division (/), and modulo (%), then addition (+) and subtraction (-).
Integer division
Division where an int is divided by an int, causing the remainder to be thrown away.
String concatenation
Joining text together using the + operator once a string is on the left side of the expression.
Implicit conversion
A safe conversion that C# performs automatically on its own, like converting an int into a float.
Explicit conversion
A conversion that must be written out explicitly in code, such as using (int) to convert a float into an int.
Truncation
Cutting off the decimal part of a number without rounding.
Compound assignment
A short way to change a variable using its own value, such as +=, -=, *=, or /=.
Public field
A variable declared in the class outside Start() that appears in the Inspector, allowing editing without touching code.
Start()
The section in a MonoBehaviour script that runs once when the scene begins.