Term 1/2 Flashcards
Sequence
Instructions that are carried out one after another in order.
Iteration
Repeating instructions over and over again, this is called a loop.
Selection
A desicion or question. Depending on the answer given (choice), the program will follow a certain step ( path) and ignore the others.
Operators and their meanings:
==
!=
>
<
>=
<=
== - Equal to
!= Not equal to
> More than
< Less than
>= More than or equal to
<= Less than or equal to
Integer
A whole number
String
A set of alphanumeric characters and symbols - eg a word or sequence
Real/ FLoat
Real / Float - Used to store decimal numbers. Typically a number is represented aproximately to a fixed number of signigicant figures and scaled using exponent.
Boolean
Used to store logical conditiond eg TURE/FALSE, ON/OFF, YES/NO
Variable
A value that is stored and can be changed
Constant
A value that is stored and cant be changed
Syntax error
Where your code doesn’t run and you have broken the rules of the language
Logic error
WHere your program runs but does something unexpected
Decomposition
Taking a complex problem and breaking it into a series of smaller more manegable problems.
Abstraction
Removing unecessary details and instead focus on the important factors, ignoring irrelevant information.
Algorithmic thinkking
Step by step instructions to solve a problem ( an algorithm)