Lesson 2 - Using Data Flashcards
Constant
Value can’t be changed while program is running
Literal constant
Value taken literally at each use
Numeric constant
Opposite of character/string constant
Unnamed constant
No identifier associated with it
Variable
Named meme pry location that can store a value
Can hold only one value at a time
Data type
Describes the type of data that can be stored, how much memory it occupies, and what types of operations can be performed on the data.
Primitive type
Simple data type
Uncomplicated
Reference types
Hold memory addresses
Built from primitive types of data
Variable declaration
Statement that reserves a named memory location and includes
A data type that identifies the type of data that the variable will store
And identifier that is the variables name
An optional assignment operator and assigned value
A semicolon
Strongly typed language
A language in which each variable has a well defined data type that limits the operations you can perform on it
Camel casing
Beginning something with identifier and having subsequent words capitalized
Ex.
initialValue
Assignment operator
=
Initialization
An assignment made when a variable is declared
Assignment
Assignment made to variable after initial initialization
Associativity
The order in which values are used with operators
Ivalue
An item that can appear on left side of value
rvalue
An item that can appear on right side of value
Uninitialized variable
Declaring a variable within method but not assigning value to it
Ex.
int Age;
Instead of
int Age=25;
Garbage value
An unknown value in an uninitialized variable
Named constant
Also known as symbolic constant
A variable whose content does not change
The data type is final
An ply be assigned once and cannot be changed
Identifiers are all uppercase, with underscores separating words
Blank final
Named constant that is not initialized
Magic number
A value that does not have an immediate intuitive meaning or a number that cannot be explained without additional knowledge
Scope
Area in which a satay type is visible to the program and can be referred back to
Block of code
Code between curly braces
null
empty
integer
whole number without decimals, int is its data type
lossy conversion
a conversion in which data is lost
boolean variable
a variable that can only hold two values: true or false
relation operator
compares two items, also known as comparison operator
less than
>
greater than
==
Equal to
<=
less than or equal to
> =
greater than or equal to
!=
not equal to
null
empty
integer
whole number without decimals, int is its data type
lossy conversion
a conversion in which data is lost
boolean variable
a variable that can only hold two values: true or false
relation operator
compares two items, also known as comparison operator
less than
>
greater than
==
Equal to
<=
less than or equal to
> =
greater than or equal to
!=
not equal to