Variables Flashcards

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 a variable, typically =

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, like 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 takes two operands, such as +, -, *, and /

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 given to a variable, function, or other item in code to identify it

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

an expression that refers to a memory location, which can appear on the left side of an assignment, like x in x =5

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

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 numeric 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

the order in which operations are performed in expressions where operators of the same precedence appear, processed from right to left

19
Q

snake casing

A

a naming convention in which words are all lowercase and separated by underscores, like my_variable_name

20
Q

string constant

A

a fixed sequence of characters written directly in the code, like “Hello, World!”

21
Q

string variable

A

a variable that holds a sequence of characters (a string)

22
Q

type safety

A

ensuring a variable is only used in ways consistent with its data type, preventing type errors

23
Q

unnamed constant

A

a fixed value used directly in code without assigning it to a variable, also known as a magic number like 3.14 or pi

24
Q

variable

A

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