Programming Fundamentals Flashcards
What is iteration?
When a section if code is repeated
What is selection?
When a choice is given in the program that leaves multiple outcomes
What is a sequence?
The order in which programming instructions are executed
What is this operator == and what type is it?
Equal to
Comparison operator
What is this operator != and what type is it?
Not equal to
Comparison operator
What is this operator < and what type is it?
Less than
Comparison operator
What is this operator <= and what type is it?
Less than or equal to
Comparison operator
What is this operator >= and what type is it?
Greater than or equal to
Comparison operator
What is this operator > and what type is it?
Greater than
Comparison operator
What is this operator + and what type is it?
Addition
Arithmetic
What is this operator - and what type is it?
Subtraction
Arithmetic
What is this operator / and what type is it?
Division
Arithmetic
What is this operator * and what type is it?
Multiplication
Arithmetic
What is this operator MOD and what type is it?
Modulo division (remainder from division)
Arithmetic
What is this operator DIV and what type is it?
Integer division (how many times can a number go into another)
Arithmetic
What is this operator ^/ ** and what type is it?
Exponentiation (to the power off)
Arithmetic
What does the boolean operator AND mean?
Both values are true to return a true value
What does the boolean operator OR mean?
One of the values is true to return
What does the boolean operator NOT mean?
The opposite of the value
What is a variable?
A stored value that can be changed throughout the program whilst it’s running
What’s a string?
A sequence of characters
What’s an integer?
A whole value
What’s a real/float?
A decimal number
What’s a boolean?
An answer that only has two possible values