Data Types and Programming Concepts Flashcards
Integer
A whole number data type.
Real/Float
A decimal number data type.
Boolean
A data type that can have a value of true or false.
Character
A single alphanumeric character data type.
String
A group of characters data type.
Data / Time
A data type used for storing a point in time.
Pointer / Reference
A data type used for storing memory addresses.
Records
A collection of fields data type.
Arrays
An indexed set of elements data type.
Variable Declaration
Creating a variable for the first time by giving it a name and a data type.
Constant Declaration
Creating a constant for the first time by giving it a name and a data type. The value of a constant cannot change while the program is running.
Assignment
Giving a variable/constant a value.
Iteration
Repeating an instruction.
Selection
Comparing values and choosing an action based on a condition.
Subroutine
A block of code with a set of instructions designed to perform a frequently used operation. Can be recalled.
Definite iteration
Iteration where the number of repetitions required is known before the loop starts.
Indefinite iteration
Iteration where the number of repetitions required is not known before the loop starts.
Nested structures
Used with selection and iteration - one structure is placed within another using indentation.
Meaningful identifier names
Variable names that are sensible and meaningful, making it easier for others to understand the purpose of the variable.
Sequence
One of the three main programming concepts, which refers to the order in which instructions are executed.
SUMMARY
The three main programming concepts are sequence, selection, and iteration. There are many data types, and each has its own use. Variables must be named sensibly and have a meaningful name, making it easier for other programmers to identify their purpose in the program.