Programming fundamentals Flashcards
What are the three constructs that are used to control the flow of a program?
Sequence, selection, iteration
What is a sequence?
Structuring code into a logical, progressive order
What is a selection?
Decision making using if statements
What is iteration?
Repeating code using for or while loops
What is a Variable?
Used to store data in programs
Can be changed as the program runs
What is a constant?
A fixed variable. Data does not change
Comparison operators
used to compare two data values
Greater than operator
>
Less than operator
<
Greater than or equal to operator
> =
Less than or equal to operator
<=
Equal to operator
==
Not equal to operator
!=
Modulo division operator
MOD (%)
reveals the remainder from the last whole number
Integer division operator
DIV (//)
reveals a whole number