Data and Data Types Flashcards
what is atomic data?
the smallest unit of data that a computer program can define
what is compound data?
data that acts as a collection for other pieces of data (ex. a list)
what is integer data?
whole numbers
what is floating-point data?
real numbers that are not necessarily whole numbers
what is boolean data?
data that can only be one of two values: True or False
what are strings?
sequences of characters (letters of the alphabet, digits, and punctuation) and are usually used to store text
what are lists?
sequences of data items
what is a literal?
a number or string written right into the program by the programmer
how is a string literal specified?
by enclosing a sequence of characters with a pair of single or double quotes