Topic 6 And 7 Flashcards
What is an integer?
Int
Whole number only
What is a float or real?
Numbers that can have decimal part
What is a Boolean?
Can only take one or two values, usually true or false
What is data type character?
Single letter number of symbol
What is data type string?
Used to represent text with selection of characters
How to workout ASCI number of the letter?
ASC(letter)
How to work out which ASCI number is which letter
CHR(code)
What does DIV
Divides into a whole number and has no remainder
What does MOD Do
Show the remainder of a calculation
What does .upper do?
Changes all characters to upper case
What does .lower do?
Changes all characters to lower case
What does .length do ?
Returns the number of characters in a string
What does .left do?
Returns the left character
What does .right do
Returns right characters
What does .substring do?
Extracts a substring from the string
Describe a DO until loops
Controlled by a condition that has to be met
Always run at least once
You can get an infinite loop if the statement is impossible
Describe a while loop
Controlled by a condition at the start
Keep going while condition is true
Never run code if condition is initially false
Get and infinite loop if conditions is always true