Lesson 1.2: Variables

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

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:55 AM on 12/9/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

24 Terms

1
New cards

alphanumeric values

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

2
New cards

assignment operator

A symbol used to assign a value to a variable, typically =.

3
New cards

assignment statement

A line of code that assigns a value to a variable, like x = 5.

4
New cards

binary operator

An operator that takes two operands, such as +, -, *, and /.

5
New cards

camel casing

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

6
New cards

garbage

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

7
New cards

Hungarian notation

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

8
New cards

identifier

A name given to a variable, function, or other item in code to identify it.

9
New cards

initializing a variable

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

10
New cards

kebob case

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

11
New cards

keyword (reserved word)

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

12
New cards

lvalue

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

13
New cards

mixed case with underscores

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

14
New cards

numeric constant

A fixed number value written directly in the code, like 42.

15
New cards

numeric variable

A variable that holds a number value.

16
New cards

operand

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

17
New cards

Pascal casing

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

18
New cards

right-to-left associativity

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

19
New cards

snake casing

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

20
New cards

string constant

A fixed sequence of characters written directly in the code, like 'Hello, World!'.

21
New cards

string variable

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

22
New cards

type safety

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

23
New cards

unnamed constant

A fixed value used directly in code without assigning it to a variable, also known as a magic number, like 3.14 for π.

24
New cards

variable

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