Chapter 2 - Data, Expressions, Variables, and I/O Flashcards
What is atomic data?
The smallest unit of data that a computer program can define.
What is compound data?
Data that can be subdivided into smaller pieces of data which are organized in a particular way.
Ex. List
What is a data type?
Every piece of data, compound or atomic, has a data type.
What is a literal value?
A number or string written right into the program, that is, literally typed into the programs code, such as 42.
What is an expression?
Combinations of data and special symbols called operators.
What is an operator?
Used to write expressions that compute new values from existing pieces of data.
What is an operand?
What is a variable?
A way of giving names to data.
What advantages do variables have over literals?