Flashcards
flash cards
Cards in this deck (3)
- 1data typesreal/floating point- a number with a fractional part
integer - a whole number
character - a single letter, number or special character
string - one or more letters, numbers or special characters
boolean - a variable which can only hold a true or false value - 2variables & constantsvariables are identifiers (names) given to memory locations whose contents will change during the course of the program
constants are used when the value will not change during the running of the program - 3programming arithmetic operators+ addition - x=6+5 gives 11
- subtraction - a=6-5 gives 1
* multiplication - x=6*5 gives 30
/ division - x= 12/2 gives 6
MOD modulus ( remainder of the division) - 12MOD5 gives 2
DIV quotient (whole part of division) - 17DIV5 gives 3
^ exponent - 3^4 gives 81
Information
- Description
- A level Computing Flashcards on flash cards, created by Joe Cooper on 13/09/2017.
- Created by
- Joe Cooper
- Views
- 0
- Tags
- Rating
More on Operators and Boolean Logic