Computer science Flashcards
What is extreme programming?
A method of programming where two programmers work together in order to make sure code is written correctly and quickly.
What is embedded OS?
Embedded software is found on certain hardware devices such as printers or mice that allows them to perform their desired purpose in the best way.
What is real time OS?
Software that can react to real world inputs and quickly it is required in time sensitive cases such as the software found in driverless cars.
What is multi-tasking OS?
Multitasking OS allow the device to work on multiple separate problems simultaneously such as Windows or Linux.
What is a CIR and what does it do?
A CIR is also known as a current instruction register and stores the current instruction that is being decoded.
What is the MAR?
The MAR or memory address register stores the address of the current instruction that needs to be fetched from main memory.
What is the MDR?
The MDR or memory data register stores the piece of data found at the address stored by the MAR.
What is the accumulator?
The accumulator is a component in the CPU that holds the output of the last calculation completed it allows for quick retrieval to the appropriate location in main memory.
What are registers?
Registers are tiny components in the CPU that can temporarily hold data for retrieval.
What are the three main components of the CPU?
Cache, Control Unit and Arithmetic logic unit.
What main factors affect the speed of the CPU?
Clock speed, Cache size, Number of Cores, Ability to Pipeline or not.
What are the three main laws that apply to using the internet and storing data on it?
The main three laws are:
Data protection act 1998
Copyrights and Patents act 1988
Computer misuse act of 1990
What are four main parts of the Data Protection Act of 1998?
Data must be stored with the suitable level of security such as correct firewalls and also physical in person protection such as locking doors. Data must not be sent outside the EU where certain data protection laws don’t apply. Data must only be collected on relevant topics for example a doctors office doesn’t need to know your political beliefs etc. Incorrect data must be changed as it can have disastrous effects for example the man who got the wrong reference because they shared the same name.
What are Foreign Keys?
Primary keys in another table become foreign keys when they are used again elsewhere. However, they are still the primary key in there table but are the foreign one in the other table.
What is a composite key?
A composite key is one that is made up of the combination of two different fields in order to provide a unique identifier for each record.
What is a distributed operation system?
A distributed operation is one that has many different separate devices working together in order to solve one problem. Often used in places where a large amount of processing power is required.
What is an embedded operating system?
An OS that is found in certain specific hardware such as the ones found in printers it enables hardware to connect and communicate with the main computer.
What is a virtual machine and why is it used?
A virtual machine is one that is software based and run on a hardware based “host computers”. It uses the processing power of the host to perform different tasks including simulating another OS.
What is 01010101 as an integer using two bit binary?
85
What do each of these mean: ¬ ∧ ∨ ⊻
Not
And
OR
Xor
What is iteration?
Iteration is where you run through code multiple times using a loop the loop can be either condition controlled or counter controlled.
What is recursion?
Recursion is where you call a function inside a function until at the end when the final results are returned. Recursion relies on a stack that uses a first in last out method.
What is the difference between an array and a list?
A list is ordered and cannot increase in size and is known as static it can store more than one data type. While an array can be unordered and can increase in size and is known as dynamic it also can only store one data type. An array can also come in many forms 1D, 2D, 3D + While a list always comes in the same format. Both lists and Arrays are mutable which means they can be changed after creation.
What is a tuple?
A tuple is a static, ordered and unmuteable so cant be changed after creation its used to store values that wont need to change it can store multiple data types.
What is a Field?
A field is a column on a table and contains one type of data about one aspect of a data subject such as all their surnames.
What are the two types of database?
Relational and Flat file
What are the conditions for 1.N.F?
- All data must be atomic.
- Each column name must be unique.
- Values in a table should be of the same domain.
- The order in which data are stored doesn’t matter
What are the conditions for 2.N.F?
- Must be in 1.N.F
2. Must not have any Partial dependencies.
What are the conditions for 3.N.F?
- Must be in 2.N.F
2. Must not have transitive dependencies.
What is A DNS?
Domain Name System holds website URLs and corresponding IP addresses this allows people to easily navigate to websites as instead of having to remember IP addresses you can simply remember URL’s.
What is the authoritative server?
The final layer that gets search if the websites IP cant be found this holds every IP of every website on earth.
What is a Bubble sort?
A bubble sort is a sorting method where the largest number is pushed to the end of the list each time it is iterated trhough it is quite slow compared to other methods and has the time complexity of O(n^2).
What is an insertion sort?
An insertion sort is where data is sorted by adding numbers one by one into the correct place in the list it has a time complexity of O(n).
what is a merge sort?
A merge sort involves a list being split down until only one items remain in each separate list then they are combined and compared each times until the list is sorted it has a time complexity of O(nLogn)