2.2 Programming Fundamentals Flashcards
Variable
A changeable named container
Constants
An available value that doesn’t change during the execution of the program
Operators
A character(s) that determine what action is to be performed
Inputs
Data supplied to the computer program by a user
Outputs
A form of interaction between the computer and the user
Assignments
Giving a variable a value
Sequence
A set of program instructions written and executed one after another
Selection
Certain lines of code will only execute if a condition is met
Iteration
- Condition-controlled, when a set of instructions is repeated based on whether a condition evaluates as true or false e.g. while loops
- Count-controlled, when a set of instructions is repeated a specific number of times e.g. for loops
Casting
Converting data types
==
Equal to
!=
Not equal to
<
Less than
<=
Less than or equal to
>
Greater than
> =
Greater than or equal to
+
Addition
-
Subtraction
/
Division
*
Multiplication
DIV or //
Quotient