Computer Science

studied byStudied by 390 people
5.0(10)
get a hint
hint

What is another name for the CPU?

1 / 97

Tags and Description

98 Terms

1

What is another name for the CPU?

The processor.

New cards
2

What are the different components of the CPU?

Control unit, Buses, Arithmetic-Logic Unit (ALU), Dedicated registers

New cards
3

What is the Control unit?

The part of the processor that coordinates the activity of all other components.

New cards
4

What is a bus?

A series of connectors that transfer signals between internal components.

New cards
5

How many lines does a bus typically consist of?

The binary numbers (8, 16, 32, 64).

New cards
6

What is the system bus?

Consists of three separate buses carrying control signals, addresses and data.

New cards
7

Which three busses make up the system bus?

Control bus, data bus, address bus.

New cards
8

What does a control bus do?

Control signals are sent along the bus between the control unit and the other components of a computer.

New cards
9

What are some examples of control signals?

Memory read, memory write, bus request, bus grant, clock

New cards
10

Memory read

Causes data from the addressed location in RAM to be placed on the data bus

New cards
11

Memory write

Causes data on the data bus to be written into the addressed location in RAM

New cards
12

Bus request

Indicates that a device is requesting use of the data bus

New cards
13

Bus grant

Indicates that the CPU has granted access to the data bus

New cards
14

Clock

Used to synchronise operations by "ticking" between 1 and 0

New cards
15

What is an ALU?

Arithmetic-logic unit. The problem solving part of the processor that performs arithmetic, logical and shift operations on data.

New cards
16

What are the arithmetic operations?

Add, Subtract, Multiply and Divide

New cards
17

What are the logical operations?

AND, OR, NOT, XOR

New cards
18

What is a shift operation?

Binary shift- moving bits to the left or right within a register.

New cards
19

The accumulator

A register that is used to temporarily store results from the ALU, so that the processor is able to immediately access and reuse these results in subsequent calculations.

New cards
20

Program counter (PC)

Holds the memory address of the next instruction to be executed.

New cards
21

Current instruction register (CIR)

Holds the current instruction, which is split into opcode and operand

New cards
22

Opcode

The instruction that is executed by the CPU.

New cards
23

Operand

The data or memory location used to execute that instruction.

New cards
24

Memory Address Register (MAR)

Holds the address in memory where the processor is required to fetch or store data from or to

New cards
25

Memory Data Register (MDR)

Temporarily holds data moving between the processor and main memory

New cards
26

What is the role of the processor?

To carry out instructions from programs stored in memory.

New cards
27

What does the control unit coordinate?

Components so that they work together to achieve instructions.

New cards
28

Fetch-execute cycle

Processors operate in defined stages that are used to carry out program instructions. Fetch-> Decode-> Execute-> repeat

New cards
29

Fetch: Step 1

The address of the next instruction is copied from the PC to the MAR

New cards
30

Fetch: Step 2

The instruction held at that address is copied to the MDR

New cards
31

Fetch: Step 3

Simultaneously, the contents of the PC are incremented

New cards
32

Incremented

Where the value of 1 is added to a byte to indicate the next step

New cards
33

Fetch: Step 4

The contents of the MDR are copied to the CIR

New cards
34

Decode: steps 5-7

The instruction held in the CIR is decoded. It is split into operand and opcode to determine the type of instruction it is. Additional data, if required, is fetched from memory and then the instruction is passed into the accumulator.

New cards
35

Execute: step 8

The instruction is executed and result held in the accumulator or stored in memory.

New cards
36

Memory is divided up into equal units called...

Words

New cards
37

Each word has a _________ memory address.

Separate

New cards
38

Address bus

-One directional -The width of it determines the maximum possible memory addresses of the system

New cards
39

With an 8-bit address bus, what is the maximum possible memory addresses?

2 to the power of 8/ 256

New cards
40

What is the average memory capacity of a PC?

4 GiB (gibi bytes)

New cards
41

Data bus

-Bi-directional -Width is defined by the number of wires or lines it contains

New cards
42

What happens if the data bus is the same width as a computer word?

Data can be transferred to and from memory in a single operation

New cards
43

Which factors determine the format of a machine code instruction for a particular type of processor?

The architecture of a computer, including: • the word size • and the width of the address bus

New cards
44

