Paper 2 keywords Flashcards
what is the DIV operator
outputs the answer without the fraction part
what does = mean
equal to
what does >
greater than operator
what does <
less than operator
what does >=
Greater than or equal to
what does <=
less than or equal to
what does <>
not equal to
what is a sequence
statements or actions performed in a specific order
what is selection
a way of making decisions in a program by choosing different paths based on a condition
what is an example of a count-controlled loop
For loop - repeats a loop a set number of times
what is an example of a pre-condition loop
while loop - repeats a loop while condition is true
what is an example of a post-condition loop
repeat until loop = repeats a loop until a condition is true
what is the difference between a function and a procedure
a function produces a result
what data type is an int
it is any whole number
what data type is a real
all numbers with a decimal
what data type is char
just one character from
what data type is a str
a group of characters consisting of letters, numbers and special characters
what data type is a boolean
has only 2 values, true or false
what is linear search
starts with first value in a dataset and checks every value one at a time until all values have been checked.
what is bubble search
starts at the beginning of a data set and checks values in ‘pairs’ and swaps them if they’re not in the correct order.
validation
process carried out by a computer to check if the data input is reasonable.
range check
checks the numerical value is at a certain range.
type check
makes sure the type of data is input correctly.
length check
checks if the data has a certain number of characters