Programming Fundamentals Flashcards
String
Text - “Hello”
Integer
Whole number e.g. 32
Float/Real
Decimal number e.g. 12.1
Boolean
True or False
Charecter
A single charecter e.g. b
Casting
is when you want to change between data types
Variable
can be assigned value during the program
Local Variable
a variable that can only be used in the structure they are declared in
Global Variable
a variable that can be used in any part of the code
Constant
A value that can not be altered whilst the program is running
Assignments
A statement that sets a value to a variable
Exponentiation
Raises a number to a power
Quotient/DIV
Give a whole number after a division
Remainder/MOD
gives the remainder part of a division
==
is equal to
! <>
is not equal to
<
is less than
>
is more than
> =
is more than or equal to
<=
is less than or equal to
What are the boolean operators
AND, OR and NOT
One dimension array
like a list
examples:
array students [3]
students [0] = “Bob”
students [1] = “Dave”
students [2] = “Bob”
print (students[1])
Two dimension array
These are lists within lists like a table.
Sequence
Programs is completed in steps one after the other.