How is assembly language very closely related to machine code?

Generally, there is a one-to-one correspondence between a machine code instruction and its assembly language equivalent

New cards
45

The maximum size of the operand will depend on...

the width of the address bus

New cards
46

What are the main factors affecting processor performance?

• Clock speed • The number of cores in the processor • The amount and type of cache memory

New cards
47

How does the clock speed affect a computers performance?

The Fetch-Execute cycle is triggered by the clock pulses of the system clock therefore the faster the clock speed, the faster a computer can fetch, decode and execute instructions.

New cards
48

How does the number of cores affect a computers performance?

Each core is theoretically able to process a different instruction at the same time with its own fetch execute cycle however, the software may not always be able to take full advantage of all of the processors.

New cards
49

What is parallel processing?

In systems designed for parallel processing, each core can work concurrently on different parts of the same task.

New cards
50

What is cache memory?

A small amount of superfast (but expensive) memory that stores data and instructions that have recently been used by the processor.

New cards
51

Differences between level 1 and level 2 cache.

Level 2 cache is larger but not as fast as Level 1 cache

New cards
52

Similarity between level 1 and level 2 cache.

Both types are held on the processor chip.

New cards
53

What is level 1 cache split into? why?

Instruction cache and data cache, so that data and instructions can be fetched simultaneously.

New cards
54

How does the amount of cache affect processing performance?

The more cache memory a computer has, the more likely it is that it will not have to fetch the next instruction or data from RAM, as it will already have been loaded into the superfast cache memory from which it can be retrieved much more quickly.

New cards
55

What is pipelining?

