theory Flashcards
sequence
code runs in the same order every time
selection
only runs a line of code if a condition is true
iteration
a loop, the code repeats
variable
a named location on the memory which stores information that can change during the running of the program
float
a decimal number e.g. price=float(2.4)
integer
a whole number e.g. age=int(6)
string
a set of alphanumeric characters e.g. name=str(jack)
boolean
true or false e.g. canMoveRight=true
algorithm
a set of instructions which when followed solve a problem
decomposition
breaking a problem down into smaller problems to make it easier to solve
abstraction
taking away unnecessary information to allow you to focus on the main elements of the problem
network
an interconnected collection of computers
advantages of networking
it enables sharing of data, files, sharing of peripherals e.g. printers. It also provides control and security as backups and updates can be rolled out centrally
network protocol
a set of rules that determine how data is transmitted between different devices in the same network
data packet
a part of a file