Computer science Flashcards
(87 cards)
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.