This is a technique used to improve efficiency, for example by overlapping stages in the fetch-execute cycle, or by breaking down the stages in an arithmetic instruction. Starts another step before the first one finishes, like a tunnel (you don't wait for the first car to exit before you enter).

New cards
56

Software

All programs that run on a computer

New cards
57

The two types of software

Applications software and systems software

New cards
58

What are the stages of software development?

Analysis Design Implementation (programming, testing and installation) Evaluation Maintenance

New cards
59

What does the life cycle model look like?

A circle

<p>A circle</p>
New cards
60

In the analysis stage, what does a systems analyst gather information about?

What the current system does, if there is one What the new system needs to do

New cards
61

How might a systems analyst gather information?

Interview people who will use the software Use questionnaires to get information from large groups of people Observe how the current system works Look at existing documentation

New cards
62

What document might a systems analyst produce? and what does it entail?

A "system specification" that is a vital document, used to create the design, and to evaluate the finished product, that defines what the system will do, but not how it will do it.

New cards
63

What will the software design include?

A description of the data: data type, format, and validations Database design if appropriate Input screens Output screens and reports How the data will be processed How the software will be tested

New cards
64

What does the implementation stage include?

Coding and testing the software Writing user and technical documentation Installing the software for the user

New cards
65

What is black box testing?

Testing that is carried out independently of the code used in the program. It looks at the program specification and creates a set of test data that covers all the inputs, outputs and program functions.

New cards
66

What is white box testing?

Testing that depends on the code logic. Tests are devised which test each path through the code at least once.

New cards
67

What is alpha testing?

This is carried out by the software developer’s in-house team and by the user It can reveal errors or omissions in the definition of the system requirements.

New cards
68

What is beta testing?

The software is given to a number of potential users, who agree to use the software and report any faults.

New cards
69

When is beta testing used?

When commercial software is being developed (e.g. MS Windows, MS Word, Sage Accounts, etc.)

New cards
70

Why is beta testing useful?

Real users may try and do things the developer didn’t anticipate.

New cards
71

What happens in the evaluation stage?

The user now needs to test every aspect of the software to make sure it does what it is supposed to do It will be evaluated against the original specification document

New cards
72

What is another name for the evaluation stage?

Acceptance testing.

New cards
73

What are the three types of maintenance?

Corrective maintenance Adaptive maintenance Perfective maintenance

New cards
74

What is corrective maintenance?

Bugs will usually be found when the software is put into action, no matter how thoroughly it was tested

New cards
75

What is adaptive maintenance?

Over time, user requirements will change and the software will have to be adapted to meet new needs

New cards
76

What is perfective maintenance?

Even if the software works well, there may be ways of making it even better – faster, easier to use, more functionality

New cards
77

Similarity between the lifecycle model and the waterfall model

In both, each stage is completed and documented before the next is begun.

New cards
78

Differences between the lifecycle model and the waterfall model

Unlike in the lifecycle model, in the waterfall model the customer does not see the end product until it is completed, any change to be made often means the project has to be started again and the process doesn't repeat

New cards
79

What does the waterfall model look like.

If the lifecycle model didn't repeat and wasn't a circle.

<p>If the lifecycle model didn&apos;t repeat and wasn&apos;t  a circle.</p>
New cards
80

Advantages of the waterfall model

The model is simple to understand and use Each stage is separate and self-contained with well defined outcomes and written documentation This makes the project relatively straightforward to manage The model works well for smaller projects where requirements are very well understood

New cards
81

Disadvantages of the waterfall model

There is not much user involvement after the Analysis stage, when the Specification document is agreed No working software is produced until late in the cycle The user is presented with the finished product and if it is not quite what was required, it is generally too late to make changes

New cards
82

When is the waterfall model suitable?

The requirements are very clear and fixed There are no ambiguous requirements The technology is well understood The project is short

New cards
83

What does the spiral model look like

A spiral, where there are several prototypes, which each include the stages

<p>A spiral, where there are several prototypes, which each include the stages</p>
New cards
84

Which stage is missing from the spiral model?

Maintenance

New cards
85

What does each successive loop round the spiral generate?

A new, more refined prototype.

New cards
86

When does the spiral end?

The software meets all the requirements

New cards
87

Advantages of the spiral model

The well-defined steps make the project easy to manage Software is produced at an early stage so problems and issues can be identified early The user gives feedback on each prototype and any required changes can be made early in the process Added functionality can be added during the process The end result is more likely to be what the user wants

New cards
88

Disadvantages of the spiral model

The process of developing prototypes, getting feedback and refining the prototypes is time-consuming so the finished product takes longer to develop A system is more costly to develop because of the time involved Not suitable for smaller projects

New cards
89

When should you use the spiral model?

For medium to high-risk projects When users are unsure of their needs and what the possibilities are When the requirements are complex For large projects which may take years to develop, during which time new technologies may develop and significant changes occur

New cards
90

What does the agile model look like?

knowt flashcard image
New cards
91

What are the stages of the agile model

Plan Develop Test Install (optional) Demonstrate

New cards
92

What is the agile model?

Software is developed in rapid incremental cycles Each version builds on previous functionality Each version is thoroughly tested before release Good for small, time-critical projects Limited planning is needed to get started

New cards
93

What are the advantages of the agile model?

Rapid, continuous delivery of useful software leads to customer satisfaction Customers, developers and testers constantly interact with one another Working software is delivered frequently, within weeks rather than months Software is easily adapted to changing circumstances Even late changes in requirements can be implemented

New cards
94

What are the disadvantages of the agile model?

There is a lack of emphasis on necessary design and documentation The project can fail to deliver if the customer is not clear about the desired final outcome Not suitable for novice programmers – experienced programmers capable of making good decisions are required

New cards
95

When should you use the agile model?

When new changes need to be implemented – small incremental changes can be made frequently and for little cost In an expanding or developing business where users’ needs are continuously changing and developing

New cards
96

What is extreme programming?

This is a type of agile software development Frequent releases of the software are made in short development cycles It is intended to improve productivity and responsiveness to changing customer requirements

New cards
97

What can happen when you have a large project?

Personnel change Requirements change Technology advances Costs spiral upwards Project gets cancelled

New cards
98

What is rapid application development?

Workshops and focus groups instead of a document. Prototyping is used to continually refine user feedback Each part of the system is produced within a strict time limit – maybe not perfect, but good enough Software components are reused whenever possible

New cards

Explore top notes

note Note
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 25 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 7 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 6 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 14 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 3981 people
Updated ... ago
4.9 Stars(40)

Explore top flashcards

flashcards Flashcard66 terms
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard57 terms
studied byStudied by 17 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard44 terms
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard98 terms
studied byStudied by 23 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard42 terms
studied byStudied by 53 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard49 terms
studied byStudied by 48 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard40 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard204 terms
studied byStudied by 152 people
Updated ... ago
5.0 Stars(1)