Computer Science Flashcards
High level languages
Low level languages
Python, C#, Java
Machine code, assembly code
What are the two types of translator
Compilers
Interpreters
what is compiling
taking the whole code at the same time
what is interpreting
takes code line by line
what’s an IDE
the program that allows you to code in high level languages
features of IDEs
source code editors
interpreters
automation tools
debugger
compiler
auto-documentation
Discuss the suitability of the different types of translator for a programmer during development and after development. [5]
During development, its essential that errors are quickly spotted. Interpreters highlight errors line by line. However a compiler would be better suited to nearer to the end due to it being able to execute it all in one go
What is a transistor?
microscopic devices that switch on and off the electrical signals or power (1 and 0)
What is the output of (NOT(1 AND 0)) AND 1
1
How many rows in a truth table of 3 inputs (for AND and OR)
2^3 = 8
what is input sanitation
removing unwanted characters and making sure everything is checked, prevents any issues
define whitelist
a list of data that tells the program what to accept, everything else is rejected
define blacklist
a list of data telling the program what NOT to accept, it accepts everything else (less secure)
define authentication
a defence strategy (using whitelist) only allows specific users to use the account
what is iterative testing
testing the code line by line