OCR A-Level Computer Science

studied byStudied by 9 people
5.0(1)
get a hint
hint

Interpretation of PseudoCode

1 / 231

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

232 Terms

1

Interpretation of PseudoCode

The ability to pick out and explain parts of code.

New cards
2

Functions

A decomposed part of code that has a specific job to output or return something

New cards
3

Control Unit

The part of the CPU that manages the execution of instructions. The control unit fetches an instruction, and decodes it before executing it by sending 'control signals' to other parts of the computer.

New cards
4

Register

Tiny stores of extremely fast memory located in the CPU, normally designed for where data or control information is stored temporarily when execution is taking place.

New cards
5

Program Counter (PC)

A register in the control unit which holds the address of the next instruction to be executed. When each program is executed, this number goes up by 1 to signify the next 'fetch' to be at this address in the RAM.

New cards
6

Accumulator (ACC)

A special register within the Arithmetic Unit. It is used to hold the data currently being processed by the CPU. Any data to be processed is stored temporarily in the accumulator.

New cards
7

Memory Address Register (MAR)

A register in the CPU that stores the address of the memory location currently in use. In the fetch phase, this would be the address of an instruction; in the execute phase, it would be the address of the data being used.

New cards
8

Memory Data Register (MDR)

Used to temporarily store data loaded into the CPU, or written to memory locations. All transfers from memory locations to the CPU go via the Memory Data Register.

New cards
9

Current Instruction Register (CIR)

A register in the control unit that stores the instruction type of the next instruction to be carried out by the processor. For example, this could contain the number 3, which in LMC is a 'store' function.

New cards
10

1 Dimensional Arrays

A standard list array - one index is needed to search for something in an array.

New cards
11

2 Dimensional Arrays

An array with 2 indexes needed to search - for example a table could be this.

New cards
12

Big O'

A measure of complexity within a piece of code.

New cards
13

Recursion

a subroutine calls itself during its execution. This continues until a certain condition - called the stopping condition - is met, at which point the recursion stops.

New cards
14

Iteration

A block of code is executed a certain number of times or while a condition is met. Iteration uses FOR, WHILE or REPEAT UNTIL loops.

New cards
15

Subroutine

A decomposed part of problem that does something

New cards
16

Data Mining

The process of collecting data on user habits or requests

New cards
17

Binary Search

A search algorithm that includes comparing the midpoint of an array iteratively.

New cards
18

Insertion Sort

A sorting algorithm that includes going through an array iteratively comparing each value to every value before that value.

New cards
19

Bubble Sort

Moving through a list, it compared two elements and moves on, moving through the array repeatedly.

New cards
20

ALU (Arithmetic Logic Unit)

The part of the CPU where data is processed and manipulated. Usually arithmetic or logical operations. Allows for decisions to be made.

New cards
21

Buses

A common physical pathway for signals to travel to and from several components of a computer.

New cards
22

Data Bus

Transfers the data from memory location specified by MAR.

New cards
23

Address Bus

The part of the bus which carries information about where the data is being sent.

New cards
24

Control Bus

This bus carries command and control signals to and from every other component of a computer.

New cards
25

Fetch

Decode-Execute - The complete process of retrieving an instruction from a memory source, decoding it and carrying it out (execution). Also known as the instruction cycle.

New cards
26

Central Processing Unit (CPU)

The main part of the computer, consisting of the registers, ALU and control unit.

New cards
27

Clock Speed

Measured in Hertz, the clock speed is the frequency at which the 'internal clock generates pulses'. This means how fast it can execute instructions. The higher the clock rate, the faster the computer may work. The "clock" is an electronic unit that synchronizes other components by generating pulses of electricity at a constant rate (almost like waves).

New cards
28

Cores

A CPU is one 'Core'. A multi-core processor is a single component with two or more independent actual CPU's, which are the units responsible for the fetch-decode-execute cycle. Theoretically, this could 'double' speed but depends on efficiency of splitting up tasks.

New cards
29

Cache

A part of the main store between the central processor and the RAM. It has extremely fast access, so sections of a program and other data is copied there to take advantage of its short fetch cycle.

New cards
30

LMC STA

Store function, puts the value in the accumulator into the storage location specified.

New cards
31

LMC LDA

Loads data from the storage location specified into the accumulator.

New cards
32

LMC BRA

'Branches' the next instruction to the address given.

New cards
33

LMC BRP

'Branches' the next intruction to the address given if the value in the accumulator is positive or zero.

New cards
34

LMC BRZ

'Branches' the next intruction to the address given if the value in the accumulator is zero.

New cards
35

Pipelining

An attempt to make machine code as efficient as possible. It relies on the ability for the CPU to split up instructions - it can then fetch, decode, and execute all parts of the instruction at the same time.

New cards
36

Flushing the Pipe

During Pipelining, instructions can cause corruption issues if something is being outputted that could cause more problems. (the thing being currently processed could cause damage when outputted - the instruction that is currently be outputted cause be causing corruption issues) Therefore, Flushing the Pipe clears the CPU to move onto the next instruction that it is told to do.

New cards
37

Interupt

