test nov 18th Flashcards
what is a subroutine
breaking up a large complicated problem into smaller sub programs (self contained)
(functions or procedures)
what is the difference between a function and a procedure
function - returns a value
procedure - just performs a task/ executes code
what is a parameter
variables in a function - assign a value to it when you call it
data passed into a subroutine when it’s called
what is an argument
values passed into a subroutine
+ of subroutines?
- each subroutine tested separate to make sure it works - easy to debug
- split a program between many programmers - cut down development time
- subroutines can be reused - cut down development time
- code that’s broken down into meaningful subroutines is easier to maintain
local variable
only exists whilst the subroutine is executing - can only be used and modified in a subroutine
global variable
accessible anywhere in the program
presence check validation
value <- USERINPUT
WHILE LEN(value) == 0
OUTPUT “nothing entered enter again”
value <- USERINPUT
ENDWHILE
range check - using while loop
postcode <- USERINPUT
WHILE LEN(postcode) <6 OR LEN (postcode) > 8
OUTPUT ‘Invalid enter again’
postcode <- USERINPUT
END WHILE
define cyber secutity
the processes / practices and technologies that protect from attack damage or unauthorised access
(protects networks, comps and digital data)
how does anti virus software protect a device
- detects malware - sees if it had a match to the signature on its database - then informs the user not to open the file
- can quarantine or delete malware if it’s on the device - to prevent causing damage
what anti virus software does if it finds a virus?
- a new virus is detected - and sent to the anti virus software
- verify it’s malware and creates a signature of the virus
- add it to their database and tell computers to run an update
why keep anti virus software up to date?
new threats are detected daily
- if not updated it won’t have the signature in the database so won’t be able to detect any new malware
social engineering definition
the ability to obtain confidential info by manipulating people for it
phishing
using email / sms pretending to be from a trusted source - to obtain personal/ sensitive info
- tend to involve links/ not personalised/ poor spelling