Variables Flashcards

(24 cards)

1
Q

alphanumeric values

A

characters that include both letters (A–Z) and numbers (0–9)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

assignment operator

A

A symbol used to assign a value to an identifier.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

assignment statement

A

a line of code that assigns a value to a variable (ex. x=5)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

binary operator

A

an operator that receives two operands (ex. + - / *)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

camel casing

A

a naming convention where the first letter is lowercase and each subsequent word starts with an uppercase letter, like myVariableName

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

garbage

A

unused or leftover data in memory that the program no longer needs or references

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Hungarian notation

A

a naming convention where the name of a variable starts with a prefix indicating its type, like strName for a string variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

identifier

A

A name you create in code to refer to something

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

initializing a variable

A

assigning an initial value to a variable when it is declared, like int x = 10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

kebob case

A

a naming convention where words are all lowercase and separated by hyphens, like my-variable-name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

keyword (reserved word)

A

a reserved word in a programming language that has a specific meaning and cannot be used as an identifier, like if, while, and class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

lvalue

A

any value that refers to a location in memory. Can be both identifiers and expressions that refer to a location in memory. Typically sits on left of assignment operator.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

mixed case with underscores

A

a naming convention that combines uppercase and lowercase letters with underscores between words, like My_Variable_Name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

numeric constant

A

a fixed number value written directly in the code, like 42 (Is an unnamed constant that is specifically numeric)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

numeric variable

A

a variable that holds a number value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

operand

A

a value or variable on which an operator acts, like 3 and 5 in 3 + 5

17
Q

Pascal casing

A

a naming convention in which each word in the name starts with an uppercase letter, like MyVariableName

18
Q

right-to-left associativity

A

When operators of the same precedence are evaluated from right to left

19
Q

snake casing

A

a naming convention where identifiers are all lowercase and separated by underscores, like my_variable_name

20
Q

string constant

A

Immutable string data. Operations can be applied but string can’t be changed.

21
Q

string variable

A

A variable that refers to a string value. It is stored in writable memory and can be changed

22
Q

type safety

A

ensuring a variable is only used in ways consistent with its data type, preventing type errors. (Regardless of how variable is stored)

23
Q

unnamed constant

A

A fixed value written directly in code without a descriptive name

24
Q

variable

A

a named storage location in memory that can hold different values throughout a program