A signal from a peripheral or instruction that signals an issue that needs addressing. OS needs to prioritise these and fix errors.

New cards
38

Von Neumann Architecture

Traditional computer architecture that forms the basis of most digital computer systems. A single control unit manages program control flow following a linear sequence of 'fetch-decode-execute'.

New cards
39

Harvard Architecture

A computer architecture with physically separate storage and signal pathways for instructions and data. These early machines had data storage entirely contained within the central processing unit, and provided no access to the instruction storage as data.

New cards
40

Contemporary Architecture

Usually a combined selection of the 2 basic architectures' - taking the best of both worlds. Simplicity of Von Neumann, but the useful features of Harvard.

New cards
41

Input Device

Any peripheral device that can accept data, presented in the appropriate machine-readable form, decode it and transmit it as electrical pulses to the CPU.

New cards
42

Output Device

Any peripheral device that translates signals from the computer into a human-readable form or into a form suitable for reprocessing by the computer at a later stage.

New cards
43

Storage Device

Any medium (optical, magnetic, solid state and even paper which holds data or programs.

New cards
44

Magnetic Storage

Storage medium which uses surfaces coated with a layer of magnetic material on which data can be stored by magnetically setting the arrangement of the magnetic material. This is done by electromagnetic read/write heads.

New cards
45

Flash Storage

Collection of memory chips that is controlled by its own software to make the collection of chips act like a disk drive. Compact, large storage medium.

New cards
46

Optical Storage

Storage medium that uses plastic discs on which the data is stored as patterns on the surface in pits and lans. Lightweight, compact, limited by data size.

New cards
47

Solid State Storage

Storage medium for main disk drive on a computer, is generally more expensive, therefore less storage space, however is more reliable.

New cards
48

Hard Disk Drive

Storage medium for main disk drive on computer, is generally cheaper, therefore more storage space, however can be unreliable.

New cards
49

Random Access Memory (RAM)

Volatile main memory. Access times are very fast. Often referred to as Main Memory, although this can be used in main areas of computing and computing storage. When used as main memory this typically can be thought of as containing the Operating System, programs in use and the data those programs are using while the computer is running.

New cards
50

Read Only Memory (ROM)

Memory for which the contents may be read by cannot be written to by the computer system. Software in ROM is fixed during manufacturing. It typically holds system boot up instructions. ROM is non-volatile. More modern types of ROM can be written to in limited ways, these include, PROM, EPROM and EAROM.

New cards
51

Virtual Memory

A means of extending main storage by using the hard drive as if it were quick-access memory. Operating System is expected to utilise this by prioritising tasks.

New cards
52

Virtual Storage

'The Cloud'. Reduces duplication, can be accessed remotely but is less secure and is reliant on bandwidth.

New cards
53

RAM Advantages

Volatile so doesn't get clogged up, large storage size, quick access.

New cards
54

RAM Disadvantages

Volatile so data can't be stored, expensive, if memory runs out computer crashes.

New cards
55

ROM Advantages

Non-volatile so data can be stored, can't be changed, quick access.

New cards
56

ROM Disadvantages

Could get clogged up, Small storage size.

New cards
57

Magnetic

patterns of magnetisation represents 0 & 1, this is read by a reader.

New cards
58

Optical

marks and bumps on a medium, is read by a light beam.

New cards
59

Solid State

Uses electronic circuits to represent 1's & 0's.

New cards
60

Systems Development Life Cycle (SDLC)

The stages of designing and implementing a new computer system. These stages - analysis, design, implementation, testing and installation - are part of the life cycle made by the main design team.

New cards
61

Waterfall Model

An example of system development, where one 'job' almost 'flows' from one to another. These include conception, initiation, analysis, design, construction, testing, production and maintenance.

New cards
62

Agile Methodologies

A development cycle that encourages teamwork through iterations and the disregard for team member hierarchy, working closely with a leader to efficiently program, testing it often. Focusses on face-to-face communication rather than massive amounts of written documentation.

New cards
63

Extreme Programming

A software development methodology which has many branches - its main goal is to use short development cycles to test often and work collaboratively. One 'type' of Extreme programming is working in pairs to complete a task, with some looking at the larger picture of the code, while others looking closely at every little bit of code.

New cards
64

Spiral Model

Another cycle of system development, there are four defined 'quadrants' - planning, risk analysis, use of design methods, client and management evaluation. Once one stage of development has gone full 'circle', the next phase takes place, and so on until completion.

New cards
65

Rapid Application Development (RAD)

The process of RAD as followed :

  • A prototype is created

  • (Evaluated) feedback is used to inform the next iteration

  • If needed then changes are made

  • This process is repeated until the prototype become the final product

New cards
66

Black Box Testing

  •  Not concerned with how the program works. 

  • This testing checks if an input produces the expected output. 

  • Efficiency is not important as long as the input has the desired outputs.

  • In order to not waste time, the tester choses an appropriate test range in order to test enough things without having to test every little thing

New cards
67

White Box Testing

  • Test the algorithms in the code in order to make  sure that all parts of the algorithm works as intended 

  • it focus on identifying and testing all the possible paths of execution through a program 

  • unlike black box testing, it also checks whether the code is efficient 

  • Usually done by specialists

New cards
68

Alpha Testing

A small group test an unfinished product with known errors.

New cards
69

Database

A collection of organised data.

New cards
70

Relational Database

Multiple tables that a user can find relationships between and find specific information.

New cards
71

Flat File

A database that can be stored at a plain text file. One record (row), with fields (column) separated by tabs or commas.

New cards
72

Fields

'Headings' for the data to be organised when inputted - e.g. name, DOB etc.

New cards
73

Record (databases)

A specific row of data. For example, John Smith, 25/01/2002.

New cards
74

Primary Key

A field that uniquely identifies a record in a table. For example, a User ID.

New cards
75

Foreign Key

The linking field in a foreign table, formed when a relationship between 2 databases is formed. The Foreign Key becomes the Primary Key of the new table. A foreign key could be a User ID.

New cards
76

Concatenated (attached) Primary Key

More than one field is added together to form a unique primary key for a table. For example, 'group ID' and 'specific person ID'.

New cards
77

Secondary Key

A key field which can be used to index the data in a different order - for example you could sort the data by surname (the secondary key) rather than the primary key (User ID).

New cards
78

Normalisation (databases)

The process of arranging data into tables and setting their relationships to move them around in multiple tables, from input forms.

New cards
79

Indexing

The process of creating a database index, which is a data structure that improves the speed of data retrieval operations on a dataset table at the cost of additional writes and storage space to maintain the index data structure. This is essentially changing the order of the data and sorting it via a different key.

New cards
80

0NF

A table with no normalisation. All data and all fields are in one table.

New cards
81

First Normal Form (1NF)

A database relationship (2 or more tables) with repeating groups removed. That is a relation in which the intersection of each tuple (data structure with multiple parts) and attribute contains only one value. For example, a table which labels a ball as yellow and green, with a price in a separate column is not normalised to this - Separate tables must be made which allow the data to have a different row for each colour.

New cards
82

Second Normal Form (2NF)

A relation that starts the same as 1NF, with one difference: every attribute must be completely dependent on the primary key. For example, does the employee name rely on the project code?

New cards
83

Third Normal Form (3NF)

A relation that starts the same as 1NF and 2NF. If an attribute, which is not a key, is reliant on another attribute more than the primary key in a table, it must be made into a new table.

New cards
84

Normal Forms

A way of structuring the data in a relational database according to a set of rules, in order to avoid problems of inefficiency in accessing and maintaining the data. For example, 1NF, 2NF, 3NF.

New cards
85

Entity Relationship Modelling (ERM)

The production of a data model for describing data and its organisation within a database.

New cards
86

ERM One-to-One

One database can only equal one other row in the database. For example, a country can only have one capital city. [London]----[England]

New cards
87

ERM One-to-Many

One database can be equal to multiple rows in the other table. For example, a student can take more than one course (many). [Student]---<[Course]

New cards
88

ERM Many-to-many

Not possible as it would result in data redundancy. For example, 'many students take many courses of which take many students'. To fix, you either need a new database or you will need to priorities whether you need to know about the student's many courses or the course's many students.

New cards
89

Structured Query Language (SQL)

The language and 'syntax' used to write and run database queries.

New cards
90

SQL SELECT

What fields do you want to display?

New cards
91

SQL FROM

Which table(s) would you like to use to display data from?

New cards
92

SQL WHERE

What search criteria are you going to use to choose records? Search criteria is a boolean statement and is phrased 'where this is true'. When changing records, this is used to set the record which would be updated.

New cards
93

SQL AND, OR, NOT

For SQL WHERE statements, these are boolean statements that, in order, needs both criteria to be true; one or both to be true; the opposite to what is true.

New cards
94

AND

^ symbol signifies ... can also be written as .(sometimes this . is dropped and it is just shown as XY)

New cards
95

OR

∨ symbol that signifies ... can also be written as +

New cards
96

NOT (negation)

¬ symbol signifies ... can also be written as x̄

New cards
97

XOR

⊕ symbol signifies ...

New cards
98

B^AvB^C

B(AvC) is simplified to ...

New cards
99

X

Xv(XY) simplifies to ... (AND's & OR's can be switched for the same answer)

New cards
100

X

X^X is equal to ...

New cards

Explore top notes

note Note
studied byStudied by 15 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 12 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 17 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 30 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 26 people
Updated ... ago
4.0 Stars(1)
note Note
studied byStudied by 539 people
Updated ... ago
5.0 Stars(3)
note Note
studied byStudied by 1020 people
Updated ... ago
5.0 Stars(4)

Explore top flashcards

flashcards Flashcard37 terms
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard82 terms
studied byStudied by 4 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard83 terms
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard75 terms
studied byStudied by 11 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard50 terms
studied byStudied by 37 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard52 terms
studied byStudied by 4 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard41 terms
studied byStudied by 6 people
Updated ... ago
4.5 Stars(2)
flashcards Flashcard295 terms
studied byStudied by 27 people
Updated ... ago
5.0 Stars(1)