2.2 Programming Techniques Flashcards
What is a string?
Any text
What is an integer?
Whole number
What is a float/real number?
Decimal Number
What is a Boolean statement?
True/False statement
What is a character?
A single character?
What is an exponentiation function?
Raises a number to a power
What is the DIV function?
Gives the whole number with no remainder
What is the MOD function?
Gives the remainder not the whole number
What is the ! operator
Not equal to
What is a local variable?
A variable that can only be used within the structure they are declared in
What is a global variable?
A variable which can be used in any part of the code after they are declared
What is a sequence?
Where there are programming steps that are carried out one after another
What is selection?
Where there are different paths in your code - IF, ELIF, ELSE
What is iteration?
Where there is repetition in loops
What is a WHILE loop?
Doing something WHILE a condition is met