Variables, Types & Operators Flashcards

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/23

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering C# variables, data types, operators, and Unity concepts from the study guide.

Last updated 12:17 PM on 10/5/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

24 Terms

1
New cards

Variable

A named place to keep a value of a declared type.

2
New cards

Declaration

Creating a variable with a type and name.

3
New cards

Initialization

Giving a variable its first value.

4
New cards

Assignment

Storing a new value in a variable later using the equals sign, which replaces the old value.

5
New cards

Identifier

The name given to something in code; may use letters, digits, and underscores, but cannot start with a digit.

6
New cards

camelCase

A naming convention where the first word is lowercase and each later word is capitalized, used for values.

7
New cards

Type

The kind of value a variable can hold.

8
New cards

int

A data type that holds whole numbers and counts, such as 1212.

9
New cards

float

A data type that holds decimals, times, and prices, written with an f suffix such as 3.75f3.75f.

10
New cards

string

A data type that holds text inside double quotes, such as "Ready".

11
New cards

bool

A data type that holds true or false.

12
New cards

Literal

A value typed directly into code, like 1212 or "Hi".

13
New cards

Float suffix (f)

The f appended to a literal that marks it as a float value.

14
New cards

Type mismatch

A compile error caused by assigning a value that does not fit the declared type.

15
New cards

Modulo (%)

An arithmetic operator that gives the remainder of integer division.

16
New cards

Operator precedence

The order operators resolve in: Parentheses first, then multiplication (*), division (/), and modulo (%), then addition (+) and subtraction (-).

17
New cards

Integer division

Division where an int is divided by an int, causing the remainder to be thrown away.

18
New cards

String concatenation

Joining text together using the + operator once a string is on the left side of the expression.

19
New cards

Implicit conversion

A safe conversion that C# performs automatically on its own, like converting an int into a float.

20
New cards

Explicit conversion

A conversion that must be written out explicitly in code, such as using (int) to convert a float into an int.

21
New cards

Truncation

Cutting off the decimal part of a number without rounding.

22
New cards

Compound assignment

A short way to change a variable using its own value, such as +=, -=, *=, or /=.

23
New cards

Public field

A variable declared in the class outside Start() that appears in the Inspector, allowing editing without touching code.

24
New cards

Start()

The section in a MonoBehaviour script that runs once when the scene begins.