Programming Fundementals Flashcards
Define real/float
Numbers that have a decimal point
Define Boolean
Can only take one of two values e.g true or false
Define character
A single letter,number or symbol
Define string
Represents text and is a collection of characters
Define casting
Changes the data type
Define arithmetic operators
Takes two values and performs a maths function on them
Define exponentiation
Used to raise a number to a power
Define DIV
Returns the whole number part of a division
Define MOD
Returns the remainder part of the division
Define assignment
Used to allocate values to variables
Define comparison operators
Compares the expression on the left with the one on the right and produces true or false
Define constant
Assigned a data value that cannot be changed as the program runs
Define variable
A location in memory that holds one or more values and has a name to identify it
Define string manipulation
Commands are used which gives you information about a string or allows you to alter the string
Define If statements (selection)
Allows you to check if a statement is true or false and then Carrie’s out different actions depending on the outcome