2.2 Programming Fundamentals Flashcards
1
Q
Variable
A
A changeable named container
2
Q
Constants
A
An available value that doesn’t change during the execution of the program
3
Q
Operators
A
A character(s) that determine what action is to be performed
4
Q
Inputs
A
Data supplied to the computer program by a user
5
Q
Outputs
A
A form of interaction between the computer and the user
6
Q
Assignments
A
Giving a variable a value
7
Q
Sequence
A
A set of program instructions written and executed one after another
8
Q
Selection
A
Certain lines of code will only execute if a condition is met
9
Q
Iteration
A
- 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
10
Q
Casting
A
Converting data types
11
Q
==
A
Equal to
12
Q
!=
A
Not equal to
13
Q
<
A
Less than
14
Q
<=
A
Less than or equal to
15
Q
>
A
Greater than
16
Q
> =
A
Greater than or equal to
17
Q
+
A
Addition
18
Q
-
A
Subtraction
19
Q
/
A
Division
20
Q
*
A
Multiplication
21
Q
DIV or //
A
Quotient