Chapter 2 Flashcards
String
Data that consists of nonumeric characters.
Numeric
Data that consists of numbers.
Floating Point (Real Numbers)
Number with decimal places
Numeric Constant (Literal Numeric constant)
A specific numeric value.
String Constant (Literal String Constant)
Specific group of characters enclosed within quotation marks.
Alphanumeric Values
values that contain alphabetic characters, numbers, and punctuation.
Unnamed Constant
A literal numeric or string constant.
Declaration
Statement that provides a data type and an identifier for a variable.
Identifier
The program component’s name.
Data Type
A classification that describes what values can be assigned, how the item is stored, and what types of operations can be performed with the item.
Initializing a Variable
The act of assigning its first value, often at the same time the variable is created.
Garbage
The unknown value stored in an unassigned variable.
Keywords
The limited word set that is reserved in a language.
Camel Casing
A variable-naming convention in which the initial letter in lowercase, multiple-word variable names are run together, and each new word within the variable begins with an uppercase letter.
Pascal Casing
A variable-naming convention in which the initial letter is uppercase, multiple-word variable names run together, and each new word within the variable begins with an uppercase letter.
Hungarian Notation
A variable-naming convention in which a variable’s data type or other information is stored as part of its name.
Assignment Statement
Assigns a value from the right of an assignment operator to the variable or constant on the left of the assignment operator.
Assignment Operator
The equal sign; it is used to assign a value to the variable or constant to the left.
Binary Operator
An operator that requires two operands-one on each side.
Right-Associativity (Right-to-Left Associativity)
Describes operators that evaluate the expression to the right first.
lvalue (left value)
The memory address identifier to the left of an assignment operator.
Numeric Variable
A variable that can hold digits, have mathematical operations performed on it, and usually can hold a decimal point and a sign indicating positive or negative.
String Variable
A variable that can hold text that includes letters, digits, and special characters such as punctuation marks.
Type-Safety
The feature of programming languages that prevents assigning values of an incorrect data type.
Named Constant
Similar to a variable, except that its value cannot change after that first assignment.