Professional Documents
Culture Documents
Computing (9691/1)
www.revision-notes.co.cc
www.revision-notes.co.cc
Hardware
Hardware are the physical components of a computer eg the input devices, output devices, primary storage (memory) and secondary storage (backing store), Central Processing Unit etc. Note that input and output devices are collectively known as peripherals.
Software
Software are the sets of instructions/programs that are loaded into the memory of the computer in order to perform a task or to control the operation of the computer.
Peripheral
A peripheral is a device that is external to the computers box and connected to it via one of the Input/Output (I/O) ports. Common peripherals include: mouse; keyboard; VDU; printer; scanner.
Input device
An input device is hardware that allows data to be entered into a computer. Common input devices include: keyboard; mouse; scanner; digital camera
ADDITIONAL NOTES:
11
www.revision-notes.co.cc
Storage device
A storage device is hardware that allows data to be saved, long-term, after it has been inputted into the computer. Common storage devices include: Hard disk drive; CD-ROM (or CD-R, CD-RW) USB Flash pen
Output device
An output device is hardware that allows a computer to present data to a user. Common output devices include: Visual display unit (VDU/monitor); Printer; LCD projector.
ADDITIONAL NOTES:
12
www.revision-notes.co.cc
Categories of Software
Candidates should be able to: 3. Describe the different roles and functions of systems software and applications packages.
Systems software
The set of programs needed to control and monitor the operation of the hardware (and applications software) of a computer. Systems software consists of the following: Operating System software Utility programs Programming tools Library programs
Utility programs
Utility programs are non-essentials small programs that are designed to perform common tasks that thousands of computer users benefit from at one time or another. Some utility programs help maintain the functioning of the system and others make life easier for the computer users. Utility programs include: file backup; file compression; disk formatters; disk defragmentation; file recovery; virus detection and cleaning etc.. Performance monitoring programs can also be classified as utility software this is software that is used to monitor disk, memory and processor use.
ADDITIONAL NOTES:
13
www.revision-notes.co.cc
Programming tools
Programming tools include language translators such as compilers and assemblers that are necessary to build programs. They also include interpreters which are necessary to run programs written in languages such as Visual Basic. Note that the MS DOS versions of DEBUG and QBASIC were clearly systems software although some people argue that Visual Basic is closer to applications software.
Library programs
Library programs are files that contain program code, which is available to all applications to share. They allow different applications to communicate and share resources. MS Windows uses many library files known as dynamic link libraries (*.dlls pronounced dee-el-els).
Applications packages
Application packages (software) are the programs that are consciously used by the user to solve problems or perform work related tasks writing a letter, keeping accounts, printing invoices, etc.
Small-scale applications
Even though they are complex in their programming and can contain millions of lines of code, some applications are designed to be installed on a single computer for one user to use. These applications include: word processing; spreadsheets; desktop publishing (DTP); presentation software; drawing packages.
Large-scale applications
Some of the large scale applications can be used by hundreds of people at the same time and store millions upon millions of records. Such applications are often central to large organisations such as banks, supermarkets and other types of large business organisations. These applications include: stock control; payroll; order processing and tracking; utility billing.
ADDITIONAL NOTES:
14
www.revision-notes.co.cc
Problem identification
The problem identification is a statement of the existing problems and description of user requirements as outlined by the customer.
Feasibility Study
A feasibility study is an initial investigation of a problem in order to ascertain whether the proposed system is viable, before spending too much time or money on its development.
ADDITIONAL NOTES:
15
www.revision-notes.co.cc
Analysis
The analysis is a detailed, fact-finding, investigation of the existing system in order to ascertain its strengths and weaknesses and to produce the list of requirements for the new system.
Design
Design is the production of diagrams, tables and algorithms, which show how the new system is to look and work. The design will show: how the interfaces and reports should look; the structure of and relationships between the data; the processing to be used to manipulate/transform the data; the methods to be used for ensuring the security and validity of the data.
Coding
Coding is the creation and editing of the interfaces, code and reports so they look and work as indicated in the design stage. Note that user and technical documentation will also be produced during the coding stage.
Testing
Testing is the process to ensure that the system meets the requirements that were stated in the analysis and also to discover (and eliminate) any errors that might be present.
Conversion
Conversion is the process of installing the new system into the customers organisation and training the employees to use it.
Review
Post-implementation review (also known as evaluation) is a critical examination of a system after it has been in operation for a period of time.
Maintenance
Maintenance is the process of making improvements to a system that is in use. The reasons for maintenance could be to fix bugs, to add new features or to make the system run quicker.
ADDITIONAL NOTES:
16
www.revision-notes.co.cc
An accurate problem definition is needed so that the developers know exactly what is expected from the system. This means that the system that is delivered is going to be what the customer expected. Without an accurately defined problem, it is likely that the software that is developed will not fully satisfy the needs of the end users. Note that there has to be a two-way dialogue between the analyst and the users because: The users do not know a lot about computers and their capabilities; Programmers will not know very much about the way the business works, for which they are developing the software
ADDITIONAL NOTES:
17
www.revision-notes.co.cc
Feasibility Study
Candidates should be able to: 6. Describe the function and purpose of a feasibility study.
After the problem/task has been defined and before a complete detailed study of exactly what is needed within a new system, a feasibility study is undertaken to verify that the system that is required is, in fact, viable and that it is worth proceeding. There are five factors that are considered in a feasibility study: Technical feasibility this investigates whether the hardware and software exists to create the system that is wanted. Economic feasibility this investigates the cost of developing a new system (including the purchase of new hardware) and then determines whether the benefits of a new system would outweigh the costs. Legal feasibility investigates if there is a conflict between what is wanted and the law. For example, would the new system satisfy the requirements of the Data Protection Act? Operational feasibility investigates whether the current working practises within the organisation are adequate to support the new computer system. It is possible that the new system would require employees to perform duties in a different way this may not be acceptable! Schedule feasibility this investigates the amount of time that the new system is likely to take to develop and determines whether it can be developed within the timescale that is available. Estimating cost effectiveness
Costs New Hardware The New software Training (time and money) Conversion (Time) Maintenance (Money) Benefits Reduced Staffing Better service to customers Improved management information Faster processing that speeds up payments from customers
ADDITIONAL NOTES:
18
www.revision-notes.co.cc
When attempting to create a new IT system, it is vital that sufficient information is gained about the way the present system operates. The usual methods of obtaining this information include: Interviewing staff Observation of current procedures Examination of paperwork Surveying (with questionnaires)
Interviewing staff
All levels of staff from end-user to senior management need to be involved during the analysis stage. A systems analyst should try to interview as many of them as possible so that all their needs can be ascertained. Interviews are time-consuming, but very effective. It should be remembered that many of the staff may not be sure exactly what they require and so the system analyst may have to tease out some of their requirements with carefully thought out questions.
Benefits User can express their opinions in a detailed way Extension questions can be asked as a result of the users answers to the original questions Users may feel valued and involved with the new system Drawbacks Time consuming for the analyst Users may feel intimidated and not tell the truth about what they feel is lacking in the existing system
ADDITIONAL NOTES:
19
www.revision-notes.co.cc
CPT1: Computing Fundamentals Observing the staff at work can often prove more advantageous than just interviewing them, because it may uncover processes that they do sub-consciously and do not remember to tell the analyst about during interview.
Benefits Allows the analyst to see the current system at first hand and what processes that are often done sub-consciously Analyst can get a feel for user-competence Analyst can measure the time taken to do tasks Drawbacks Users may work differently if they know that they are being watched.
Examination of paperwork
This will help to show the inputs and outputs of the current system and so help determine the inputs and outputs required by the new one. The paperwork will include documents that are received from an organisations customers such as membership application forms or orders. They will also include documents that are produced by the current system such as the invoices sent to customers and the current reports that are produced for the management team.
Benefits Analyst can get an idea of the volume of data being stored and processed Analyst can see what output is required Analyst can see how data is currently validated Drawbacks Can be time consuming if there is a large volume of files to go through
ADDITIONAL NOTES:
20
www.revision-notes.co.cc
Requirements analysis
Candidates should be able to: 8. Describe what is involved when analysing the requirements of a system, explaining the nature of the requirements specification and its content, including current data structures, inputs, outputs and processing represented in diagrammatic form (data flow diagrams, system flowcharts), identify inefficiencies/problems in the current system.
The deliverable at the end of analysis is documentation that shows an investigation into the current system and a list of system requirements for the new one. These requirements need stated in a clear, specific and measurable way. In order to ascertain these requirements, the systems analyst needs to examine the current data structures and relationships between them. They must also trace the flow of data through the existing system this will begin by determining the source of the various data, identifying the ways in which the data is processed; and finish by identifying the destinations of the final outputs. The analysis documentation will contain the following: Identification of existing and prospective users; Identification of current data and its structure; Identification of inputs, outputs and processes within the current system; Identification of data flows including the sources and destinations of the data; Identification of the strengths and the weakness of the current system; Listing of objectives.
ADDITIONAL NOTES:
21
www.revision-notes.co.cc
ADDITIONAL NOTES:
22
www.revision-notes.co.cc
System flowcharts
A system flowchart shows an outline of how a system operates. The following shows the system flowchart for a schools registration system that stores student attendance data on a magnetic disk in a database called Register.
KEY:
Input/output
On-line storage
Process
ADDITIONAL NOTES:
23
www.revision-notes.co.cc
Design
Candidates should be able to: 9. Describe a design specification including input design, diagrammatic depiction of the overall system, processing, data structure design and output design.
The deliverable at the end of the design stage is documentation that could be used, unaided, by a third-party programmer to create the system as the designer intends. This means that each section of the design must be detailed and clear. Explanations of what must be done and why this method is chosen need to be included. The design documentation will contain the following: user interface designs (input forms and menus); specification of data structures (including the relationships between different types of data); validation procedures; output/report designs; algorithms; security methods.
User interfaces
Humans will need an interface that allows them to: give instructions Print, Save, Open, Delete, Copy, Paste etc. enter data file names, number of pages to print; make choices Yes, No, Cancel etc. Computers need ways to: inform of errors illegal operation, invalid data input, printer out of paper, wrong password: tell on progress copying, deleting, installing, downloading: display the results of processing ask for options e.g. number of pages to be printed, which file to open. provide help with performing tasks this help could be in the form of Status bar text, yellow Tip boxes, an Office Assistant or even a full-blown help file accessed via the Help menu. The user interface designs will need clearly annotated drawings to tell the programmer exactly what is to be done.
ADDITIONAL NOTES:
24
www.revision-notes.co.cc
ADDITIONAL NOTES:
25
www.revision-notes.co.cc
ADDITIONAL NOTES:
26
www.revision-notes.co.cc
Output design
This needs to be detailed in the same way as the input designs. Example of a mail-merge letter output:
ADDITIONAL NOTES:
27
www.revision-notes.co.cc
Testing
Candidates should be able to: 12. Explain the importance of system testing and installation planning. Testing is undertaken to ensure that a system satisfies the users requirements and to discover any errors that might be present. Testing needs to be undertaken by both the programming team and by the end-users. Note that testing a program can never adequately prove or demonstrate the correctness of the system it can only reveal the existence of errors.
ADDITIONAL NOTES:
28
www.revision-notes.co.cc
ADDITIONAL NOTES:
29
www.revision-notes.co.cc
Conversion
Conversion is the process of changing from an existing system to a new system. Note that conversion may take place within a day, or it might be that it is several months before all parts of the new system have replaced the old.
ADDITIONAL NOTES:
30
www.revision-notes.co.cc
Methods of conversion/changeover
The change from the use of an existing system to the use of a new system cannot always be instantaneous. There are several different methods of converting to a new system, the four most common are: Parallel; Direct; Pilot; Phased. Parallel Parallel conversion is when the old system and the new system operate along side each other for a period of time, until all issues with using the new system have been resolved. Parallel conversion allows an organisation to revert to the old system if the new system fails. Direct Direct changeover is when the old system is stopped being used one day and is replaced, in full, by the new system the next day. There is no going back when direct changeover is used. Pilot Pilot conversion is one department within an organisation changes to the new system before the others. This department will discover any problems with the use of the systems and these problems can be ironed out before the rest of the organisation converts to the new system. Phased Phased conversion is when the old system is gradually replaced, in stages, by the new system. This type of changeover is convenient when the system comprises of several different modules. This will allow the organisation to convert to one of the new modules first, but maintain the use of the other existing ones. This type of conversion means that training can be concentrated on one new module at a time. Note that if phased conversion is used, it is vital that the new system and the old system can share data.
ADDITIONAL NOTES:
31
www.revision-notes.co.cc
Evaluation (review)
Candidates should be able to: 10. Explain the importance of evaluating the system, and how to identify the criteria used for evaluation.
Evaluation (also known as post-implementation review) is a critical examination of a system after it has been in operation for a period of time.
Purpose
The purpose of an evaluation is to assess the success of a system. Specifically, it will assess the suitability, effectiveness, usability and maintainability of the system. The evaluation will ask many questions including: can it carry out the all the requirements that were set? is it an improvement on the existing system? is it cost effective? is it easy to use? is the new system compatible with the existing systems? is the system easy to maintain? The evaluation will also consider: what limitations there are in the system; what enhancements could be made to the system in the future. Note that feedback from the end-users should also be included.
Timing
The evaluation will occur after a new system has been in operation for some time usually a period of between three and six months. The waiting period allows users and technical staff to learn how to use the system, get used to new ways of working and understand new procedures required. It allows management a chance to evaluate the usefulness of the reports and on-line queries that they can make and go through several month-end periods when various routine reports will have been produced. Shortcomings of the system, if they exist, will be becoming apparent at all levels of the organisation.
ADDITIONAL NOTES:
32
www.revision-notes.co.cc
System documentation
Candidates should be able to: 11. Explain the content and importance of different types of documentation at different stages in the system life cycle, including the technical and user manuals. There are two types of documentation that are necessary: Technical documentation aimed at a future system developer User documentation/Manual aimed at the end user.
Technical documentation:
Note that technical/system documentation is very valuable for the maintenance process. This is because it will show how each part of a system has been constructed and the reasons why certain choices have been made. The technical documentation should include: Annotated program listing if the system is coded. Data flow diagram System flow diagram Structure charts/pseudo code/algorithm designs Test plan Data dictionary i.e. the field definitions (including data-type, field length, validation) Entity relationship diagrams
User Documentation
As well as a contents page and index, the user documentation should include: Overview of the system Instructions on how to install Instructions on how to backup the data Instructions on how to operate the program Details on possible errors and how to deal with them Glossary of terms used within the documentation
ADDITIONAL NOTES:
33
www.revision-notes.co.cc
Maintenance
Candidates should be able to: 13. Explain the purpose of maintaining the system, and explain the need for system review and reassessment, understanding that software has a limited life span. Maintenance is the process of making improvements to (or modifying) a system that is in use.
ADDITIONAL NOTES:
34
www.revision-notes.co.cc
Types of maintenance
There are three types of maintenance: corrective maintenance; adaptive maintenance; perfective maintenance. Corrective maintenance Corrective maintenance is the removal of some of the known bugs in a program. Software that has been released to the public will still contain bugs. Some of these bugs will be previously unknown to the developers while others will be known to exist, but solutions will not yet have been discovered. The software will be released with these known bugs because of the necessity to meet pre-set target dates and the need to gain some income from the software to continue to pay the developers. Eventually some of the bugs will be fixed and the solutions will need to be incorporated into the publics version of the programs. This type of maintenance is often done by releasing a patch which is a very small program that actually changes lines of code within the main program. These patches are available from Internet sites or from the CD-ROMs that are provided with computer magazines. Adaptive maintenance Adaptive maintenance is the addition of new features to a program because of a change in users requirements. The new version of the program may contain an added (or modified) feature or it may contain a change in the interface. Adaptive maintenance could be needed because of: a change in the organisations/users requirements; a change in the law; a change in processes such as the method of tax calculation; to take account of new technologies. Perfective maintenance Perfective maintenance is when internal routines are changed to make them more efficient, so that the application operates faster. In the initial release of the software some of the processes, although error-free, may have used long and slow routines. Perfective maintenance will make improvements in the way that the software performs by tidying up some of the internal routines. Changes to the interface may also be made.
ADDITIONAL NOTES:
35
www.revision-notes.co.cc
Prototyping
Candidates should be able to: 14. Describe prototyping to demonstrate how a solution will appear. 15. Describe the spiral and waterfall models of the systems life cycle. A prototype is a simplified working model of a proposed system used as a rough indicator of how the new system will work. The prototype will consist of a set of screens and processes that show the user (and developer) what might be possible. It will help a customer to gain a clearer idea of a proposed system so that they can give feedback before the development has gone too far. In the prototyping approach, the analysis establishes an outline specification. A model is then built in order to evaluate it or have it approved before building the production model.
Prototyping can involve the repeated re-development of a system with new features being added as the initially vague requirements are refined.
ADDITIONAL NOTES:
36
www.revision-notes.co.cc
The operating system is an integrated set of programs that is used to control and manage the resources and overall operations of a computer. Its role is to provide a virtual machine by hiding the complexities of the hardware from the user. It does this by providing a buffer between the user and the hardware allowing the user to deal with a simplified system, but without loosing any of its computational powers. In addition to providing the HCI, the Operating System manages the hardware resources in order to provide for an orderly and controlled allocation of the memory, storage media, processor time, and I/O devices among the various processes competing for them.
ADDITIONAL NOTES:
55
www.revision-notes.co.cc
Memory management The operating system has to allocate memory to each running application and to itself. Each application is loaded into its own memory space this means that if one program freezes, the others can, in theory, keep working normally. It also means that you can terminate a frozen program by pressing [Ctrl]+[Alt]+[Delete]. Doing this will not effect any other programs. To manage memory effectively, the operating system must: assign programs their own area of memory; prevent two programs from using the same area of memory; reallocate memory when a program is quit. File management The OS controls the transfer of data from disk to memory and back again. It also has to maintain a directory of the disk so that files and free space can be quickly located. The directory is called the File Allocation Table (FAT for short). To manage files effectively, when files are written to a disk the OS ensures that: existing files are not over-written; when files are deleted from the disk the storage blocks are made available for new files. Allocation of processor time When several processes are executing on a computer at the same time (eg downloading a file, printing and listening to an .mp3), then they will all need to receive time from the processor. Some processes, such as printing, require very little processor time, while other processes require the processor continuously. In such situations the Operating System would place a high priority on printing requests to get them cleared and then allow it to concentrate on the more demanding processes. Input output device management When two programs want to print to the same printer, the operating system has to ensure that the two jobs do not interfere with each other. It would normally do this by putting the jobs into a queue and then pass them to the printer when the printer is ready.
ADDITIONAL NOTES:
56
www.revision-notes.co.cc
Interrupt handling The OS detects and responds to many different kinds of interrupt such as: a user pressing a key on the keyboard; a printer sending a message that it is out of paper; a hardware or software malfunction. In the case of a keyboard interrupt the operating system may simply display the appropriate character on the VDU, but in the case of the printer sending an out of paper interrupt, the operating system will display a message to inform the end-user. Error handling Application software should normally include routines to deal with their own errors. When this is not done, it is necessary for the operating system to deal with them or else the whole computer could crash. The operating system should be able to freeze the program that causes an error and display a message to the end user. A message such as General Protection Fault might be displayed when a badly-written application tries to use an area of memory that has been assigned to the operating system itself. The human/computer interface The HCI allows a user to communicate with the computer. In early operating systems, users gave instructions to the computer by typing command words. Most modern operating systems provide a Graphical User Interface (GUI), which allows a user to choose commands by moving a pointer and clicking on menus.
ADDITIONAL NOTES:
57
www.revision-notes.co.cc
ADDITIONAL NOTES:
58
www.revision-notes.co.cc
ADDITIONAL NOTES:
59
www.revision-notes.co.cc
CPT1: Computing Fundamentals Real-time operating systems are characterised by their ability to: deal with events which happen at unpredictable moments in time; deal with multiple events that occur simultaneously; support application programs which are non-sequential in nature i.e. programs which do not have a START:PROCESS:END structure; carry out processing and produce a response within a specified interval of time. Note that the results of processing may be returned in milliseconds as in the guidance systems of a cruise missile or if the processing is complex, it might take a couple of seconds as in a temperature control system in a large greenhouse. Examples of real-time operating systems: Airline flight reservation; Missile guidance; Temperature/pressure control; Process control. Flight reservation The booking needs to be processed quickly and confirmation given to the customer straight away. When a seat has been booked on a flight, the system needs to be updated before the next transaction occurs in order to avoid the possibility of double-booking. Missile guidance Various sensors that detect the altitude, latitude, speed etc. constantly provide up-to-date information to the guidance system. If the missile is slightly off course then adjustments must be made immediately a one second delay could result in the missile hitting the wrong target. Temperature/pressure control Sensors in a nuclear power station will be providing data on the current temperature of the reactor. If the reactor starts to overheat, then initiating cooling will have to happen instantly to avoid a potentially dangerous situation or meltdown. Sensors in a greenhouse will be providing data on the current temperature and humidity. If either goes outside the preset range then an action such as opening/closing the greenhouse windows will need to occur straight away. Process control In manufacturing processes 1000s of signals per second can arrive from sensors attached to the system being controlled. Because such systems are extremely fast moving, the response time may have to be less than one thousandth of a second.
ADDITIONAL NOTES:
60
www.revision-notes.co.cc
Distributed system
A distributed system is one in which file storage (or processing) is shared between different computers at different locations. Users of a distributed system will be unaware of the exact physical location of the data that they are accessing it is likely that one set of records is retrieved from one remote system and the next set of records is retrieved from another! An example is a banking system where the data for each customer is held on the server at their local branch, but is accessible from any branch.
ADDITIONAL NOTES:
61
www.revision-notes.co.cc
ADDITIONAL NOTES:
62
www.revision-notes.co.cc
Forms
This kind of interface presents the user with an on-screen form into which they enter or view data. The form will often be arranged into different sections and will consist of text-boxes, checkboxes, radio buttons, drop down lists and other input controls to help the user enter data quickly and to help with validation.
Travel agents and other booking systems would typically use a form interface.
ADDITIONAL NOTES:
63
www.revision-notes.co.cc
Menu interface
A menu interface is one that provides a list of choices from which the user can choose by pointing to/clicking on. Each choice that the user selects will display a screen with other choices and ultimately the desired choice.
ATMs and mobile phones often use menu driven interfaces and so do the ticket machines on the London underground and many tourist information systems. The benefits of a menu interface is: less human error the user can only choose from the options available; user is restricted from accessing other parts of the system. The drawbacks include: there may be no shortcuts for accessing common choices. Tourist information systems would typically use a menu interface with a touch-screen to act as both an input and output device. This: avoids the need for additional peripherals such as a mouse; allows ease of use by indicating possible choices with icons (not just text); provides an enclosed system with protection against vandals and the weather (can be used outside).
ADDITIONAL NOTES:
64
www.revision-notes.co.cc
This kind of interface is sometimes called a WIMP and consists of the following: Windows; Icons; Menus; Pointer.
ADDITIONAL NOTES:
65
www.revision-notes.co.cc
Windows A window is a bounded area of the screen within which a specific task is executing e.g. word processing, web browsing, file management etc. Icons An icon is a small image that represents a program, folder, a device or a file. Menus A menu is a listing of options from which a user may choose menus in a GUI are usually pop-up or drop-down. Pointer A pointer is an on-screen arrow, usually controlled by mouse, used for navigation and to select appropriate options by clicking a button. Note that it is possible to set the pointer to be an image other than an arrow, but doing this often makes the system harder to use. Benefits and drawbacks of a GUI
Benefits Easy for a novice because a GUI is usually intuitive the screen is arranged as a metaphor of a desktop with icons used to represent familiar objects. User does not have to remember the precise format of the instructions instructions are initiated by selecting icons or menu commands. There is likely to be comprehensive, easy to navigate, on-line help available. Modern GUIs allow very easy execution of some commands by drag and drop. Drawbacks Powerful hardware is required fast processor, high quality graphics card and VDU, RAM and HDD with large capacity. Can be frustrating for an experienced user to perform certain tasks because a greater number of operations may be required. Not all instructions are available through the GUI the command line will still need to be used for many technical tasks.
ADDITIONAL NOTES:
66
www.revision-notes.co.cc
Natural Language
A natural language interface is one which allows a user to communicate with the computer by speaking or typing in their normal way. Ask Jeeves was a natural language search engine it will allow you to type a question in the normal way and it will interpret the question and provide the answer if it can. Below is an example:
The image part with relationship ID rId47 was not found in the le.
Type the question in your usual language what is the capital of France?
The image part with relationship ID rId48 was not found in the le.
ADDITIONAL NOTES:
67
www.revision-notes.co.cc
The command prompt is the > character and the C:\ is the pathname for the current directory. The user typing the following command:
C:\>Del *.doc
will cause all files in the current directory with the extension .doc to be deleted. Another command with MS DOS is:
C:\>copy MyFile.doc C:\Backups\MyFile.bak
This command copies the file called MyFile.doc into the directory called Backups and renames the file MyFile.bak. Sometimes switches can be used with commands:
C:\>xcopy C:\Backups A:\Backups /s /e
This command copies the directory named Backups from disk C: onto disk A: the /s means that subdirectories are copied too, and the /e means that empty directories are also copied. A command line interface is not for novice users, but is often used by an IT technician who needs to perform tasks that are difficult when using a GUI. When using a command line, the user must only type valid commands and they must be typed in the correct format omitting a space or a \ will usually cause the command to fail.
ADDITIONAL NOTES:
68
www.revision-notes.co.cc
ADDITIONAL NOTES:
69
www.revision-notes.co.cc
Pure binary
Pure binary represents numbers using just two digits (0 and 1) and columns, which increase by a factor of two. This is in contrast to our normal number system (denary), which uses ten digits (0-9) and columns, which increase by a factor of ten. In denary the number one hundred and ninety seven is represented as:
100 1 10 9 1 7
ADDITIONAL NOTES:
77
www.revision-notes.co.cc
Can you see the pattern? Converting from binary to denary A binary number, such as 1001 0101, can be converted into its denary equivalent as follows: 1. Write the binary number with the appropriate column headings:
128 1 64 0 32 0 16 1 8 0 4 1 2 0 1 1
2.
Add the column headings under which there is a binary 1: = 128 + 16 + 4 + 1 = 149
ADDITIONAL NOTES:
78
www.revision-notes.co.cc
Converting from denary to binary A denary number, such as 107, can be converted into binary as follows: 1. Write down the binary column headings:
128 64 32 16 8 4 2 1
2.
Then, starting from the left, take out the values in the column headings, if possible: 128 cannot be taken out of 107 so that column contains a 0:
128 0 64 32 16 8 4 2 1
64 can be taken out of 107 so that column contains a 1; this leaves 107 64 = 43:
128 0 64 1 32 16 8 4 2 1
3.
keep repeating the above process until the whole number has been converted to pure binary:
128 0 64 1 32 1 16 0 8 1 4 0 2 1 1 1
ADDITIONAL NOTES:
79
www.revision-notes.co.cc
Note that the higher codes are not used in BCD because they do not represent a denary digit. These are:
1 1 1 1 1 1 0 0 1 1 1 1 1 1 0 0 1 1 0 1 0 1 0 1
Not used in BCD because their denary equivalents are higher than 9.
ADDITIONAL NOTES:
80
www.revision-notes.co.cc
Converting from denary to BCD Each digit is converted to its 4-bit BCD equivalent. Thus, the number 319 would be represented in 12-bits as follows:
8 0 4 0 (3) 2 1 1 1 8 0 4 0 (1) 2 0 1 1 8 1 4 0 (9) 2 0 1 1
Converting from BCD to denary Each group of 4-bits are converted into the equivalent denary digit. Thus, the 12-bit binary coded decimal number 0110 1000 0011 is denary 683 as shown:
8 0 4 01 6 2 1 1 0 8 1 4 0 8 2 0 1 0 8 0 4 0 3 2 1 1 1
Octal
The octal number system uses eight digits (0 to 7) to represent numbers, and columns which increase by a factor of eight.
4096 512 64 8 1
Converting from octal to denary The octal number 652 would be converted to denary as shown:
4096 512 64 6 8 5 1 2
(6 64) + (5 8) + (2 1) = 426
ADDITIONAL NOTES:
81
www.revision-notes.co.cc
CPT1: Computing Fundamentals Converting between octal and binary The octal number 652 (426 in denary) is represented in binary as:
256 1 128 1 64 0 32 1 16 0 8 1 4 0 2 1 1 0
If we combine the bits in groups of three and label with the appropriate column headings
4 1 2 1 6 1 0 4 1 2 0 5 1 1 4 0 2 1 2 1 0
we can see that converting from octal to binary converts each digit into its 3-bit binary equivalent (very similar as converting between denary and BCD). Thus the octal equivalent of binary number 10011101 will be:
4 0 2 1 2 1 0 4 0 2 1 3 1 1 4 1 2 0 5 1 1
Note the extra 0 added at the front because the original binary was only 8-bits.
ADDITIONAL NOTES:
82
www.revision-notes.co.cc
Hexadecimal
The hexadecimal number system uses 16 digits to represent numbers. The denary digits 0 9 are used together with the first six letters of the alphabet (A F). With hexadecimal, instead of column headings doubling, as they do in binary, or increasing by a factor of 10 as they do in denary, each column heading in hexadecimal increases by a factor of 16. The column headings are:
65,536 4096 256 16 1
Examples of hexadecimal numbers include: 3FC2, CFF8, 92B0, EE4D, ACDC. Note that the number 9375 could either be ordinary denary or hexadecimal to make it clear the symbols h, # or & are often used. Thus, if the number was in hexadecimal, it would be written as 9375h, #9375 or &9375. Converting from hexadecimal to denary The hexadecimal number 2C5A can be converted into its denary equivalent as follows: 1. Write the hexadecimal number with the appropriate column headings:
4096 2 256 C 16 5 1 A
2.
Noting that A 10 and C 12, convert in the same way as conversion from binary to denary: = (4096 x 2) + (256 x 12) + (16 x 5) + (1 x 10) = 11 354
ADDITIONAL NOTES:
83
www.revision-notes.co.cc
Converting from hexadecimal to binary This uses the same method as octal to binary, except each hexadecimal digit is represented by 4bits. Thus, the hexadecimal number B7C can be converted into a 12-bit binary as follows:
8 1 4 0 (B) 2 1 1 1 8 0 4 1 (7) 2 1 1 1 8 1 4 1 (C) 2 0 1 0
Converting from denary to hexadecimal Convert to binary first and then to hexadecimal. For example, 462 can be converted as follows: Convert to binary:
2048 0 1024 0 512 0 256 1 128 1 64 1 32 0 16 0 8 1 4 1 2 1 1 0
Uses of hexadecimal Hexadecimal is often used by Assembly language programmers to reference memory. It is also used within HTML property values specifically background and font colours. There are three advantages of using hexadecimal: hexadecimal is quicker for a programmer to enter into a computer than binary; hexadecimal is easier for a programmer to understand and remember 8F8B is easier to remember than 1000111110001011. it is very easy to convert between binary to hexadecimal.
ADDITIONAL NOTES:
84
www.revision-notes.co.cc
Summary
Expressing the denary number 195 as eight-bit binary, BCD, octal and hexadecimal: Binary
128 1 64 1 32 0 16 0 8 0 4 0 2 1 1 1
BCD
8 0 4 0 2 0 1 1 8 1 4 0 2 0 1 1 8 0 4 1 2 0 1 1
Octal
512 0 64 3 8 0 1 3
or:
Pure Binary: Group in threes: Octal: 0 1 1 3 1 1 0 0 0 0 0 0 0 0 0 1 1 3 1 1
Hexadecimal
4096 256 16 C 1 3
or:
Pure Binary: Group in fours: Hexadecimal: 1 1 1 1 C 0 0 0 0 0 0 0 0 3 1 1 1 1
ADDITIONAL NOTES:
85
www.revision-notes.co.cc
Twos compliment
Twos compliment is a method of representing negative numbers in binary, whereby the most significant bit maintains its magnitude, but is made negative. If, for example, one byte is used to represent a signed integer using the twos compliment method, the column headings would become:
128 64 32 16 8 4 2 1
Notes: negative numbers will always start with a 1 and positives will start will a 0; the range of integers that can be represented using one byte is from 128 up to + 127.
128 1 0 64 0 1 32 0 1 16 0 1 8 0 1 4 0 1 2 0 1 1 0 1 = 128 = + 127
ADDITIONAL NOTES:
86
www.revision-notes.co.cc
Converting a negative denary integer into twos complement Due to the way that binary numbers work, there is an easy trick that allows very fast conversion. Taking the denary integer 52 as an example, you can use the three stages shown below: Stage one Convert the positive form of the number into unsigned binary:
128 0 64 0 32 1 16 1 8 0 4 1 2 0 1 0 = + 52
Stage two Starting at the right hand side, copy each bit, up to and including the first 1:
128 0 64 0 32 1 16 1 8 0 4 1 1 2 0 0 1 0 0
ADDITIONAL NOTES:
87
www.revision-notes.co.cc
Converting a twos complement number into denary This is the same as converting any binary number into denary, as long as you remember that the most significant bit is negative. For example the signed binary number 1 1 0 1 0 1 0 1 is converted as follows:
128 1 64 1 32 0 16 1 8 0 4 1 2 0 1 1
= 128 + 64 + 16 + 4 + 1 = 43
= (64 + 8 + 4) = 76 Notes: the range of integers that can be represented using one byte is from 127 up to + 127. although the sign and magnitude method is easier for humans it is much harder to use for computers performing arithmetic.
SPOT CHECK 1. Assuming a single byte is used, convert the following numbers into twos compliment binary: (a) 5 (b) 10 (c) 20
2. What is the denary value of 1010 1011 if the binary codes represent: (a) a twos compliment number (b) a sign and magnitude number
ADDITIONAL NOTES:
88
www.revision-notes.co.cc
Binary arithmetic
Candidates should be able to: 28. Perform integer binary arithmetic, that is addition and subtraction.
Addition
Computers will only ever add two numbers at a time if three numbers need to be added, a computer will add the first two and then add the third number will be added to the result. Since only two numbers are added at a time, there are limited outcomes: 0+0=0 0+1=1 1+0=1 1 + 1 = 2 (10 in binary this is 0 down and carry 1) Note that when you add a carry to the next column, it is possible for: 1 + 1 + 1 (the carry) = 3 (11 in binary this is 1 down and carry 1) This is better shown if we add 1010 1110 1100 and 0011 1010 1010:
1 0
Carried bits
0 0
1
1 1
1
0 1
1
1 1
1
1 0
1
1 1 0
0 0
1
1 1 0
1 0 1
0 1 1
0 0 0
ADDITIONAL NOTES:
89
www.revision-notes.co.cc
Subtraction
To perform subtraction, the number to be subtracted is converted into its twos compliment negative and then added. For example to subtract 12 from 25: 1. Convert the 12 into twos compliment 12
128 12 12 0 1 64 0 1 32 0 1 16 0 1 8 1 0 4 1 1 2 0 0 1 0 0
2.
1 0
1
1 0
1
1 0
1
1 1 0
0 1 1
1 0 1
0 0 0
0 1 1
SPOT CHECK 1. Work out the following using binary addition and subtraction: (a) 34 + 73 (b) 67 96
ADDITIONAL NOTES:
90
www.revision-notes.co.cc
Character Set
A character set are the characters that can be recognised by a computer.
Character encoding
A computer is able to represent four types of characters: alphanumeric characters letters A Z and a z and the digits 0 9. punctuation characters and other special symbols such as , . ; : ! @ $ % & * ( ) + < graphical characters such as , , , , , , , , , (and many more); control characters [Return], [Esc], [Space], [Alt], etc. Within a computer, each character is represented using a unique binary code. Although there are many different methods of encoding the characters, three of the most common are ASCII, EBCDIC and Unicode.
ASCII
American Standard Code for Information Interchange (ASCII) is used for character encoding by most Windows PCs. ASCII can be used to translate alphanumeric characters into a 7-bit binary code that represents all the characters available from the keyboard including punctuation and some special symbols such as @, # and $:
A development of ASCII, known as Extended ASCII, uses an 8-bit code that also defines codes for additional characters, including some graphical ones. Note that using an 8-bit code means the maximum number of characters that can be represented is 256.
ADDITIONAL NOTES:
91
www.revision-notes.co.cc
CPT1: Computing Fundamentals How character encoding works The diagram below shows how the message Hello World is stored in the memory of a computer using the ASCII codes:
The message is typed at the keyboard. Electronics in the keyboard convert the typed characters into ASCII binary codes that are sent from the keyboard along a cable to the computer. The computer stores these codes in its internal memory. The computer also provides a visual display of the characters as they are typed. To be able to do this, electronics inside the computer convert the stored binary codes back into their character equivalents.
EBCDIC
Extended Binary Coded Decimal Interchange Code (EBCDIC) was developed by IBM for use in their mainframe systems. It has the same limitation as ASCII in that its 8-bit code can only define 256 different characters.
ADDITIONAL NOTES:
92
www.revision-notes.co.cc
CPT1: Computing Fundamentals Notice how the EBCDIC codes are completely different to ASCII if a message was sent that had been encoded using ASCII, but received by a system that used EBCDIC, then the resulting message would not make sense.
Unicode.
Unicode is an international system of representing characters using 16 bits. Using 16 bits means that 216 = 65 536 different characters can be represented (thus overcoming the limitation of ASCII and EBCDIC). Unicode allows every character from most alphabets to have a code of its own Chinese, Russian, Greek, Urdu etc, including Egyptian Hieroglyphics. Note that there are plenty of spare codes that are used for mathematical symbols, common graphics and even the Braille symbols
Some of the Mongolian characters: Some of the Hebrew characters
ADDITIONAL NOTES:
93
www.revision-notes.co.cc
ADDITIONAL NOTES:
94
www.revision-notes.co.cc
Keyboard
The keyboard remains the most common input device although in terms of speed, it is one of the most limited. It is, however, suitable for entering a wide range of data and it is a device that is familiar to every office worker. Every key on a keyboard has a switch underneath it when a key is pressed the switch is closed and a signal is sent to the computer. Keyboards are wired so that the signal which is sent is determined by the row and the column in which the key is. Most keyboards have the keys arranged in the same way as the once popular typewriter this arrangement is known as QWERTY because it is the order of the first characters. This QWERTY layout was designed to reduce the risk of jamming on early mechanical typewriters by spreading the most commonly used letters around the keyboard this effectively slowed down the typist. Improved layouts have been designed such as the Dvorak layout which rearranges the keys in an attempt to distribute typing more evenly among the fingers of both hands. Using these improved layouts increases the speed at which data can be entered. Such layouts have never become popular, however, because there has been no general agreement on a standard layout and also because of the time that it takes to get used to a new arrangement. Modern keyboards have in excess of 105 keys that include 12 or more function keys, some of which can be programmed by the user. Other keys have specialist functions that can be used for navigation within a document, to copy an image of the screen, to put the computer into energy saving mode or to
ADDITIONAL NOTES:
95
www.revision-notes.co.cc
CPT1: Computing Fundamentals display the Start Menu if using Microsoft Windows. Note that standard text entry using a keyboard is usually between 20 and 60 words per minute (wpm), but a trained operator can reach speeds in excess of 100 wpm.
Graphics Tablet
A graphics tablet is a specialist input device that is used to trace (or create original) drawings, pictures and designs into a computer. It consists of a flat tablet and a pen-like stylus. Software detects the movement of the stylus on the tablets surface and the changes to the image are immediately displayed upon the screen of the VDU. This provides an input device that is used in a similar way to paper and pencil.
Light Pen
This is used in a similar way to a graphics tablet except the light pen is moved over the VDU screen itself. The pen is triggered by the raster scan of the VDU it detects when the electron beam building up the screen image has just passed the point where the pen is positioned. Knowing the instant at which the beam passed the pen, the software can calculate whereabouts on the screen it has been placed.
ADDITIONAL NOTES:
96
www.revision-notes.co.cc
Digital camera
These capture still images. There are some available that will capture short movie sequences onto a flash memory card. The resolutions of these devices has improved significantly in the last few years and now images can be captured that are barely Digitisers distinguishable from a traditional photograph caught on film.
Digitiser is the name given to any device that changes analogue data into digital data that can be processed by a computer. A video digitiser can convert the signal from a television or videotape; a digital camera converts light and a sound card converts sound.
ADDITIONAL NOTES:
97
www.revision-notes.co.cc
CPT1: Computing Fundamentals Music can be captured through a sound card where it can then be edited and mixed. Voice recognition Voice recognition is software that will either allow a user to give a computer commands or it will translate the users spoken words into editable, word processing text. Modern voice recognition systems can translate with over 90% accuracy. Note that when attempting to use voice recognition software the user should use a microphone that filters out background noise.
Benefits Its a natural way for humans to communicate People with disabilities can use this system Its hands free allows users to do other tasks Not much training is needed for the user Drawbacks It will be hard for a computer to understand a user with a strong accent. Background noise might make the system unusable in certain environments
Uses of voice recognition include: fast entry of text into a word processing document e.g. the first draft of an essay; used with telephones so that a user can pay bills using a credit card, without having a human at the other end of the line.
Digital camcorder
Although Digital Video (DV) camcorders capture moving images onto a magnetic tape, the data is digitally encoded. This means that the movie can be transferred to a computer (usually via a firewire or USB port) and then edited. After all editing has finished the video can be transferred back to the camera tape, recorded onto a standard VHS video tape or even transferred onto a DVD. In either case, the quality of the final movie is very high and does not reduce in quality after being played a number of times. Some digital camcorders will record video straight onto a DVD-R.
ADDITIONAL NOTES:
98
www.revision-notes.co.cc
CPT1: Computing Fundamentals Data capture can be divided into two broad methods: Document reading and scanning methods here the data is present on the source document in computer readable format. The data may be pre-printed (as in a bar code) or added to the document before input (as when buying a lottery ticket). In some cases the whole document is fed into the computer and the data is read from it, but in other cases, only the section of the document that contains the data is scanned into the computer. Sensing methods special sensors are used to obtain the data and it is transmitted straight to the computer. Examples include automatic weather stations; speed cameras; ten-pin bowling or even PIRS on alarm systems.
ADDITIONAL NOTES:
99
www.revision-notes.co.cc
Magnetic Ink Character Recognition (MICR) Specially formatted characters are printed in a magnetic ink on the document. When the characters are passed through a magnetic field each of them produces a unique effect on the field and so they are detected. MICR is very accurate and it is unaffected if the source document is dirty or creased. It is difficult to tamper with data written using magnetic ink. It is, however, expensive to print the magnetic characters on the source document. This high cost makes its use prohibitive in most cases except for on cheques and paying in slips. These are the only significant use of this method. A chequebook is pre-printed with bank sort code, customer account number and cheque number. The value of the cheque is printed in MICR characters when the clearing bank processes the cheque, before it is read by the computer Optical Mark Reader (OMR) OMR uses an accurately laid out pre-printed source document. For input, this source document is marked in pre-determined positions. Normally the mark made is a (soft) pencil or black biro line joining two dots on the document. The completed document is passed through a light beam. The dark marks that have been made on the source document reflect very little of the light and so the position of mark is recognised. The document itself is printed in ink that will not be seen by the reader (eg red). Lines down the edge of the document allow the reader to determine the orientation and position of the document as it passes through. Several thousand documents can be read each hour. OMR provides an easy way for users to record data where there are a limited number of possible inputs. OMR is used for selecting numbers in The National Lottery and it can be used to capture answers to multiple-choice examinations. Further possible uses would be collecting survey information and to collect certain types of numerical data. It has been used for collecting meter readings but is now superseded by hand held data recorders that store the meter readings in RAM. A major advantage of OMR is that no special equipment is needed to produce the marks. Disadvantages of OMR are that creased or dirty documents cannot be read. If the user alters an entry the resultant smudging may make the document unreadable. It can only collect a limited range of responses that can be indicated in advance on the form. When batch processing is used with OMR (e.g. when processing multiple-choice answer sheets) there must be a hopper for rejected documents that cannot be read or which have entries that were not permitted e.g. two answers to a question. These documents would need to be examined by the operator and the data input manually.
ADDITIONAL NOTES:
100
www.revision-notes.co.cc
CPT1: Computing Fundamentals OMR is useful for turnaround documents. These are documents that originate from the computer with some data already present, the missing parts are then completed and the document is used to input additional data. In the case of multiple choice answer sheets the candidate number and the centre number would be printed in OMR form on the answer sheet before being sent to the school. Candidates would then complete the test by marking the answer sheets in the appropriate places. The sheets would then be returned to the exam board and processed one after the other as a batch. Optical Character Recognition (OCR) Printed or even hand-written characters on the document are compared with stored character shapes. Up to 300 pages per minute can be scanned. Note that there may be problems with distinguishing between O and 0, I and 1 unless special fonts are used. OCR is useful for inputting large volumes of text perhaps for later checking and editing. An example might be to input a long list of addresses that are available in printed form only. OCR is heavily used in turnaround documents in applications such as gas, electric and water utility billing and insurance premium renewal. The bill is prepared with OCR customer identification and posted. When the customer pays the bill they return part of the original document with their payment and this is fed back into the system via an OCR reader. The post office use OCR to recognise the hand-written post codes on envelopes this allows fast sorting of the mail. As with OMR, provision must be made for collecting and inputting data from rejected documents these details will have to be entered manually. Bar Code Reader A bar code consists of a series of lines. A standard EAN (European Article Number) format is used on most products. This consists of 13 digits with two lines representing each of the digits. The thickness and spacing of the lines determines the digit represented. A wand, a gun or a fixed scanner can read the bar code. Note that the bar code number is usually printed underneath the bar code itself so that it can be manually entered if the bar code does not scan correctly. The choice of device is usually determined by the application a wand is often used in libraries because a book has to be both scanned and stamped and it is easy for the librarian to hold both the wand and the stamp in the same hand; a scanner is used in supermarkets for speed; a gun is used in DIY stores because some goods will be too large to pass over a fixed scanner. Bar codes are limited to data that can be coded numerically e.g. product code, stock number, library number. They have the advantage that a computer using a normal printer can print them so that in house systems are possible with an application generating its own bar codes. This makes it a cost-effective solution for libraries, stock and production control etc. Movement of stock through a warehouse could be captured using bar codes attached to stock items. The major application of bar codes is in combination with Point of Sales Terminals in supermarkets
ADDITIONAL NOTES:
101
www.revision-notes.co.cc
CPT1: Computing Fundamentals In some applications it will be necessary to have additional data capture or input to allow for items that have no bar code e.g. vegetables at the supermarket Magnetic Stripe Cards This is any plastic card with a magnetic strip on the back. The strip stores data that is read when the card is wiped through a reader. In the case of credit and cheque cards the magnetic strip will contain the account number, the type of card and the expiry date. Another use of these cards includes security passes where the card opens an electronic lock and the data read from the card can be used to keep track of where people have been. Magnetic stripe cards are commonly used in sales promotions and loyalty card schemes. These are where customers collect points on their card every time they buy something (Note that with the Nectar card and Tescos Club card, the number of points that a customer has earned is stored on a central computer whereas in the Premier Points scheme, the points are stored on the card itself (ie data on the card is both read and written). In security and banking applications the user will have a changeable PIN number that is used to authorise the cards use. The PIN number is no longer stored on the card but it is held in encrypted form on the processing device. Smart Cards A smart card is a card that is the same size as a standard credit card but is embedded with a microprocessor and a memory chip. This chip can hold a lot more information that a small strip of magnetic tape and the chip is very hard to copy. It is also very hard to damage a chip on a smart card. Smart cards are seen by many people as the method of eliminating the need for real money some schools already use smart cards to pay for school meals instead of using cash. In these schools, each student pays 10 (or so) for a smart card that is loaded with 10 of cash. Whenever they buy a school meal, the card is taken by one of the dinner supervisors where it is read by a special machine and the cost of the dinner is taken from the card. When the card runs low on funds, the student takes it to the school office together with payment and the appropriate amount of cash is then added to the card. Note that many mobile phones have some kind of smart card in them. Sensors In specialised applications sensors may be used to detect events and feed data directly into a computer. Examples involve most control applications such as traffic lights, burglar alarms, washing machines etc. The sensors used will usually be specific to the application e.g. detectors embedded in the road for traffic light systems. The sensors may be remote and in certain situations they may store the data locally for later transmission to the computer or perhaps collection. This type of data collection is often called data logging. The data logger may transmit data to the computer via cable or radio link or it may write data to a cassette.
ADDITIONAL NOTES:
102
www.revision-notes.co.cc
Backing up
Backing up is making a copy of a file(s) onto a separate removable storage medium so that data can be recovered if the original is deleted or corrupted. Possible media for backup include floppy disk, zip disk, CD-RW, DVD-RW, USB Pen or magnetic tape. The copy must be stored safely - away from the original. In a commercial environment the copy would be stored in a fire-proof safe or sometimes taken off-site. Sometimes a whole hard disk is copied, other times it is only the contents of a particular folder or sometimes an incremental backup is done which only copies the files that have changed.
Archiving
Archiving is removing old data from an on-line system and storing it off-line onto a separate, removable storage medium. The purpose of archiving is to free up online storage space and still retain a copy of the old data in case it is needed some time in the future. As well as freeing up storage space, archiving will also speed up the online system.
Backup strategies
Aim of a backup strategy
The aim of backup strategy is to have a secure, up-to-date, copy of data so that a file or even a whole hard disk can be recovered if necessary.
Backup phases
A backup strategy consists of two phases: copying the data when the computer system is working normally restoring part, or all of the data in the event of loss or corruption. In some scenarios, it may be essential to implement phase two immediately after data loss, but in other situations a couple of days may be sufficient.
ADDITIONAL NOTES:
113
www.revision-notes.co.cc
Simple backup
The simplest backup strategy is to copy the entire contents of a computers hard disk onto a tape at the end of each day. The tape will then be stored in a fireproof safe or even taken off-site by a manager. A different tape is used each day of the week. This backup strategy is not practical in large organisations that have vast amounts of data to copy the copying might continue into the next day and all the data may not fit onto a single tape. Large organisations need to consider their backup strategies more carefully. For example a large organisation will store its data-files in a separate directory (or on a separate disk) to the software programs. This allows the data-files to be backed up every day, whilst allowing backup of the software programs to occur only when there have been changes. Also, large organisations usually only backup the entire data-file directory once each week on the other days there will be an incremental backup of only those files that have changed since the last backup.
ADDITIONAL NOTES:
114
www.revision-notes.co.cc
CPT1: Computing Fundamentals Locations of backup storage The backed up data needs to be held in a secure location in case of fire or burglary. There is little point in keeping the backup tapes in the same room as the server from which the data is copied a fire would destroy both the original and the copy. The backed up data should either be stored in a separate building within the organisation, or taken off-site in either case, the tapes/disks should be stored in a fire-proof safe. Time of day/night to perform the backup Most organisations will time a backup to occur during the night when the computer systems are not in use. This will allow all the files to be copied successfully because most backup software will not copy files that are in use. Another benefit of night-time backup is that the main users of the system will not be affected by the inevitable slowing down that occurs during the backup process. What data is to be backed up The directory that contains the software only needs to be backed up after an upgrade or reconfiguration. The directory that contains the users files can be backed up in two ways a full backup will copy every single file whilst an incremental backup will only copy files that have been changed since the previous backup. A full backup will typically occur at the end of a week (e.g. on a Friday) and an incremental backup will generally be chosen for all the other days. Length of time that backups are kept Many organisations use a different tape each day of the week. This means that a tape is rewritten after just 7 days (not much time to spot an error). A better strategy would be: keep the Monday to Thursday incremental backups for one week; keep the Friday full backup for a month keep the last backup of each month for a year. This strategy allows data to be recovered even if the corruption\loss is not discovered for several months. You may end up using about 20 tapes, but the security of the data is worth it.
RAID (Redundant Array of Inexpensive Disks) RAID is a process, which writes data simultaneously to more than one disk. In its simplest form, one hard disk is mirrored to another and so there is an exact and 100% up-to-date copy that can be used if one disk fails. Note that RAID is not backup because a file deleted from one disk will also be deleted from the other and the data is not copied onto a removable medium and it is possible that two hard disks will fail simultaneously, thus losing all the data.
ADDITIONAL NOTES:
115
www.revision-notes.co.cc
ADDITIONAL NOTES:
116
www.revision-notes.co.cc
1.9 HARDWARE
Components of the processor
Candidates should be able to: 34. Describe the function and purpose of the control unit, memory unit and ALU (arithmetic logic unit) as individual parts of a computer.
Control Unit
The Control Unit manages the execution of instructions by fetching them from memory, then decoding and executing them one at a time.
Memory unit
The memory unit is where the data and instructions are held so that they can be accessed by the processor. The memory unit stores: the parts of the operating system that are currently in use; the parts of the application programs that are currently in use; the data files that are currently in use.
ADDITIONAL NOTES:
117
www.revision-notes.co.cc
Registers
Candidates should be able to: 35. Explain the need for, and use of, registers in the functioning of the processor (Program Counter, Memory Address Register, Memory Data Register, Current Instruction Register and Accumulator). A register is a small area of memory, within the processor itself, where data or control information is temporarily stored. Registers are used because transferring data to and from a register is much quicker than transferring the data between the processor and main memory.
ADDITIONAL NOTES:
118
www.revision-notes.co.cc
System bus
Candidates should be able to: 36. Explain the need for, and describe the use of, buses to convey information (Data, Address and Control buses). The System bus is a set of parallel lines that connect the internal components of a computer. The system bus is comprises of three separate elements: address bus; data bus; control bus.
Address bus
The address bus is the set of parallel lines that carries the memory address (location) of where data is to be read from or written to. The address bus is a one-way bus in that the addresses are always provided by the processor. A wide address bus is necessary if large amounts of memory need to be used.
To address 16 Mbytes of memory the address bus must have at least 24 lines (224 = 16 Meg!)
ADDITIONAL NOTES:
119
www.revision-notes.co.cc
Data bus
The data bus is the set of parallel lines that carry the program instructions and data between the internal components such as CPU and the main memory, or main memory and secondary storage. This is a two-way bus in that the data can be transferred in either direction from the CPU to main memory, or from main memory to the CPU. A wide data bus allows data to be transmitted quickly and is an important factor in determining the overall speed of a computer. The diagram below shows that a 32-bit bus transmits data four times as fast as an 8-bit data bus:
Control bus
The control bus is the set of parallel lines that carries control signals that provide status information and controls the flow of data. Note that the control bus is two-way although some of the lines are only one way! Signals carried on the control bus The control bus will carry signals for the following: status indicates whether data is to be read or written; timing ensures that the data transfers are kept in sync.; transfer acknowledgement confirming that a data transfer was successful; interrupt both interrupt request and acknowledgement.
ADDITIONAL NOTES:
120
www.revision-notes.co.cc
Connectivity of devices
Candidates should be able to: 37. Describe the connectivity of devices (methods of hard wiring, and wireless connections).
Hard wiring
Connecting computers as a network Although wireless connections are becoming more popular, the most common method used to connect computers together is still to use cable. The standard types of cable are: Coaxial similar to the cable that links an antenna to a television. It carries an electric signal down a single, central wire. This type of cabling is not used very much any more. Unshielded twisted pair (UTP) effectively telephone cable, but of better quality and with 8 wires. This is the most common type of cable to use with Local Area Networks and can transmit data at speeds of up to 100 Mbps. Fibre-optic the same cable as is used for cable television. This type of cable consists of a very thin strand of glass, or plastic, that is completely surrounded by glass, or plastic, of a different density. This allows a pulse of light to bounce down the cable. When travelling along fibre-optic cable, the data literally travels at the speed of light! Connecting computers and peripherals The two modern ways of connecting a peripheral to a computer is to use USB or FireWire: USB (universal serial bus) this is the most common way of connecting peripherals (such as printers, scanners and digital cameras) to your computer. USB originally allowed data to be transferred at 12 Mbps, but in its latest form (known as USB2) it can transfer data at speeds of up to 480 Mbps. FireWire (also known as i-link or 1394) a fast way of connecting a peripheral device to your PC. It is usually used with Digital Camcorders and external HDDs. Speeds of up to 800 Mbps can be achieved with FireWire 2.
ADDITIONAL NOTES:
121
www.revision-notes.co.cc
Wireless
Wireless media do not use an electrical or optical conductor. In most cases the earths atmosphere is the physical path for the data. The common types of wireless media that transmit data use electromagnetic waves and are: Radio waves the distances that can be covered by radio waves are dependent upon the frequency, but can be hundreds of miles. Microwaves these are transmitted at much higher frequencies than radio waves and will provide better performance. Satellite dishes are often used with microwave transmission where communication can be directly between two systems within the same geographical area or it can make use of a satellite in geosynchronous orbit 50 000 km above the earth. Infrared this uses invisible infrared light to transmit the data. Most household remote controls (used with televisions and videos, etc.) use infrared transmissions. Infrared transmissions are either point-to-point or they can be reflected off walls and ceilings; they cannot travel more than a few metres and they cannot pass through walls. Diagram showing the range of electromagnetic waves that can be used to transmit data:
Bluetooth Bluetooth is one of the latest radio technologies that enables devices such as computers, mobile phones, hands-free kits and other peripherals to be connected without cables up to 30 feet away. Like many modern wireless devices (including portable phones and wireless computers) it uses waves with a frequency of 2.4 GHz.
ADDITIONAL NOTES:
122
www.revision-notes.co.cc
Network topologies
Topology refers to the way in which computers and other networked devices are interconnected it describes the physical layout of the cables and interconnecting devices. The three most basic topologies are the bus, ring and star.
Bus
A bus topology is one in which the nodes are connected by a single cable and the data is transmitted in both directions along the cable, to all the nodes. This means that all the nodes receive all transmitted data. An Ethernet bus (the most common type of local area network) can have a maximum length of 185 metres and a maximum of 30 nodes. Note that there must be terminators at either end of the cable preventing the signals being reflected back down the cable.
The advantages of a bus network are: it is quick and inexpensive to install (single length of cable); additional computers can be added easily (up to the maximum of 30). The disadvantages are: a cable fault will affect the whole network; network performance degrades under a heavy load (maximum computers on an Ethernet bus is 30).
ADDITIONAL NOTES:
123
www.revision-notes.co.cc
Ring
A ring network is one in which the nodes are linked in a closed loop and the data is transmitted in a single direction around the loop.
There are Repeaters at each node to boost the data signals as they pass around the ring. The use of repeaters allows a ring network to cover larger distances than other types of local area network, and if using optical fibre cable, ring networks can span a distance of up to 100 kilometres. The first implementation of this type of network was the Cambridge Ring, which is shown below. Now the most important implementation is the IBM token ring. The advantages of a ring topology are: there is no dependence on a central computer each node can handle data transmission to and from itself; very high transmission rates are possible; transmission of messages around the ring is relatively simple and avoids collisions because the transmission is in only one direction. The disadvantages are: if one node breaks down, transmission between the other nodes might be disrupted; extending an existing ring can be difficult because of the rewiring required. not very secure because data travels all the way around the ring and so there are plenty of opportunities for messages to be intercepted. Note that the first two disadvantages are overcome with a Token-Ring implementation.
ADDITIONAL NOTES:
124
www.revision-notes.co.cc
Star
A star topology is one in which each node is connected directly to a central hub using its own, dedicated cable, with all communications between workstations go through this hub.
This was originally the configuration for IBM mainframe systems, when dumb or semi-dumb terminals were linked to a central computer. It is now the most common topology used within LANs and many WANs. It is usual, but not essential, to have one or more servers connected to the hub. In these server-based networks, most of the communication is between workstations and a server. The advantages of a star topology are: if there is a cable fault only one node is affected; the data transmission rate can vary on each link allowing old and new computers to communicate with each other; there is greater security of transmissions if a switch is used as the hub; cabling faults are easy to locate because the hubs usually use LEDs to indicate working connections; The disadvantages of a star network are: hub failure affects all users although local processing can still take in some systems; cabling can be difficult individual cables must go between each computer and the hub this can add to the installation time and cost.
ADDITIONAL NOTES:
125
www.revision-notes.co.cc
Primary memory
Candidates should be able to: 38. Describe the differences between types of primary memory and explain their uses.
ADDITIONAL NOTES:
126
www.revision-notes.co.cc
Secondary storage is the non-volatile, long-term store for programs and data that are not currently in use. Secondary storage is needed because: main memory is volatile contents are lost when the power is turned off; main memory is finite cannot store everything.
Measurement of storage
The common units to measure storage capacity are: Bytes Kilobytes (1024 bytes) Megabytes (1024 Kilobytes) Gigabytes (1024 Megabytes) Terabytes (1024 Gigabytes)
Types of Media
Secondary storage can either be magnetic, optical or electronic (although it is usually magnetic) and the most common secondary storage device in a computer is the hard disk.
Magnetic Media Floppy Diskette Hard disk drive (HDD) Zip disk Tape/DAT Optical Media CD-ROM CD-R CD-RW DVD Blu-Ray Electronic Media Memory cards/sticks (for games and cameras) USB pens
ADDITIONAL NOTES:
127
www.revision-notes.co.cc
Magnetic media Magnetic media are tapes or disks that are coated with iron oxide (or similar magnetic material). The iron oxide particles are aligned by a read/write head so that all particles that represent a 1 bit point in one direction and all particles that represent a 0 point in the perpendicular direction. Floppy diskette Floppy diskettes (usually called floppy disks) consist of a thin sheet of magnetic coated plastic encased in a hard plastic casing typically of 7 cm square. Most floppy diskettes are of the High Density type and have a capacity of 1.44Mb. A diskette used to be the standard for transferring very small files from one computer to another. It was also used as a boot up disk if a hard disk became corrupted. Floppy disks are now effectively redundant due to their small capacity, slow access speeds and lack of reliability. Hard Disk Drive (HDD) All standalone PCs come equipped with an in-built hard disk, the capacity of which is nowadays measured in gigabytes. A new PC typically has a 200+ Gbyte disk. The hard disk is used for storing software including the operating system, other systems software, application programs and the datafiles. Magnetic disks require formatting before use. This is essentially a process of marking out the surface into usable areas in a way that allows the disk drive to find its way about the medium when reading and writing at a later time. Hard drives have a very fast transfer rate. Zip Disks A zip drives is similar to floppy drives in that the individual disks are removable. The individual disks, however, have a much larger capacity zip disks are made with capacities of either 100 or 250 Mbytes. Tapes and Cartridges Digital Audio Tapes (DAT) (cartridges) are sealed units similar to an audio cassette. The main use of DAT are to hold backup-up copies of hard disks within medium to large organisations they can store 1os of gigabytes of data. Note that data on tape is stored sequentially i.e. a tape is read/written from beginning to end. This is okay for writing the data, but it can take a long time to access specific data that you may want recovered.
ADDITIONAL NOTES:
128
www.revision-notes.co.cc
Optical media Optical media, such as CD-ROM and DVD, use a laser to detect pits (holes) in a disk the existence if a pit represents a 1 and the non-existence of a pit represents a 0. CD-ROM These disks are the same size as audio CDs and are read by a laser in the same way. On CD-ROMs the data cannot be changed. Access is slower than a hard disk because the spin speed is slower. A CD-ROM can store about 700 Mbytes of data. They are used in situations where the data does not age quickly. Examples include encyclopaedias, large catalogues and telephone directories. Software is usually supplied on CD-ROM. CD-R (Recordable) Sometimes called WORM disks (Write Once Read Many) CD-Rs allow the user to write onto the surface of a CDROM. This can only be done once since the surface is permanently changed during the writing process. The resulting disc can be read by a normal CD ROM drive. CDRs are useful for archiving data or for small-scale CDROM production. Capacity varies slightly between two different standards CD-R74 and CD-R80. The former can hold 74 minutes of audio and 650 Mbytes of computer data while the latter holds 80minutes of audio or 700 Mbytes of computer data.
Magneto-Optical Storage Note that some devices are classed as magneto-optical. These are disks that have a magnetic surface that can only be magnetised when heated to about 200C. A laser beam is used to heat a spot on the surface that is then magnetised to record the data. The direction of magnetisation affects the light reflecting off the surface, so the data can be read optically. These devices provide about 125 megabytes of storage on a disc the same size as a floppy. They can be used for backup and archiving data and for transferring data from one system to another. In addition to their vastly increased storage space compared to a floppy disk, they have the advantage that the data stored is less vulnerable to stray magnetic fields and temperature effects since the surface of the disc must be heated before the data can be changed.
CD-RW (Re-writable) Re-writable CDs are used in a similar way to CD-Rs, but their surface is not permanently changed when data is written to it. This means that data can be deleted and space on the disk is freed. CDRWs contain a crystalline compound that is made up of silver, indium, antimony and tellurium metals. When this compound is heated and cooled slowly, it becomes reflective to light. When the compound is heated to a hotter temperature and then cooled quickly, it become absorbent to light the absorbent areas are the equivalent of the pits on a standard CD. The laser that is used within CD-rewriters has three intensities one to make the crystalline compound reflective, one to make the compound absorbent and the third, low intensity setting is used for reading data. Digital versatile disk (DVD) Originally referred to as digital video disks, DVDs have gradually replaced CD drives in computers. DVDs are exactly the same size and thickness as a standard CD, but the tracks are much closer together and the pits are much smaller. DVDs can store data on both sides of the disk although, in most DVD drives, they need to be physically removed and flipped over for the second side to be read.
ADDITIONAL NOTES:
129
www.revision-notes.co.cc
CPT1: Computing Fundamentals As well as storing data on both sides, DVD can also store data within two layers on each side and this gives rise to four different standards of DVD:
Number of sides 1 1 2 2 Number of layers 1 2 1 2 Capacity 4.7 Gb 8.5 Gb 9.4 Gb 17 Gb
As writable DVD drives have become more readily available, these have started to replace videotapes (although it is also common to use recording equipment containing a hard disk). DVDs can store up to 17 Gbytes of data this allows up to eight hours of video to be stored on one small disk. There are several advantages of recording onto DVD as opposed to magnetic tape: Disks can be randomly accessed the user can move to any part of a film easily; DVDs store the data digitally the quality of the images or sound does not deteriorate with constant use; The digital storage allows the images and sound to be much higher quality than tape. Electronic flash media Electronic media use millions of electronic switches to store data. Memory cards and sticks These are typically used to add extra storage in cameras, mobile phones and games consoles (most of these devices have some built-in memory). This technology has developed rapidly over the last 7/8 years and this has led to a variety of different shapes and sizes of memory card, each being developed for a specific purpose. USB flash drives These are the most recent development in file storage. They are small devices with built-in memory cards. They can plug into the USB port of a computer and they function as a portable hard drive. They have the advantage over portable hard disk drives in that they have no moving parts and are therefore much more suitable for carrying around. Their disadvantage is that their capacity is much smaller a maximum of about 8 gigabytes at present. These devices are known by many names including: flash drives; USB pens; USB keys and simply as USB drives.
ADDITIONAL NOTES:
130
www.revision-notes.co.cc
Floppy Disk
1.44 Mb
V Slow
Optical media
Media CD-ROM CD-R/RW DVD DVD-R/RW Blu-ray Capacity 650/700 Mb 650/700 Mb 4.7 17 Gb 4.7 9.4 Gb 25 100+ Gb Speed Medium Medium Quite fast Quite fast ?? Price [2008] 30p each 50p each Uses Distribution of commercial software Backing/archiving up work and software on a home computer. Distribution of software particularly ones that contain a lot of multimedia and videos; backing up files on the hard disk Backing/archiving up work and software on a home computer. Distribution of High Definition movies
Electronic media
Media Capacity Speed Price [2008] Uses Storing digital images (from a digital camera); Storing contact details and diary information (mobile phone). Transferring files from one computer to another; Backing up personal files.
Flash Card
8+ Gb
Quite fast
USB Pens
8+ Gb
Quite fast
ADDITIONAL NOTES:
131
www.revision-notes.co.cc
Buffer
A buffer is an area of memory between two components/devices into which data is temporarily stored during data transfers between components/devices that operate at different speeds. Peripheral devices operate at slower speeds than the processor. To allow for these speed differences a buffer needs to be used.
The buffer may be built into the I/O controller of the computer or of the peripheral device (or both!)
Interrupt
An interrupt is a signal from a device to the processor, to indicate that it wants attention.
ADDITIONAL NOTES:
132
www.revision-notes.co.cc
ADDITIONAL NOTES:
145
www.revision-notes.co.cc
ADDITIONAL NOTES:
146
www.revision-notes.co.cc
Networking a printer
A network printer is one that is shared and available for remote printing. The printer may have its own network card or it may be connected to a networked computer using a USB cable. Benefits of sharing a printer: The main benefits of networked printers include: each user has access to more than one printer if one fails or runs out of supplies, another printer can be used. one expensive colour laser printer can be used by people in several different rooms/offices. Drawbacks of sharing a printer: Drawbacks include: the printer may be in a different room to the person who has printed; the printouts will not be private;
ADDITIONAL NOTES:
147
www.revision-notes.co.cc
ADDITIONAL NOTES:
148
www.revision-notes.co.cc
Data transmission
Candidates should be able to: 45. Describe the different types of data transmission: serial and parallel; and simplex, half-duplex and duplex modes. 46. Explain the relationship between bit rates and the time sensitivity of the information.
ADDITIONAL NOTES:
149
www.revision-notes.co.cc
Bit rate
Bit rate is the number of bits transferred in each second. Examples of transmission speeds: most LANs operate at a bit-rate of 100 Mbps (megabits per second); broadband connections are usually between 2 and 8 Mbps; USB2 connections can be as quick as 480 Mbps. Note that the above are maximum speeds. In practise, the speeds are always less because of bad connections and interference.
ADDITIONAL NOTES:
150
www.revision-notes.co.cc
Error checking
Candidates should be able to: 47. Recognise that errors can occur in data transmission, and explain methods of detecting and correcting these errors (parity checks, the use of parity in data blocks to become selfcorrecting, check sums and echoes). Errors will occur when data bits become flipped i.e. a 1 bit flips to a 0 and vice-versa. As long as this is not a common occurrence, this type of error is easily detected by the use of a parity bit.
Parity bits
A parity bit is an extra bit that is derived from, and added to, data before it is transmitted so that transmission errors can be detected. Even parity This is when the total number of 1 bits transmitted is even. Odd parity This is when the total number of 1 bits transmitted is odd.
ADDITIONAL NOTES:
151
www.revision-notes.co.cc
Parity checking
Parity checking is used in the transmission of ASCII characters. Each character is encoded as a group of 7 bits when it is stored in memory, tape or disk. The eighth bit of the byte is used as a parity bit. The parity bit is set as a 1 or a 0 so that the total number of 1 bits is odd. The data and the parity bit are sent together. The receiving computer receives the transmission and works out what the parity bit should be it then compares this with the parity bit it actually received if they are different, then there has been an error:
The data (with the parity bit) is sent to the recipient computer, but one of the bits is flipped
The recipient computer works out that the parity bit should be a 1, which is different to the parity bit that it received!
ADDITIONAL NOTES:
152
www.revision-notes.co.cc
Check sums
A check sum is a value which is computed from a block of data and is transmitted or stored with the data in order to detect a change. A check sum is used to verify data transmission or data decompression. Note that, in this context, a block of data could refer to an Internet packet, a file, or even a whole directory.
The receiving system re-computes the checksum based upon the received data and compares this value with the one sent with the data. If the two values are different then the recipient knows that there has been an error. If they are the same, however, the receiver has some confidence that the data was received correctly it is possible that there has been an error, but this is extremely unlikely. Notice that the principle of the check sum is similar to that of a check digit. The use of a check digit to validate input rather than verify transmission is one of the main differences i.e. a check sum is used to verify much larger quantities of data and so it will need to be larger itself. The checksum may be 8 bits (modulo 256), 16, 32, or in some cases bigger. Internet packets use a 32-bit checksum.
Echoes
An echo is a method of error-checking whereby the data that is received is sent back to the sender to check that it is unchanged. The echo process is as follows: the data that has been received is sent back to its origin; it is then compared to the original data; any differences will signify a transmission error; and the data will be resent.
ADDITIONAL NOTES:
153
www.revision-notes.co.cc
Circuit Switching
Circuit switching is where two computers that want to exchange data establish a path through a network, which is then used for the entire transmission. This path is called a circuit and a different path may be established for each different communications session. This approach resembles a telephone connection in which a circuit is established to enable communication to take place from one telephone to another.
An advantage of circuit switching is that the data travels through the network with very little processing overhead data segments arrive in the order in which they are dispatched and so very little effort is required to reconstruct the original message. The main disadvantage of circuit switching occurs when the connected devices do not transfer data continuously. Under these circumstances, the connection will sometimes be idle and so bandwidth is wasted. Another disadvantage is that a circuit switched network cannot connect computers or devices that operate at different transfer rates.
ADDITIONAL NOTES:
154
www.revision-notes.co.cc
Packet Switching
Packet switching is where two computers that want to exchange data break it down into discrete blocks called packets. These packets are then routed individually through the network. In packet switching networks, it is possible that each packet takes a different path to the previous one. It is therefore possible that the recipient computer will receive the packets in a different order to that in which they were sent. Thus, packet switching requires that each packet is numbered so that the recipient can reconstruct the original message.
Packet A is sent to node 1. Node 1 stores the packet and determines the next leg of the route node 2, in this case. The packet is queued until the link is available, when it will be transmitted to node 2. Node 2 will forward the packet to node 3, which will forward it to node6 and then to the recipient. Note that other packets take different routes. The nodes within a packet switched system are different from the nodes used in circuit switching. Packet switching nodes have the ability to store packets until they are ready to be retransmitted. Packets are queued at nodes and then transmitted as rapidly as possible over the link to the next node. In this way, packets from different messages can be multiplexed together at nodes as they pass through the network so pathways are kept operating at full capacity to avoid wasting bandwidth. Time slots are not pre-allocated as in circuit switching and two computers of different transmission data rates can exchange packets, since each connects to the network at its own data rate. The ability of nodes to store packets means that when traffic on links is heavy, packets can continue to be accepted unlike calls in a circuit switched network. Some calls are refused in the latters case when traffic becomes heavy. Delivery delay just increases in the case of a busy packet switched network.
ADDITIONAL NOTES:
155
www.revision-notes.co.cc
CPT1: Computing Fundamentals Also note that packet switching systems allow priorities to be used. Thus, if a node has a number of packets queued for transmission, it can transmit the higher-priority packets first. These packets will experience less delay than lower priority packets.
ADDITIONAL NOTES:
156
www.revision-notes.co.cc
Protocols
Candidates should be able to: 50. Define the term protocol and explain the importance of a protocol to the transmission of data. 51. Describe the need for communication between devices and between computers, and explain the need for protocols to establish communication links. 52. Explain the need for both physical and logical protocols and the need for layering in an interface.
Definition
Protocols are the rules that define the ways that different computers can be connected, and send signals to each other, in order that ensure that communications will be successful. Different networks use different protocols for establishing communication between their connected computers. To allow manufacturers to produce hardware and software to work with different networks, protocols have been divided into seven layers (groups) each of which covers a different aspect of the communications process. This OSI model is outlined below:
Type of protocol Physical Data Link Network Transport Functions The types of connectors to use; the types of cables; the signal voltages The size of Frame that is transmitted and frame addressing (ie using MAC numbers) Use of numbers or names to address sender and receiver; Whether numbering is structured or random; how a particular computer is found Are messages/files divided into packets or sent complete; the procedure to follow when more than one computer wants to transmit a message at the same time; The methods of detecting and correcting errors How the connection is established and later terminated; The idle time allowed before being disconnected; The number of different sessions allowed on each computer at the same time; Is encryption being used Whether text is encoded as ASCII or ANSI or Unicode HTTP, FTP, POP, IMAP, Telnet,
Session
Presentation Application
ADDITIONAL NOTES:
157
www.revision-notes.co.cc
ADDITIONAL NOTES:
158
www.revision-notes.co.cc
ADDITIONAL NOTES:
159
www.revision-notes.co.cc
Education
There are many uses of computers in education for both students and staff. Schools (and other educational institutions) use computers in the classroom and for administrative tasks. Administrative uses These include: Computerised attendance systems; Timetabling; Exam entry; Report writing; Progress monitoring; Budgeting and accounting; Classroom uses Computers have made significant impact in the classroom for both students and the teachers many teachers prepare PowerPoint presentations or use other interactive software tools and students research topics on the Internet then type up their findings in a word processor. Computers have also made distance learning possible where students access resources from a college web site and use email to communicate with their tutors. Some of the uses in teaching and learning are listed below: presentation of work (word processor); Internet research (Web browser); interactive/computer-based learning (simulations and on-line quizzes); multimedia demonstrations (including PowerPoint presentations); distance learning/online courses (Open University and Learn Direct) Benefits and drawbacks of online learning
Benefits Students can learn at their own pace, repeating units when they want. The student is given information of a guaranteed quality that is independent of the skills of the teacher. Learning can be presented in an interactive way. It can also include sound and video. The computer is not impatient and will not become frustrated if a student continuously makes mistakes. Fewer teachers are needed and so the running costs are cheaper after the initial investment. Drawbacks The computer does not have the extra motivational ability of a good teacher; The computer is limited in the number of different ways that it will present the information. Some students do not find learning at a computer enjoyable.
ADDITIONAL NOTES:
160
www.revision-notes.co.cc
Employment
Ever since the industrial revolution, people have feared that machinery will displace workers, and information technology is no exception. Note, though, there is no evidence that computers have led to mass unemployment in fact, many people argue, more jobs have been created by computers than have been displaced by them. In some areas, however, computers have substantially replaced the workforce. In the 1980s, thousands of factory workers were made redundant by the introduction of robots on the factory floor making everything from biscuits to cars. In the 1990s, thousands of clerical and white-collar workers have seen their jobs disappear with the introduction of company databases, desktop publishing, computerised accounting systems and increased automation in banks, building societies and organisations of all kinds, large and small. The changing nature of employment In todays society, there are far fewer people who work in farms or factories than in the past. Most jobs, nowadays, are found in the service industries such as sales, education, health care, banks, insurance and law. Also in catering, computer support, or advertising and delivering goods. These jobs primarily involve working with, creating or distributing new knowledge or information. In many cases, workers displaced by computers are retrained to perform computer-related jobs that may be more satisfying than their original jobs. a secretary may find it more satisfying to use a word processor to produce high quality output which can be saved and amended, rather than having to retype whole pages because a minor error was made. an engineer or draughtsman may find it more satisfying to create designs using a computeraided design system with complete accuracy, than drawing by hand; an accounts clerk may prefer to use an Accounts software package rather than to do the accounts manually. Changing locations of work Not only are the type of jobs we do changing, the location of work is changing too. When Britain changed in the 19th century from an agricultural to an industrial society, more and more workers were forced to move from farm work into towns and large industrial centres. The advent of communications technology is now starting to reverse this trend. There is no need for much of the work of an organisation to be done at a Head Office in a city; it is often more economical for it to be done in a more remote area where office rates and housing are cheaper, and employees can be paid less. Results of data processing can be transferred to wherever they are needed via a telecommunications line at the moment much UK work is performed by workers who are actually located in India (particularly help-desk work).
ADDITIONAL NOTES:
161
www.revision-notes.co.cc
Benefits and drawbacks of computers at work Computer in the workplace have many benefits, but they also have drawbacks:
Benefits One computer can do the work of many humans and can work without tea-breaks. Easier to communicate with workers at different branches. Work-rate of employees can be better monitored e.g. an EPOS can monitor the number of customers served each hour. Drawbacks Fears of redundancy worries that computers will replace human workers. Less face-to-face social interaction Older employees may fear new technology and find it difficult to adapt. Employees fear that they will be spied upon
Teleworking Teleworking is when an employee works away from the office and communicates with their colleagues through the use of a computer and telecommunications systems (i.e. the Internet). Often teleworkers are based at home, but they can also work from satellite offices or even be on the move. Benefits and drawbacks of teleworking
Benefits It may be easier to concentrate on work in a quiet environment at home than in a noisy office. Workers save on commuting time and costs, and there is the additional environmental benefits of keeping cars off the roads. Workers enjoy greater flexibility, and can arrange working hours around other activities such as taking children to school. Employers save on the costs of office space and overheads such as heat and light. People can be recruited from a much wider geographical area. People who are not able to take employment in standard office hours can be recruited. Drawbacks Some teleworkers may find it difficult to separate home from work, and find work encroaching on their leisure or family time. Management may fear difficulties in controlling a workforce that is not in the office. There is a problem in ensuring that remote staff understand corporate goals and retain a sense of loyalty to the organisation. Employees may feel isolated and miss the social environment of an office. Employees may find it difficult to work in teams, or to get help when they need it.
ADDITIONAL NOTES:
162
www.revision-notes.co.cc
Environmental issues
The manufacture of computers requires energy. The majority of energy sources contribute in various degrees to polluting the atmosphere and the environment either by producing toxins or greenhouse gases such as carbon dioxide. Computers also require a variety of raw materials. Some of these raw materials are scarce and expensive to obtain, both in terms of money and the energy that is required to extract them from the ground. It has been estimated that to build just one computer requires approximately ten times its weight in chemicals and energy! Scientists at the UN University in Tokyo, have estimated that the manufacture of just one computer requires: about 250 kg of fossil fuel. over 20 kg of chemicals. over 1000 different chemicals, including lead, arsenic, cadmium (all toxic). over 1500 kg of water.
ADDITIONAL NOTES:
163
www.revision-notes.co.cc
Around the world, computers continue to be made in huge quantities. Approximately 150 million will be made in the next 12 months! If you then multiply this number by the amount of energy, chemicals and water required, it is easy to see how computers contribute to pollution. If you also consider that a typical PC will be in use for about 3-5 years (compared to 10-15 years for a car and about 15 for a fridge), this is a further indication of how PCs contribute to the overall pollution/green house gas levels. European legislation has been introduced that demands 70% of a PC is recycled when it is scrapped. Whilst governments have encouraged recycling, some people have argued that this is the wrong approach. It takes a lot of energy, they argue, to recycle computers! It can also in itself be the cause of environmental damage. For example, PCs are being transported to developing countries such as China for recycling. The process to recover metals such as copper, lead and gold from computer hardware involves the use of acid baths and this is not good for the environment. It is also not good for the people directly involved in the recovery process. This is because health and safety standards are well below those of the developed countries and the appropriate protective equipment is rarely provided. A better plan of attack would be to reduce the number of computers being built in the first place. This could be done, for example, by: Encouraging people to buy second-hand PCs not many people know about the existence of companies who buy and refurbish computers. Giving tax breaks to companies who buy second-hand PCs, rather than giving companies tax breaks to buy new PCs. Refurbishing PCs and sending them to developing countries for use there. Encouraging people to upgrade existing PCs with new innovations, rather than replacing their PC. Encouraging PC manufacturers to invest in making products last longer. Encouraging a paperless society. A lot of hard copies are still produced. The more paper used, the more trees have to be cut down. Even if these are from renewable sources, turning trees into paper involves energy as well as involves making parts of forests an eyesore.
ADDITIONAL NOTES:
164
www.revision-notes.co.cc
Privacy
Candidates should be able to: 55. Discuss the effects on privacy and confidentiality of data held in computer systems, and steps that can be taken to protect confidentiality. Privacy is the principle of not allowing unauthorised people view certain data particularly personal data. The right to privacy is a fundamental human right and one that we take for granted. Most of us would not want our medical records freely circulated, and many people are sensitive about revealing their age, religious beliefs, family circumstances or academic qualifications. In the UK even the use of name and address files for mail shots is often felt to be an invasion of privacy. When data/information is stored in a computer system such as a database, it is easy for organisations such as credit card companies, banks, prospective employers, supermarkets that operate loyalty card schemes, insurance companies and the security services to access and share sensitive personal information. Individuals give away personal information to computer systems sometimes without realising it. For example, the loyalty card scheme operated by some major supermarket chains can represent an invasion of privacy. A shopper using his/her loyalty card at the time of a purchase is inadvertently giving away personal information such as spending power purchasing habits daily/ weekly movements whether married or not by correlating cards linked to one address This information once in the stores computer system could be passed easily to a third party without the knowledge or permission of the shopper.
Protecting confidentiality
Protection is by: Passwords; Encryption; The Data Protection Act (DPA)
ADDITIONAL NOTES:
165
www.revision-notes.co.cc
Encryption
Encryption is the process of scrambling data so that it cannot be interpreted by an unauthorised person. Data is encrypted using a special encryption key. In simple encryption systems, the same key is used to decrypt the data, but in the most secure systems two different keys are used. In either system, the data is kept secure by making sure that the decryption key is kept secret from anyone other than those authorised to view the data. The following encryption algorithm uses a 5-digit encryption key. To encrypt the message, each character is converted into its ASCII code and the digits of the encryption key are then added to each resulting code in turn. The encryption key is reused as many times as necessary.
This message can decrypted by applying the algorithm in reverse i.e. subtract one from every single character. Note that encryption done in this way would be fairly easy to crack. Use of encryption Encryption is used when transmitting data over a network and also when storing files securely on a hard disk drive. Benefits and drawbacks of encryption
Benefits Private e-mails cannot be read if they are intercepted. Credit cards can be used to shop on the Internet Files stored on a CD/DVD are still safe, even if the CD is stolen. Secure bill payments using Internet banking. Drawbacks Employees within an organisation could send messages and let out company secretes without the knowledge of their managers. Spies, criminal gangs and terrorists could send messages to each other without the authorities knowing. The data is lost to everyone if the encryption key is lost.
ADDITIONAL NOTES:
166
www.revision-notes.co.cc
Legal issues
Candidates should be able to: 56. Understand the need for legislation governing computer use.
There are four laws that are directly concerned with the protection of programs and data that are held within a computer system. These are: The Computer Misuse Act (1990) The Copyright Designs and Patents Act (Computer Programs) Regulations (1992) The Data Protection Act (1998) The Regulation of Investigatory Powers Act (2000)
There is also the Health and Safety at Work Act, which protects the health of employees who are required to use computers.
ADDITIONAL NOTES:
167
www.revision-notes.co.cc
ADDITIONAL NOTES:
168
www.revision-notes.co.cc
ADDITIONAL NOTES:
169
www.revision-notes.co.cc
The eight principles The DPA consists of eight principles, summarised as follows:
Personal data shall be obtained and processed fairly and lawfully This means that either the data subject gives their permission or the processing is necessary for one of a number of specific reasons (e.g. for the administration of justice). Each time personal data is collected, the form, which is completed, must contain a DPA statement that informs the data subject that the data is going to be stored and the purpose for which it will be used. This is the use given within the DPA statement a change of use is not allowed. This avoids the temptation of collecting data that is not needed.
Personal data shall be obtained for only one or more specified purposes Personal data shall be adequate, relevant and not excessive Personal data must be accurate and, where necessary, kept up-to-date Personal data must not be kept longer than necessary Personal data shall be processed in accordance with the rights of the data subjects
This means that the data subject has the right to: see all data that is stored about them and have incorrect data corrected or deleted; prevent processing that is likely to cause damage or distress; prevent processing for the purpose of direct marketing; compensation for unauthorised access, loss or destruction of data. This must prevent the unlawful processing of personal data and the accidental loss or destruction of personal data. Unless the country in question ensures an adequate level of protection for the rights and freedom of the data subjects
Appropriate technical and organisational measures shall be taken to ensure the security of the personal data Personal data shall not be transferred to a country or territory outside the European Economic Area
ADDITIONAL NOTES:
170
www.revision-notes.co.cc
CPT1: Computing Fundamentals Note that the DPA requires that an organisation that wants to store and process data must: nominate a data controller, who will be responsible for ensuring that the organisation adheres to the principles of the DPA; register their intention to store personal data with the Information commissioner; inform the potential data subjects that their intention is to store data and get the permission to do so; inform the data subjects of the reasons for gathering the data; gather only information that is truly needed and gather it opening and lawfully. obtain the data subjects permission to pass on data that relates to them; So far as keeping the data after collection the organisation must ensure that the data is kept up to date; not held longer than is necessary and allow individuals to view data held on them and make corrections if necessary. The type of information covered by the DPA The type of information that is covered by the act is personal data that is held in a form that is structured e.g. arranged alphabetically. This includes all personal data that is held within computer system and any personal data that is stored in a filing cabinet where the files are arranged according to name or a similar field. Note that some data is considered to be sensitive personal data. This is data concerning racial or ethnic origin; political opinion; religious beliefs; physical and mental health of the data subject; etc. There are additional conditions that apply to the processing of such sensitive data. Exemptions For practical reasons not all data is covered by the DPA. For example if the data: are for personal, family, household or recreational use; relates to payroll, pensions and accounts; is being held for the prevention or detection of crime.
ADDITIONAL NOTES:
171
www.revision-notes.co.cc
ADDITIONAL NOTES:
172
www.revision-notes.co.cc