Unit 1 lesson 1.2 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 a variable, typically =

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

Assignment Statment

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

Ivalue

A

An expression that refers to a memory location, whice 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 number value

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

Operand

A

A value or varaible 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 operators 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 alllowercase 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

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 for pie

24
Q

Variable

A

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