Programming Flashcards
Define:
INT
(Data Type)
Integer
Whole numbers only
(e.g. 0, 6, 10293, -999)
Define:
REAL
(Data Type)
Real / Float
Numbers that have a decimal point
(0e.g. 0.15, -5.87, 100.0)
Define:
BOOL
(Data Type)
Boolean
True or False value
(e.g. True, False)
Define:
CHAR
(Data Type)
Character
A single letter, number or symbol
(e.g. “A”, “k”, “5”, “-“, “$”)
Define:
STRING
(Data Type)
String
Used to represent text, it is a collection of characters
(e.g. “Hello World!”)
Define:
ADDITION
(Arithmetic Operator)
+
Adds two values together
Define:
SUBTRACTION
(Arithmetic Operator)
-
Subtracts one value from another
Define:
MULTIPLICATION
(Arithmetic Operator)
*
Multiplies one value by another
Define:
DIVISION
(Arithmetic Operator)
/
Divides one value by another
Gives an exact value
Define:
DIV
INTEGER DIVISION
(Arithmetic Operator)
//
Divides one value by another
Gives a whole number
Disregards remainder
Define:
MOD
MODULUS
(Arithmetic Operator)
%
Divides on value by another
Gives the remainder
Define:
==
(Comparison Operator)
Is equal to
Define:
!=
(Comparison Operator)
Is not equal to
Define:
<
(Comparison Operator)
Is less than
Define:
>
(Comparison Operator)
Is greater than
Define:
<=
(Comparison Operator)
Is less than or equal to
Define:
=>
(Comparison Operator)
Is greater than or equal to
Define:
Variable
A memory location that stores a data value under a specified name
Value can be changed or reassigned
Define:
Constant
A memory location that stores a data value under a specified name
Value is assigned during design and can’t be changed
Define:
Selection
Checks whether a condition is True or False, and carries out different actions depending on the result