Computer Science 1
Computer systems
SarahLawrey
dy HODDER
EDUCATION
LEARN MORE
Software and software development
Software ................................................... ااا9
Applications generation .................................. ES12
Software development .................................... e 14
Types of programming language....................... e 16
Exchanging data
م32
Compression ................................................
Encryption .................................................2 a 24
Hashing ..................................................2 ل ل ع ل ا42
AI, o 25
Networks .................................................... ES 28
The internet 2 ES 31
Data types, data structures and Boolean algebra
Data types ................................................... ES 36
Data structures .............................................. ES 40
Boolean algebra .......................................... o 42
"7
;
0
Computer systems
The central processing unit (CPU)...................... e 3
Types of processor ....................................... o 4
Input, output, storage and memory.................... o 5
2
A
4
e
Contents
PTE RE PT ACA
WORKBOOK|
E
4
.
3
E
1
١
1
0
4
E
q
E
|
E
3
E
Computer law and ethical, moral and social issues
Computer law ............................................. لES 46
Ethical, moral and social issues ......................... AN46
This workbook will help you to prepare for the
Computer Science Computer Systems exam.
Youstill need to read your textbook and refer to your
Your exam will include a range of questions
requiring short and long responses. You will also
have extended response questions.
Content specific to A level only is indicated by a red
line in the margin.
|
For each topic of the exam there are:
revision guides and lesson notes.
Marks available are indicated for all questions so
that you can gauge the level of detail required in your
stimulus materials including key terms and
concepts
answers.
style questions
space for you to write or plan your answers.
Timings are given for the exam-style questions to
make yourpractice as realistic as possible.
short-answer questions that build up to exam-
Answering the questions will help you to build
your skills and meet the assessment objectives AO1
(Demonstrate knowledge and understanding), AO2
(Apply knowledge and understanding), AO3 (Design,
program and evaluate computer systems).
Answers are available at:
www.hoddereducation.co.uk/workbookanswers
E
De
©
Computer systems
O
=
jo)
en
purs
Y
The central processing unit (CPU)
rn
Y)
<
eL
م
The central processing unit (CPU) is a fundamental part of a computer system.It is responsible for fetching every
instruction given to the computer, decodingit and executingit. It is a very active componentthat is capable of
processingbillions of instructions per second.
4
=
The CPU has a numberofdifferent componentsthatit uses to processinstructions. A single cycle of processing an
instruction is called the fetch-decode-execute cycle. Three main factors can affect the performance of a CPU: clock
speed, numberof cores and cache size.
A CPU will have a particular structure, such as the von Neumann or Harvard architecture. The CPU is small in size
but has a very big role to play.
IRE.
WORE
Gin
DAN
AFA
EE
ER II جهeS
POP
ES
is State the main role of the CPU.
ETS
ES Identify three buses that are used in the CPU.
AO
PIDA IIA LAA
١ © Identify three registers that are used in the CPU.
À DOTE AS eS GS A EAU
1
3
re
ا
À
;
)8( Describe therole of the cache in the CPU.
marks)
har...
.....
hrrsrr....
EE AAN TACNANEC ATSC YAAAR ETElaUPLETEELEIASRTSDURETAN ASE E
UD
SAO
Y
E AN rs
Pipelining
Most CPUs makeuse of pipelining. This allows the CPU to processan instruction whilst fetching the next instruction.
O Describe how a processor would operateif it cannot make use ofpipelining.
ON
hr A rr rr rr rr
اليكrr ss
hr rss rr ss rr
hr rr rr rr rr EEE HEHE EEE EEE ES EEE SEES EE EEE
اك
D
مصDt
Types of processor
There are different types of processor: two of these are CISC and RISC.
CISC processors often contain a large set of instructions for both simple and complex procedures. CISC processors
have separate instructions for each task that the processor could be required to do.
RISC processors use a highly optimisedset of instructions that are designed to require fewer cycles per execution of the
instruction. RISC processors often contain a smaller set of instructions comprised of those that are the mostfrequently
used. Unlike CISC processors, RISC processors normally have several tasks condensed into a single instruction.
The speed of the processor can be increased usingparallel processing. This is when a processor can carry out
multiple tasks simultaneously. Two types of parallel processing are SIMD and MIMD.In SIMD processing, the
sameoperation is performed on multiple data simultaneously. This is useful for improving the performance
of the processor with multimedia. In MIMD processing, different instructions are performed on different data
simultaneously. A processor needs to be multicore to allow MIMDprocessing.
0 State what is meant by parallel processing.
€) Give one benefit of parallel processing.
En en E
O Explain one difference between a CISC and a RISC processor.
Y
=
fd
11
01
0 Explain onedifference between SIMD and MIMD processing.
ON
Graphics processing unit (GPU)
©
GPUsare designed to processcalculations for graphics. They have aninstruction set specifically designed for
this. GPUs will often use SIMD processing. The capabilities of GPUs are sometimes used for more than processing
graphics. GPUs are now usedfor tasks such as crypto-currency mining, cracking passwords and machine
learning.
=|
E
D
7
<
7
©
=
7
0 Explain why a GPU could be used to crack passwords.
marks)
|
O
بم
En
١
|
o
o
9
O
Input, output, storage and memory
Many computer systems have input, output and storage. Computer systems often have RAM and ROM storage.
RAM is volatile; this means the contents are lost when power is disconnected. ROM is non-volatile; this means the
contents are retained when poweris disconnected. RAM is used to store the programs and data that are currently
in use, while ROM is usedto store the boot-up instructions.
There are three maintype of storage: magnetic, flash and optical. Magnetic storage devices use magnets to record
data on rotating magnetic plates. An example is a hard disk drive. Flash storage devices use positive and negative
charges to record data onto cells that are made up of transistors. Unlike magnetic storage devices,flash storage
devices do not have any moving parts. An example is a solid-state drive. Optical storage uses a beam oflight and a
lens to record data onto a disk. Data is stored in pits and lands on the surface of the disk. An exampleis a CD.
Another wayofstoring data is using virtual storage. Virtual storage is when data is stored in a cloud-based system
and accessed using an internet connection. The alternative would bestoring data locally on the computer. Virtual
storageis only virtual in name;it is still physical storage and is normally owned and managedbya third party.
=
0 State two characteristics of RAM.
5
E
A ASPM NRA MS
BRep, -
marks)
عه
e
\
nn اnn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn mn nn nn nn nn nn sms —»a.rn9osrssons9orssrrrsrrrsrr.$..2...o...
eRe ee eee meee meee eee eee eee EE HEHEHE SEES EEE E SETHE HES EHEEE ES EE EEE EE EEE EES ESSE ESET EEEE EE HE SEEEHEEESE SETHE HOES OTHE EESES EEE EE EESE SEES HES EE EEE ESEE EES EE EEE EEE EEE EE EEE SEH EEEE SESE ESS ESEE EE SEE EE EEE EEEEEEEEH ES EES EEE HEE EERE EEEEEEEEEEESEE EES OEE USER EE EE EEE HED
eRe Ome meee ee eee eee eee eee EHH EEE HEHEHE EEE OEE HHH THEE SHEE EEE EEE EES EE EEES EEE EESEEEEEHEHEEEEEH HEE HEEO EE EE EES EH ES ESSE SESE SESE EEE ED EEE EE EEE HEH EES EE HEE ES ESE E ES OEE EES EE EEE SER EE SER EE EE SEHEEEES EE OHH EEE EEH EEE EE SES HEHEHE ESTO HERES EE OEO HES SEE SED EEE EE HEHE ED
Te
Po... orrroonorssrrror...onsoopors$rrsr9.9$”.orsrrrrsrrsrrroso.o......orosorrrr9.rr99m9”.2”.<$<”92..rm9.ooornrrrrr$.9.so9ossrrrsn$r$$proossprssnsrrsnnsorsprsrorssrr99.rmr9»rrsrrr$rrr9rrrrrsrrronsorsrrossossrrsrsss$.sosrrrrrrr.2 nos.”
AAA
ESPN ESS SRE PRE) ETS ET Wat ees LD BI
nn nn nn nn nn nn nn nn nn nn nn nn nn ns nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn sn mn nn nn nn nn nn nn nn nn nn ne nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nm nn nn nn nn nn nn nn nn nn nn mm nn nn nn nn nn nn nn nn nn nn nn مومع ودع وووnn sus
مدر
0 Give two benefits of virtual storage.
CET à
hr ااا ااا اااrr rr
ااا ااا ايهrr rr rr rr ss
ESE A TAE
CRE romo soossrrnrs$snsssrar.ssor9.$.orsrarasrrsnarsrc9$. on rsncrrrssn<”.2..s.s
hor rr rr rr rr
CR m2... oac.assrnsansrnrorrrsrsarn9rrassrr$2.9 rosa sr9.— osos ss$srsscs$srnssnan..s
0 اrr rr rr RHEE ES
rr rr rr ss EES
rr rr rr rr
rr rr rr rr rr rr
rr rr rr rr rr sr rs EEE EEE EES
Mr rr rr rr rsا ل ل ل م لم لم ل ل م ل لم م
CR ااا اااrr rr rr
hr rr rr rs rr rr rr sr rr
0 ل ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا اا ا ا ا ا ا ا ا ا ا ا ا ا ا ا اا ا ا ا ا ا1 ل اrr rr rs
rr rr ا اrr rr rr sr rss rr
her rr rr ا ل ل ل ل ل
AAA
Exam-style questions
(35
0 Tina has a computer system that has a dual core, 2 GHz processor. She wants to upgrade her
processoras she has a new job that requires her to use her computer for high-quality video
editing.
Explain the upgrades she can make to the processor and what effect it will have on
the performance.
CRE
EEE
ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا اا اااEE HEHE
BERR
EE HEHEHE SHEESH
hr rr rr em Ee EER EEE EEE EE
EE EE SEER HES
EEEHSE HEHEHE EEER SESE EEE EESSEEEEEESE ESSE HEE EEE HEHEHE EEE HEHE HEHEHE SEE OEE EEE EE EEE
EEE HEHEHE
HESS EE EE ETH اsans.
EEE EERE REET
HEHE RHEE ERE EE EHH
ORR eRe Eee eee EERE EEE EEO E EERE EERE EEE EEE EEE SEHR HEHEHE EEE EE SEES EERE EE EEE
eRe
o...
ا
HORE RETR OEE HEHE ERE
rononsrnsrssrrrarrrrsororrrrssrrmsnsasrr9<.rassrrr$rsssrrrrronarnrarnconosssororcrossrrpsnsroaneo.r...
ERE EEEHEEHE
EHO E EE
EEE HED
EEE ESHER
EEE EEE EERE EEE EEE EE EEE E EES EE EEE ERE REE EE EEE EHE EH EEH EEE HERES REE EE EEE
rra rr rr rr sr rr rr rr rr
0 Describe how an instruction and data is fetched by the CPU, including the registers
and buses used.
|
2
©
O
3
O
ce
a
(D
EN
Y)
<
0
a
0
5
Y)
O Explain why a RISC processor would be faster than a CISC processor.
(i) Explain why a processor would need to be multicore for MIMD processing.
0 Explain why flash storage is preferred to magnetic storage in mobile devices.
à
22) Explain why a personal computer system needs both RAM and ROM.
eee eee
eee ee ee ey
Pe
sense nn nn nn nn nn nn nn nn en nn nn nn nn nn
ا ا م
EEE HEED
RRR Oe ee meee eee eee nn nm mn nn nn nn nn nn nn nn nn HEHEHE EHH EE EEE HEHE E EE RHEE ES
COR EE EE EE HEE E ESET EH EE HE HEHEHE DEERE HEHE HEE HERE EERE ES
RRR ee mm eee ee eee ee eee Eee eee e HEHEHE EEE HEHEHE HEHEHE EEE ES HEHE OE EEE EEE EEE EHH HEHE SEE EEES
PERE Reem mee ee meee eee Eee HEHEHE HEHE HEHEHE HEHE EHH OHHH HEHEHE HEHEHE EE EEE HEHEHE SEER EES
Oe nn nn nn en nn nn nn nn nn nn nn EEE HEHE EEE SEE EEE nn nn nn nn nn nn OHEEHEEH HEHEHE EES E HEHEHE EHH HEHEHE EEE HEHEHE EEE HEHE EHHEE EEE HEE HEHEHE EEE HEHE DED
RRR nn nn EERO HEH EEE HHH EEE HEHEHE HEHEHE HEHE TEESE EEE TE HEE E HEE E EEE HEEH HEHE EEE EEE EEEEEE HEHEHE EEHE HEHEHE HEHE EEEH EERE HEHEHE HEHEHE HEHE HEHEHE EEE HEHEHE E EHD OE EES
ERR meee eee ee eee REE EE HHH E EEE HEH HEHEHE EH HEHE EH HEHE EERE HEHEHE HEHEHE HEH EHHEEEE HEHEHE EEE OEE EE HEHE HERE HEE EEO EE HERES
SEER ee ee eee eee Re HEHE HERE EEE HEHEHE HEHE HEHEHE HEE EEE HEH HEHEHE EEE EEE EHE HEHEHE HEHEHE HEHEHE HEHE EEE H HEHEHE H HEHEHE EES
ORR اHEHEHE EEE EEE E EEE HEE EEEEEEE EE EEE HEHE EE EEE EDO HEHEHE EEE EH HEE EEE EEE EEE EEE ED
PRR meee ee eee eee EEE EEE EEE HEHEHE HEHEHE HS OHHH HEHEHE HEHEHE EEE EEE EEE HEEEE HEHEHE EEE HEEE EEE EEE HEHEHE HEE EEE EE EEE EEEE EEE THEE EEE EEE EH EEE EERSTE EEE EEEH EHH EEE HEE EEE HEHEHE HEHEHE EHEHEEEEEEE EEE EEE SETHE EEE EERO EE EE EES
ep
O
as
Software and software
development
=
eb)
a
4
O)
—>
©
00
Software
O
pres
=
The operating system is software that gets loaded by the computer after it has booted up. The boot-up routineis
normally carried out by the BIOS. The BIOS will usually carry out the POST test and oncethis is complete it will
O)
TR
4
Q
4
boot the computer. The operating system is then loaded into memory.
The operating system is software that is designed to control and manage the hardware in and connectedto the
computer, and all other software. It is responsible for tasks such as file management, memory management,
<
LR
peripheral management, software installation, security and providing an interface for the user. Without an
2)
O
operating system, it would be very difficult, if not impossible, to use a computer system. Operating systems are
usually required to communicate with several different devices. These devices are often manufactured by different
companies. This can cause communication issues. To allow communication to occur between the different devices
and the computer system, software called drivers are used.
يبسد
0
ا
a
o
| 59 Memory management is one task performed by an operating system. Identify four
|
other tasks performed by an operating system.
!
#515
4
marks,
3
D
E
purs
\
|
01ببببببب-8980-002
O Identify the software used by the operating system to allow communication with
many different devices.
mark]
١ © Explain why it would not be possible to use a computer without an operating system.
(MEA
@ Explain the role and position of the kernel in an operating system.
AO
A
|
زط لاج ووه وزواه وزم ههرم.1616:65:82 .2815105.6 NS و 6868/8626 ظاه ةأهاة ققيةAAA AAA
ا
ل
ANACRE
موا ومو وو فوneeded eee
ا
AICAهص ههه و هاوه : 6 قم قال8 وما عا وه لمعنه ووا معو ووه ورمع هه عدم هرمغ قف ؤئق ةق
ةم مه ماق
مه مم مو طم مه مه
ا
\
5
A
|
L
EA
AA
NE ELA
Different types of operating system
There are a several different types of operating system. These includedistributed, embedded, multi-tasking,
multi-user and real time.
A distributed operating system involves a group of computers working together on a single task. Each computer
is responsible for part of the task. A distributed operating system is used to co-ordinate the computers to enable
them to complete the task. An embedded computer, such as a washing machine, may have an embeddedoperating
system. This kind of operating system is more specifically tailored for the embedded computer,to increaseefficiency.
A multi-tasking operating system is one that can run several programs simultaneously. This is the most common
type of operating system found on the computers we usein ourdaily lives. It allows us to do tasks suchaslisten to
music whilst typing into a document, occasionally checking oursocial media.
A multi-user operating system is one that allows multiple users to be using the computer's resources
simultaneously. This type of operating system often exists on a mainframe computer, where many users may be
accessing the data at a given time.
A real-time operating system is one that has a rapid responsetime. It completes the action requested within a
fraction of a second.
It is possible for a computer to have more than one type of operating system. For example, the computers we use
on a daily basis will most likely be both multi-tasking and real time.
O A washing machine uses an embedded operating system. Identify three other devices
that would use an embedded operating system.
ES
\
rr rr rr rr rr rr rr rs rs rs rr
nro rr rr rr rr rr rr rr rr rr rr لوم مم
rr rr rr rr rr rr rr rr لللر رع رعرع ع
horror rr rr rr rr rr sr rs rr rr sr
Ar rr rr rr rr rr rr rr rr rr rr rr rr rr sr rr rr
RRR Reem EER eH H EEE EH OEE EE MEE EO HEED EES RHEE EEE EEE HEHEHE EREE EEE E EEE EEE H EOS EE RTE EEE DEER REET SEES SEE EERE EERHE HH EES EEE HES EE EEE HEE E ER EERE EERE EE REE HEHEHE RHEE EERE EEE EEE MEER SEER EEO EEHE EEE EEE HEHE EHS E HEHE EEE ERE E HEED HEHEHE EEE EEE HOES
nn nn mn nn nn nn nn nn nn mn nm nn nn nn nn nn nn nn mn nn mn nn nn nn nn nn nn nn nn nn nm nn nn nn nn nn nm nn mme men nn sem sn mn nn nn nn nn nn nn nn nn nn nn nn HEHEHE MESES EEE SERRE REE EEEE EEE REESE EEH HEE SHSEH HEHEHE HEHEHE HESS HHEE HEHE EEE HEHE HEHE EEE EER EES
CR ا ا اrr rr rr rr rr rr rr rr
PRR Ree EE HEE EEE ETHER HEE REE HERR ED EEE OTHE HEHEHE EOE HEHE EEE RHEE EE SEER SEED OEE HHH ER HERE EE SHEE EES R EEE EERE EE SEE DEES EEE EEE SEES EEE HES EEEE EERE EE HEHEHE EEE EE EES EEE HE EEE EES SEES TEER EE HEHE HEHE HSER EH HEE OHHH EEEEE RHEE EEE EE SHEE EEE w EES
TERRE REE EE HEE HEHEHE DEE EEH EE HEHEHE HEHEHE EER EEE EEE HEHEHE HHEE EEE EEE HEHE EEE EEE EEE RHEE EEE HERDER E EEE O EE HOE EEE RESET HET HEE SEER E EEE EEE EHH EERE HEE HEHEHE EHR HED EEE HHEH HETERO SETH SHEE HEHEHE E SEER HEHHEH EEE RE OEH SETH ل
جد ةونع
رح
سمه تر
دم مRue
د
DS
PRES
SPP
SE
NE
AAET
DE
Memory management
One responsibility of the operating system is memory management. This includes how the memory resources
available in the computer are shared. One type of memory management that a computer can useis paging. Paging
is when a computer retrieves data stored in secondary storage and bringsit into RAM. In paging, the memoryis
divided into physical units of the same size. Each of these units is known as a page. Another type of memory
management is segmentation. In segmentation, the memory is divided into logical units of varying size. Each of
these units is known as a segment. Each segmentwill normally be a logical grouping of code, such as a procedure.
O Explain what would happen if memory management wasn't carried out by the
operating system.
marks)
\
(ep
2
دقع
=
a)
mm
4
a)
000 الل ا ل ا ل ا
re
Ree eRe Reet eee EEE EEE ECHO EEE ERO EE EEE EEO EE EE HEHE HEHEHE EEE HOES HH SEH HEHEHE EHH HEHEHE HEHEHE HEHEHE HEHEHE EE EEE EEEEEEEEEEEE EE EEH HEHEHE EEE EHEH EEE HEHEHE EER EEHEH HEHEHE HEHEHE ES EEEHESEEEE HEHEHE ED HEH HEHEHE OHHH EEE TEESE EEE ESE EEE REE EOE EEE EEE EEE
o
2
0
ms
Ree eee eee eee EEE EERE EE EEE EEE EEE EEE EEE HEHEHE nn nn nn nn nn nn nn nn nn mn nn mn nn nn nn nn mn nn nn nn nn nn nn mn nn mn nn nn mm nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn mn EEEE HEHEHE EEE EEHEEH HEHEHE EEE EEE EE EE EEE EEE EEE EE EEE EEE EE OED
=
ab
TS
4
Neem meee meee eee REE Eee eee rrsrrrsrrr9rrssrrrrrrrrrrr99prssrrsrrsrrr9rr$<+*osrrrsposrsorprrsr$ r$<.orrosrpr9”r92s$9$?osmorr..orrossrrrossrrrrsorr9r9$s9$9rrsprrrrrrrorsrrrsrrr$rr$smporrrrrrrsrrosrsr?.orsrrsporsrrrsrrr.$ srnsssssrosrrnooos
ek
EER nn nn nn EERE EERE EEE EEE EEE ETHER EE EEE EE EEE EEE H EEE EEE HEHE HEHEHE EEEE HEE SHEE REE EEE HEHEHE EEE HEHE HEHEHE HEHEHE EEE EEEHEEEEEE EEE HEHEHE HEHEHE HEHEHE EERE EE EE EEEEEHEE HEHE EE EH HEHEHE HEHE HEHEHE EEE HEH HEE HEE EEE HEHE EEE HEHEEEEEEEE EEO EEE REED
© Explain what paging and segmentation are and how an operating system would make
use of both of them.
marks
MN
4
<
su
©
D
e
rr... oronnon. nro... ل ا
(D
purs
ل
000 ا ل ا ا ا ا ا
50
Res
يرCUT
0000 ا ا ا ا ا ا ا اا ا ا ا ا ا ا ا ا ا ا اا اا ا اnn nn nn nn nn nn nn ل ل م ل ل ا م م م م م ل ا ما ل ل لم ا ا ل مل ا ل م مnn nn mn nn nn nn nn mms mms
De
PST ES ETL PEA LIE,
SDAA
DIST STOPE TET aDa
PSP RS ERAUC
ETS UT T
ILE 1171727 1715277 201577011 SETLS ET
TIT
NADIA RATA ANTES AAA
PONY Ga Gare wy oft
Interrupts
An interrupt does exactly whatis soundslike it should,it interrupts! This service is needed because a computer needs
to know whento giveits attention to a different task. A device sends a signal to the CPU;this signal is known as an
interrupt. Each interrupthasa level of urgency and the operating system manages whichinterruptsignals will be dealt
withfirst. The operating system has a function called an interrupt service routine that carries out this responsibility.
Scheduling
An operating system that is multi-tasking needs to make sure that tasks are run simultaneously.It is important
to understandthat they aren't actually run simultaneously; the computer switches between them during fractions
of seconds to make them appearto be run simultaneously. For this to occur an operating system needs to have
a scheduler. A scheduler managesthe timeallocated to the different tasks a CPU is currently processing.It can
use several different algorithmsto do this, these include roundrobin,first comefirst served, multi-level feedback
queues, shortestjob first and shortest remaining time.
Virtual machines
A virtual machineis effectively creating a computer within a computer. It is a piece of software that is run ona
computer, but is designed to behavelike a different computer. A commonapplication ofthis is to have multiple
operating systems on a single computer. Each operating system will be a virtual machine.
11
RETA LANDE NARA TRATE
ان
=
2
a
2
5
7
ant
TEC ONS.
5 RSET
TRÈS
IZ
NADAEXT
7
z
à
2170
a
A ER 1
SECS ESSEAER
١ (DD) Describe therole of a scheduler in an operating system.
marks
|
AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA لح
LORCA IEEE OTI«2> »ات وجحTIALS
IPD POE Ss RISTATa SRR عضراEN A A A a
TRC Cree eee eee eee eee eee ee Cee ee eee ee eee eee eee eee eee eee eee eee eee eee eee eee eee eee eee eee eee eee eee eee eee ee eee eee eee eee eee ee Cee eee eee eee eee eee eee eee ee eee ee eee eee eee eee eee ee eee eee eee eee eee eee ee ee eee eee ee eee ee ee ee res
CE OEE OEE EEE H HER REE REESE EERSTE HEHE TEESE SEH EERE EEE MEER EEE RHEE HEE R DHE EEE EEE EEE EEE OEE E EEE ا ا ا ا اE HEE EE HEE EERE EE EE
D Will is creating an Android gameand needsto testit in an Android environment.
He doesn't have an Android device available to test it on. Explain how Will could test
the device using his computer.
Cie
OO ee meee eee ee ee ee EE Hee EE OTTER EER EEE EE EEE ES EEE ا ا ا ا اTERETE SHED RETR ا م اrr
F
GE EPA SERPENTERS
ee rr rs rr rr
AR
ANTOINE AEREA IDASPEU RLS WARE MA انججاهMETA PERT LA RL TYEPEO MSAT SP
OER VS PVN
AMI AMT PEESEPA OT TOT RENE IOS LBP BIC LAUITER ESSE LY IE
Jal
IO
“MT 1D
=
De:
ae
CDR EYE E NT: SAT SAR
Applications generation
Applications are the programs that we use daily to complete our everyday tasks. Some examples of application
software are a word processor, a spreadsheet package, a web browser and utility software.
Utility software normally has a small, dedicated purpose, for example defragmenting the hard drive, scanning for
viruses, compressing files or creating backups. Utility software is designed to maintain a computer system.
Applications can be open source or closed source. When software is open source, the source codeforit is freely
accessible to anyone. This means that users can modify the code to changethe functionality of the software.
When software is closed source, the source codeis not accessible to anyone but the creator. There are benefits
and drawbacksof both open source and closed source software. One benefit of open source softwareis thatit is
mostly free (without cost). One drawback of open source software is that it may not have been tested properly if the
resources are not available to do this. One benefit of closed source softwareis that it has been thoroughly tested
before release. However, one drawback of closed source softwareis that it can be expensive.
(RCE ET RIM
yy TIT BTL,
TO PRL US LR TS RP لاae SORE OS SP PS RATav IA IPN RS UEOT Ne APE EN EN EESTI AMENER 7
NT
ITUNE
Tea.
حي
E
5
> الم اع
art
IEA INF DRAITES $ TAPADA,
LL"
at
| 06 Defragmentation is one example of utility software. Give four other examples of
|
utility software.
:
¡
ئ
]
paco ICA AAA > E EIA EEES ess crece à eee e een DADA A PEI © HOSS € ATENAS E AAA AR e e Ar aa IA 5 660006 € AURA FICA es a ear ren CID A وعد وتق هه
ا
|
:
1
5
rr rr rr rr rr rr rr sr rr rr rr sr
À
١
¿ETT 8 6 8189 § تقفاو وها ذوESTE WOU رورة لهه عمو هه معمعه مم تسمه مهمع محم سه ع4668788 E AAA E ANTENA E PALIO E EPA قر معيو ماعمم م مع رمه ع مامه عه ممسععه و واو جاووروجE RIRS E ONES e مهرم هيو وا واهزوزوئوزة و وأ وفاقعلةAREA > ممع مه » عع+ دعA TALA A ERAS به «إوهلعفاةe PANES ALEA y ea
:
NN
:
ا
ْ
AA اوsm mn mn
|
O
١
A NN
|
!
ال
سسAA AA A eee
%
E
SALMOS CDA DRETS PTE SEENA ERA INACIO TS LE TADOSREG AITANA TESTAASES AAN DD ARRET MIRETIRES ELE EIU
2
ces.
1
De
>
Cie
+h
ع
wee
=
SPA
FR
LSPSERO ERANRh FAS
ا
ْ
!
@ Describe the operation of defragmentation.
marks)
\
Pr لش ل لل ا اrro rro.rssrrssarrrrrnooor.ornorasr9r92.92rrrsrsrrrasnoor$.rrssrrssr9$9.$<”$”92.srrrprssrrrsss9o9nsrcarraranonsasanrrrorrronoor.os...
ON
O
+
=
©
9
A)
2
o
0
FM
Musso nn nn nn nn nn nn nn msn nn nn mn nn nn nn n nn nn nn nn nn nn nn sn nn nn nn ns nn n nn nn nn nn nn nn nn nn sens nn ns nn sn nn nn sms nn nn nn nn n nn nn nn nn nn msn nes msn nn nn ns nn nn nn nn nn mens sms nn sens ns nm لوففمو فر فو مرو و
eee mee eee eee HEHEHE SHEE ETH EEE EE EEE EE EEE EEE SEES HEHEHE ESE HEE EEEEHEEEEE EEE EEE EERE EEE SHEE EEE HEHEHE OEE HEE EEE EEE HERES EEE EE EEE HEE EEE EEE HE EEEHEEHE EEE ESTE EEE EEE SEEEEHEEEE OEE OHEE HOHE SESE ESSE HEHEHE ESHEETS HOES EE HEE HEE EEO REE SESE SES EE OHS EE SHEESH SEED
POOR ee ee eee eee ee RHEE ا
O
=
Reem eee eee eee eH EEE HEHE EEE EEE EEE EEE HEHEHE EEE EE EE SHEE HEHEHE SEEEEHE EEE EEEEEEEE HEHE SEH ESEHEEE EEE SES EEE EEE EEE EE EE EEE EEE EE EEE EEE EEE EEE HEHEHE EEE EHH HSE EEE TEE ESE EEE EEEEHEE HESS EEESEEEE EEE EEE EE EEE EEHEEEHEE EES EEE EE EE HEHEHE EEE EE EEE EEEE EEE EEE EEE EES
ROR e eee e eee eee EEE EEE HEE HEHE EEE EEE EE EEE HEHEHE EEE ETEHE EEE ESSE EEEHE HEH ESE HEE HEHEHE HE OHTE EEE SHEE HEHEHE E ESSE SE EES HEE EE HEHEHE EEE EEHEEH EEE EEE EEE HEHEHE EEE EEE EEE HEHE SHEESH EEE HEHE EEE EEE SEES E HEHEHE EEE HEHE EEE EEE TEES HEHEHE HEHE E EEE HE EH HEHE HERES
Mens nn nn nn nn nn nn nn nn nn men nn mn nn nn nn nn nn nn nn nn nn mn nn nn nn nn nn nn nn nn sn nn nn nn nn nn nn nn nn nn nn nn nn EEE EHES ESE EEHEE SESE EE EEEEES EES EEH HEHEHE SEEHE EEE EE HE SESE EEEEEEEEEEE HEE H EEE EHH HEEE HEHE EEE EE EEE EEE ESEEEE EEE EEE EEE EEE EEEEE EEE SESE EH SHEER OEES
=
o
D
5e
Ox
4)
<
D
Ree ee Ree HEE Eee EERE EERE EHH EEE E THEE EERE HEHE EE ET HEHEHE HEHEHE EEE EEE HEHEHE HEHEHE EEEHEEEEEEEE EEE EEE EH EE EE HEE H EEE HEHEHE HEHEHE EEE EE EEE EE HEHEHE HEHEHE EEE HEHE HEHE EEEH HEHE EE HEE EHH EEE OEE HEHEHE HEHE ESET HEHE EEE EERE EEE EEE EEE EEE EES
O
aS,
3
5
5
+
nn nn nn nn nm nn nn nn nn nn HEE EEE HHH HEHEHE EEE EHH EE EEE EEE EE HEHEHE EH EEE EEE EEE EH EEHEE HEHEHE ESEEEHEE EE EEEEHEEE HEHEHE SHEE EE EEE EE EEEHEEEEE EEE HEHEHE HEE HEHEHE EEEHEEESEEHES HEHEHE HEHEHE HEHEHE EEE EEE HEHE EEE EEE EEE EEE EERE EE EEE EERE
POOR e meee meee ee HEHE HEHEHE EEE REESE EE EEE ESHEETS EE EEEHE EEE EEEE SEE ES EEE OEEEHEE SETHE EEE SEHEEEET EES EES ES ES EEESESEEEESEEEEHE SEES ESET HEE SEE HEE SEE EEE EE ES EE EEEEE EHS E SEES E EE EE HESS EEE EEE SEH SEE SEE EESEH ESSE SEE EE EEESE EEE SEH EE EEH HEHE EEE EEE SESH EEE EEE EES
Pr... ns nn nn nn E EEE HE EEE EEE EEE EHTS EES ESET ESE HEEEES ESET HEE EE SESS EEE EEE HESSD EEEEEEESEEEESESES EE SEE SEE EE SESE EES EEE EE EEE SEE EEEEESEEHEEEEEEHEH EEE HESS EEE H EE EEE EE SEE ESSE SESE EEEE EEE ES EEEEHESESEEESE SESE EEE EEE ESET EESEE ESSERE EEE EOE EEE EEE EES
ARR e eee ee ee eee Eee E EEE HEHE E HEHE EE EEE EEE EEE HEE EEE EH EEE EEE EEE EE HEHE EH EE HEHEHE HEHE EE HESE HEHEHE SEES EE EEE EEE EE EEE EEE EEE EEE EE EEE EH EEE OEE E EEE EEE HEHE HEHE EEE EEE HEHEHE HEE EH SETH EEE HEHEHE SEE EE EE EEE OEE EEE EE DEES EEEEEEEE EES EE EEE HE EHE HEHE EOE HERE
RRR eee eee eee ل ا ا ا ااا ا ااHEHE HESS EEE EES EE EEE EEE EEE EE EEE HEHEHE EOD
Assemblers, compilers and interpreters
When a programmercreatesan application, a translator is needed to convert the program to machine code. This
is because processors only understand machine code. Depending on the language the programmerhas used, an
interpreter, a compiler or an assemblerwill be used.
If the programmerhas written the program in assembly code, an assembler will be used. If the programmer has
written the program in a high-level language, an interpreter or a compiler will be used.
Aninterpreter converts and runs eachline of code at a time. If it hits an error, it will stop running the code and
notify the user there is an error in the program.
A compiler converts the whole program at once before runningit. It will not run if an error is found and will
produceanerrorreport. An executablefile is created by the compiler.
A compiler operates by going through several stages of compilation. These are lexical analysis, syntax analysis,
code generation and optimisation.
Libraries
Whenwriting a program, a programmermayuselibraries. A library is a pre-programmed routine that can be
used to perform a specific task in the program. If libraries have been used in a program,a linkeror a loader
will be required after the code has been optimised. A static linker brings all the code for the library into the
program asit is compiled. A dynamiclinker loads and linksthe libraries at run time. A loaderis also used thatis
responsible for loading the program into memory.It is often thought that a dynamic linkeris a type of loaderalso.
13
Software development
Building software can be challenging, time consuming and expensive. It often requires a certain approach
depending on the amount of time and fundsavailable. There are several different models that can be followed
when building software: the waterfall model, agile programming, extreme programming, the spiral model and
rapid application development.
Methodologies
The waterfall model is a well-known, but rather outdated model. It consists of several stages of development
that are completed one after the other. These include analysis, design, development, testing, implementation
and maintenance. Agile methodologies are when software is produced through aniterative process. An
example of an agile methodology is extreme programming. This relies on very short development cycles.
The spiral model is more risk-driven. It is also an iterative process that passes through four main stages
repeatedly: determining objectives, identifying and resolving risks, development andtesting, and planning the
next iteration.
Determine
objectives
TT
Definition and _
Progress
طب
Identify and
resolverisks
Risk analysis
Review
Detailed
design
Coding f
verification and
validation
¢
|
Code
Integration
Test
Implementation
@
Plan the
next iteration
Release
Development
andtest
Rapid application developmentrevolves around the useof prototypes. A prototype is produced, feedback is sought
and this then informs the developmentof the next prototype.
Each software development model has benefits and drawbacks. The waterfall model is simple and easy to
managebut requires a lot of time. Agile methodologies can produce software in a muchshortertime than the
waterfall model. The spiral model is very goodfor larger projects that may have a greaterlevel of risk. Rapid
application works effectively for projects that don’t have clear requirementsas it allows them to evolve as the
prototypesarebuilt.
. © Draw a diagram to represent the waterfall model.
١
ol
Q)
ع
4
Q)
;
>
Q
|
ep)
|
—
|
O
_
|
0
E
nn Y
|
A
O
<
CZ
|
©
Le
:
(D
E
=
+
- (Y) Give two benefits of the waterfall model.
marks
(E) Give one benefit and one drawbackof the spiral model.
marks)
0 Explain what is meant by pair programming and identify which software development
method usesit.
Gm
|
|
15
er on
2
1
ITEROR EB LSS LEN REE RRM GSE ITT EMAILSa SNP TEINS ICAAADN PE ARTERIA ALTOBE DE ORT
SEENOMS EE £25 BT TINIE ET TRS SABIESPRLSTARS ARIS
ATRIO DEPOR IO LES
DOSIS
NOEL نيد كم
جر نت ب جا اتج
a
١
20) A companyneedsto create a new data managementsystem in a short timescale.
They don't know whatall the requirements of the system will be yet, as their business
|
service is evolving. State which software development cycle would be most suitable
for the company to use. Justify your choice.
AS
x
MADE EIA A DO DS FEW ETT SeeEN EEESRE GL I A E IT ES EP O AS
PWG Leis
SEE, SER PA UE LER OPE
A
00 rr rr rr rr rr rr Eee
OT BDV EIU
OT
Ree ee eH meee eee HHH HEHEHE EHH EEE HEHEHE EEE EEE SEER EEE EH EEE EEE H EEE HEHEHE EES O EEE EE EEE EEE ETERS EE EEE SESE E HEHE EEE EOE EEE E EE HERE SEES EEE EEE EE EHH SER SE DEH EE EHS O DESH HEHEHE HEHE OEE R OHHH ESET EHH EEEE EEE HEED HEHEHE HOES E DEH EEE EE EHS EHE SHEE EOE REED ESD
١
RE 0
<
AFS
ete eee ee ee eee ee eee eee eee ee ee eee eee eee eee eee ee eee ee eee eee eee ee eee ee ee ee eee eee eee eee ee eee eee eee eee eee ee eee ee ee eee ee eee ee eee ee eee ee Cee eee eee Cee eee ee eee eee eee eee eee ee eee ee CeCe ee eee ee ee eee eee eee eee eee eee)
A DAT FRAPPE
STA نا
تسar
4
mE
Cin
nnd
Re LBD
QO NT IASTY PIL
MSS
CTE AR
TNT EE
UES
A
rta
br
LES ENS SEPT RtsTT EY? BAHM NDS LENP DTUCIO ODIA PONES DEA FRIOS ED AGE FSET
AREOU SY Af i HEAD SUICIDA TR
Types of programming language
Programmers can use several different programming paradigms to create computer programs. Each programming
paradigm hasa different approach to how to create the program.
One programming paradigm is procedural programming. This programming paradigm is based around the
DATE AI AUREA AAN ZA
2غ
AAA
a
PIS $
ASADA
By yee مه
FONE SIS
eM
AER
MG
RRS SR ETD PR, ET BE
LYST
TR
aRiy Soe ETE ELI
77
Le PES
MR
SDS
LE
LDC NET
VAE
CAIROAR
ARIS IRA
SA
NAAT ETA
21) Define what is meant by a programming paradigm.
E
22) Explain what is meant by the procedural programming paradigm.
marks)
SRR sn eee mee meee mH Eee eee HEE EE EEE HEHE HEHEHE ESET HEHEHE EE EEE HEHE EEE EE EEE EE ESSE EEE EE EEE EEE EEE EEE EE ESE TEEE EEE EEE HEE SEE EEE HESS EEE EEE EE EE EEE EEE EE EEE EEE EERE EEE EEE EEE REEEEE SHEE TEESE EEE HE EEEEEOE ETH EH EEE EE EEE EES EE EEE HOHE HEHEHE EEE EEE EE ED
ااا ااال ااام ااا ايهmn nn nn nn nm nn nn nn nn nn nn nn mme nn nnلوافمل عرف ف ررم رمم عا ااا ااا ااا اا ااا ااا الا ااا ااا
DORR Reem ee meee eee eee eee EEE EE EEE E EEE ESHEETS HEHE HEHEHE EERE EEE EEE EEE EE EES EEE EE EEE HEHEHE EEE EEE SEEDS EEE EEE EEE EE SEE EEE SESE EEE EEE SEES HEHE EEE SEE EEE EEE EE EE EEE SEED HEHE EEE EEE EEE EEE ESSE SHEE EEE EEE HEHE ETH HE SEE HE EEE EEE EHH HES EES EE OE HEH HEHEHE EEN EOE ES
Wee eee eee E EHO HEHEHE EEE E HEHEHE EEE EEE E HEHE EEE HEHEHE EEE EEE EE EE EEE EEE EEE HEE EEH EEE EEE EEE EEEE EES EEE EEEEEEEE SEES EE EEE HE EE TEESE EEE EEE EEE EEE EEE EHEEH HEHEHE OHH EEE EEE HE OEE EEEHE HEHE HEHEHE HEEH HOSE EEHHE HEHEHE EEE HEHEHE HERE EE HEHEHE EH EEE OE
There are several alternative programming paradigms. These include declarative, imperative, functional and
object-oriented. Declarative programmingis abouttelling the program whatit should be achieving, whereas
imperative programming should tell the program howto achieveit. Functional programmingis a declarative
approachthatis focused around building a collection of functions. Object-oriented programming focuses on the
developmentof objects rather than actions. It focuses on incorporating both data and processes, rather than
treating them as separate elements.
PE RES eue LS COSTA IO IP te
SOLITAAAA DAGA RG كد- موي “عاLIE AA A A TSEn de
creation of subroutines that can be called at any point in the program.
Object-oriented programming
Object-oriented programming involves the use of classes, objects, methods,attributes, inheritance, encapsulation
and polymorphism.
=
09
5-5
A classis like a template. In a class we define the attributes and methods that we want the class to have. The
(D
an object, a constructor is used.
O)
ل
Encapsulation is a fundamentalaspect of object-oriented programming. The act of incorporating the data and
00
attributes are the data and the methods are the processes that we needfor the class. To initialise each attribute in
ok
2
=
processestogether in a class is an example of encapsulation. The use of get and set methods to access, amend
=
and return data is also an example of encapsulation.
Q)
A
Inheritance is a fundamental aspect of object-oriented programming. Often, a system will require multiple
classes. This could involve a parent class that contains the information thatis applicable to all objects, then
child classes are created that contain more specific information. On most occasions, a child class will inherit the
attributes and methods from the parent class. This means that if an object is created based on a child class,it will
carry out all the requirements ofthat class and of those in the parentclass.
AFD
ان عفانA A RA O O A A A
oA Y
4
¡o
(D
<<
Ls
O
O
=
Polymorphism is also a fundamental aspect of object-oriented programming.This refers to the ability to
create objects differently depending on their data type or class. There are many examplesin object-oriented
programmingthatfall into the definition of polymorphism. One example would be a methodthatis defined in a
parent class but overridden in a child class, dependenton certain circumstances.
i
ep
2)
+
O
—
+
2
(E) State what is meant by class.
E
eee meee meee ee ee eee eee Eee EE ET ESEE SHEESH EE EEE ES EESEESESEEEEEE EE EEE SEES EE EE EEE EES EES EEE ES OES EEE OSES ESE EEE ESSE DES ES ESO EE RESET EES EEE EEE EEE EE EEE EES EES EES ESEEEH ESHEETS EEE EE EEE EEESESEESEEEEEE
EEEEH ESE
|
EEO EEEEEEEeeeeeS
Oem eee mee eee eRe HERR E EEE EEE EEE SHEER EEE EE EEE EE EEE SEE EEE HEE EES EE EES EEE OEE EEE EEE EEE EE EHE HEHE EE HEHEHE EEE HEE OEH HEHE EH EEE EES OEE EEE EE EEE HEHE SHEE SEES EH EEH EEE EEE EE EEE HEHEHE SEE EEE SEHEE EE EEEEHEE EEE EE HEE HEHEHE EEE EEE EEE EEEEE OES OEE EE DEED OEE EEEES
E
ا
POO e eee eRe E REE HEHEHE HHH E OE HEHEHE ESTEE EEE EEE EEE EEE HEE EE EE HER EE EEE EE HEHEHE EEE EEE SEES EEHEEEE SHEE EE SEES HEHEHE SEES HEEEE OEE HEH OEE O HEHEHE HEHEHE ESE EEE HEHEHE ESET HEHEHE EE EEEEE HOE HEHEHE EEE HEHEHE EEE EEE EE EEE EEE EEE EEE SESE EEE EEE EEE SOE H EEE HEEE
$
À
à
{
ا
ARR e eee eee eee HEHE EERE EEE EEE E EEE SEH EEE HEHEHE EEE HEEE HEHEHE EEHEE HEHEHE HEE EEH EEE E HEE HEHEHE EEE HE SEE HEHEHE HEHEHE HEHE EE EEE EEE HE EOE HEE EEE EEHEEEEEEEH EE EE EEE EES EE EEE EEE EE EEE REESE EES EEE SEES EE EEEEE EEE HESS EE ES HEHE HEEHEE EEE HEH EE HEHEHE OEE HE HEHEHE OE ES
1
i
١
0
:
Ree eee eee eee EEE EEE EEE HEHEHE EEE HEE SESE
HE HEHEHE
HEHEHE EEEEES EEE HEHEHE SESE EEE HEHEHE EEE OE EEE HEHEHE HEHEHE EEEHEEH SEES EEE EE EE EEEEEH EEE EE EEE EEE EEE EEEEE EEE EEEE SHEE EEE EE EEE
HEHEHE EEE
i
|
nn nn nn nn nn nn nn nn nn mn HEHE EEE EEE HEHE EEE EEE SHEE HEHE EEE SEES EEE HEHEHE HEHEHE EH EEHEHEEEE EEE HEEEEEEEEEEHEEE HEHEHE EEE EEE EEE EEE EEE HEHE ES EEE HEHEHE HEHEHE HEHEE HEHEHE ESH HEHE HEE EEE HEHEHE HEHEHE HEHEHE EEE HEHE EEE HEE EEE EE EEEEEEEEEEE SEE HEED EE OED
à
1
i
a:
Pee R eee eee HEE EE HEHEHE HEHEHE HEHEHE HEHEHE EEE EEE EEE EE HEHEHE EEE EE EEE EHH EHEE EEE EEHE EE EEEEH HEHEHE EEE EEEEEHHEEEEEHEESEEE EEE EEHEEHEH HEHEHE SEE EEE EE EEE EEE EEE EEE E SEE EEE SEES EEE EEE EEEE EEE HEE EEEEEEHEEEEEEEHEEEDEE EEE EEE EEE EEE EE HEED HEHEHE EEE ED
O LRU A LE OST
A
|
ORE Ree eee OEE E HEE EERE REET HEE EEE EEE EEE HEHEHE EEE H HEHEHE EEHHEEEOE HEHEHE HER EEE HEHEHE HEHEHE HEE EE HEESH HEHE HEHEHE EH EEH ESET HEE HEHEHE HEHE EEE EEEEEEEEEE EEE EEE HEHEHE EEE EH EE HEHEHE EE SEE EEEE EEE EEEE SOO EE EEE SESE HEH HEH EE EEE EEE EEEEE EEE E EEE EEES
PRR nn nn nn nn nn EEE HEE EEE RHEE EEE ETERS EEE EEE EEE EEE EE EEE EEE EEE HEHE HEHEHE EEE EEHEEOEE EE EEEHESEE SEE OEEEHEEEEE SHEE ESHEETS EEE EE HEHEHE HEHEHE ESET EEE EEEEEEE HES EEEE HEHE ES EEE EE HEHE HESS DEE EEE EEEEESE SEES EEE ESEE ES EEEEESEE EEE HERES OOE EEE HEE EE HEE EE EES
RRR Reet ee Ree Eee E HERE HEHEHE HEHEHE HEHE EEE EE HEE HEHEHE EEEHEEE HEHEHE EEHEEE HEHEHE EHH HEHEHE EEE nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nm nn nn nn nn nm mn nn nn nn nn nn mn nn nn msn nn mn ns HEHE EE ES
nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn mm nn nn nn nn nn nn nn nn nn nn nn nm nn nm nn nn nn nn nuuns
nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn mn nn nunsnuuss
nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn sn nn nn msn nn nn nn nn nn nn nn nn nn nn nn nn nn nn mn nn nn nn mn nn nn nn mn nn nn nn nn nn nn nn nn nn nn nn nn nes nn mn nn nn nn nn n nn nn nn nn n nn nn sn nn nn nn nn nn nnnnnn nn nn ال
nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn mn nn nn nn nn nn nn ا ا اHEHEHE EHH ل ا ا
nn nn nn nn nn nn nn nn nn nn nn nn mn nn nn nn nn nn nn mn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn ne nn nn nn nn mn nn nn
nn nn nent mns mn nnsnmsseussss
17
PENADO ARONA ITCR NETA DIDIER AEB GENIOS LA III
EOI SESE PUREE TES
ARIAS ESTARIAATTE
INR
2
TIL IZ
وف
١ 02 Create a class diagram to show whata class could looklike for a bank account.
marks,
_ )@ Theclass ‘bank account’is now a parentclass.It has twochild classesof‘current
account’ and ‘savings account’. Expand and adapt yourclass diagram to include
the child classes.
marks
| 05 The parent class has a method to calculate interest. This method is overwritten in the
|
child class for the savings accountif the customer has a variable rate of interest applied.
State what this is an example of.
AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA sense
Assembly language (Little Man Computer)
e
One language that computer programsare written in is assembly language. All processors will convert any
computer program to binary to be processed. Assembly language is a low-level computer language that can be
converted very quickly.
A simulation called Little Man Computer can be used to see how the CPU processes assembly code. There are
several versions of the simulation available via the internet. Each instruction in LMC has an opcode and an
operand. The opcodeis the mnemonic that defines that action that takes place, for example LDA, and the operand
is the part that the action is performed on, for example, Num1.
Mnemonic
Instruction
ADD
Add
SUB
Subtract
STA
Store
LDA
Load
BRA
Branch always
BRZ
Branchif zero
BRP
Branchif zero or positive
INP
Input
OUT
Output
HLT
End program
DAT
Data location
e)
E
=
Q)
D
SD."
d
لت
ei
O
=
Q)
0
el
D
ee
27
—h
cr
ve
D
e)
=
=
5
7)
ES
Table 1 The opcodes that can be used in LMC
TENA
| €) State where data is initially stored beforeit is fetched into the CPU.
-
a
3
3
0
90
oO
O>
D
>
=
0
وا
Se
oO
=
19)
an]
ta
c
>
(Mm
3
or
2ك
A
rr
FUERO
SPY TNE) AAS TPE EE ION ITE OEE
=
Nee nm nn nn nn nan nn nn nn nn nn nn nn nn nn nn nn nn ann nn nn sense nn n Hee eee eeeees
CR EE AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA EA EEE AA لالمر م م
32 Write a program for LMC that will loop five times, outputting a value each time thatis
stored in a location named B. After it has looped five times, it outputs a value stored
in a location named andstops.
eRe ee ee meee Eee eRe EERE EERE H ETH EERE REESE HEHE EEE E EEE EE EEO EE THEE EE EEE EEE E EE EERE EEE THEE EEE HEE HEHEHE EERE HEE EEE EEE EER EE EEHREHEEE REE ERE EE EEE EE EEE EEE HERE E ERE ET EERE HEHEHE EHD ERE EE EEE EEE EEE EE EEE TEESE EE EERE EEE HEHEHE EE EEE EERE
NCMR EIREهعرج
=
جوع دIe = PPLE, Pee
mark)
ERR ERE eR OER Eee EER REE EEE HEHE ETE EE HEHEHE EEE HEHEHE THEE EE HEE HEHEHE HEE EEE EEE EERE HEE HE HEE E MEER HEE E EERE EERE EEE EERE HEHE EEE THERE HEHEHE HEHE EEE EH EERE EEE RHEE HEE EE EE EEE H HEHEHE HEE SETHE HEED EE EHH THEE EEE EEE EH EEE EEE EEE EEE EERE eee tee
مجه حوDER TARA SIL
RR eee eee eee EERE EOE EEE RHE ET ORE E HEHEHE HEHE EEE EE HEHEHE SHEET HEE EE HEHEHE E SEES H HEHE HEHEHE HEHEHE EEE EE EEE EE EEE RETESET EHS EE HT EEE RE HE TEES HEHEHE EEE EE EEE EE EEE EEE E EEE EE EEE SHEE E EEE ESTEE EEE HEHE HEHE EEE EERE EEE EEE EEE EEE EEE EEO Eee ee
eee ee ee EEO REE EE EEE EERE HEHE THEE E EE EEE EEE T HEHE HEHEHE EE EE EET HS HHT EEH HEHE ETE HE EEE SEES H HEHEHE HE EERE HEHE EEE SHEER HEHEHE HEHEHE REE EEE EEE EEE EERE EEE EEE HEHEHE TEETH ETE EEE EEE EEE EEE EEE HEHE EEE EEE EERE HEHEHE ETHER HE HOHE EEE
EA
00 ع ع ع ع ع ع ا ا ع ع ا ا ا ل ل ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا اا ا اا ا ا ا ا ا ا
¿ER SGOT BASS SeeUS ERS
2S ae
00 ا ا ا ااا ا ا ا ا اrr ا اا ا ا ا ا ا ا ا ا ا ا ا ا اEEE EEE ESD
nn nn nn nn nn nn nn ne nn en nn nm nn nn nn nn nn nn nn nn nn nn ne ا ا اne nn nn nn nn nn nn mme EEE EE HEE HEHEHE EEE EEE HER ORO EEE
Mons rs sr
Herr rr sr ا
£
>
DECOR eee eee HEE EOE EEO E OEE E EEE E EERE EERE EERE EE EEE E OHHH HEHEHE EPH SEER HEE HEE EEE EE EEE EE EEE HEHEHE EOE EE HEHE EEE EOE E HEHE EE EHR EE HEHEHE TETHER EEE EE EEE EEE EE EHH EF ES EE ESTEE EEO EERE EEE ESTEE EHH HEE EEE E HEHE RET ERE HEE HEHE OEE E HEHEHE ee
19
Memory addressing
=
_
When we need to access memory locations in assembly code we can use several different methods. These include
direct, indirect, immediate and indexed addressing.
In direct addressing, the assembly coderefers directly to a location in memory that we wantto put the data. For
example:
INP
STA 5
HLT
The instruction to store the inputdirectly points to addresslocation5.
In indirect addressing, the assembly coderefers indirectly to an address in memory of data that is required.
Therefore, STA 5 would now mean that whatever value is stored in address 5 would be the address ofthe value
that needs loading into the accumulator. For example, if 12 was stored in address 5, then the value stored in
address 12 would be loaded into the accumulator.
In immediate addressing, the operand value is the actual value that we require in the accumulator. Therefore,
In indexed addressing, the index register is used. The value stored in the index register is the address required.
The index register can be incremented to changethe value for the address required.
Exam-style questions
Ç
€) Write an algorithm to explain how datais retrieved from virtual memory.
34 Explain how an interrupt service routine operates.
5
li
سيت يي
0 E
E
مح
rrr eee
A
—
a
li
AA
ms:
alee
o
STA 5 would now mean that we want 5 in the accumulator.
CR R eee EERE EERE Re Eee EEE EER HEHEHE HEHE SEER THEE HEE HEE EE HEHE EEE EEE EEEE SEH EE HER EEE RHEE HEE HEE SEER HEE HEHEHE EERE HEE RHEE EEE EEE HEE SE HE EES EEEEEE HEHE SEES HEE EEEHESEH EE EE HSER E EHS EE HEHEHE ES EET HEHE ESEHEEE SEES SESE ESE HEHE HEHE EEE EE EEE EEE EEE E EEE SEES
harenss
SOOO ee Re eee ee ee ee ER EET EEE HERE ERE EERE REE EEE RHEE EEE HERE EEE OES H EEE HERD HES R HEE TREE EEE E EERE EEE EERE RESET EEE EE RHEE EOE E HES E SEER HERERO EEE لا ات ا
....”.
CRE sr. orsrrrrrr rr. .rans9$.$ ”..rcnrrns.m.rcrss$srrnrrrr. son... HEEEEE ERE H EEE SEE EERE REESE EEHEEEHE EER ES HEHE HEHE EEEER HESS EEE EEEE SHEE SESH EEE OE
ono... n.onscnanarrnsarnaarsnananasaranranaranasrr sarna... .nsrss.ro.n..r..$.oss$.$.2..assasrr..$9.92.r$..2.srr$9..2 sanar ESET RHEE EEE EEE ES ES HEHE SEES HEHE HEE EEEE HEE EH EEE HEH EE EHH EEE
AON ee ee eee eee REAR ER EE HOE HEHE RHEE E HSER SERRE REESE MEE EEE EERE EEE SESE HEHEHE RHEE E HEHEHE ETE EE OEE RESET E TESTE EEE SEES EEE EEE RE HEE EEE HEHE EEE EH HEE EEE EE BEER EEE
ROR ee eee meee ee eee REE EEE HEE EEE EEE EES ا ا ا ا اش اEERE EE SEER OEE EEE SEES
000000010 ery
SE اnn اEEE EEE EE HEE HEHE SEH HERO HOE E EERE
State which translator Luke should use. Justify your choice.
nn
nn mn nn nn nn ne nn nn nn nn nn nn nn nn nn nn mms
nn
nn
nn
nn
nn
en
Herr
ا ا ا ا اmnsensssesssseuss
rr rr nn
00000 اا ا ا ا ا ا
mn nn nn nn nn nn nn nn msn mms mms msn EEE
nn nm
nm nn nn nn nn nn nn nn mn nn nn nn nn nn nn nn nn nn nn nn nn EEE EE EEE EEE EE EEE E SESH ESE HE EE HEE EH EEE EEE
الى
00000 ا ا ا اا ا ا اا
مnn nn nn mens nn ns nn
36[ Nancy uses an interpreter to create code for her school project. Explain why Nancy
would use an interpreter rather than a compiler while creating the code.
Mn nn nn nn
mn nn nn nn nn nn nn nn nn nn nn nn
ال ا
nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn mn nn nn nn nn nn nn nn nn
¡PEN JECARMONA09
€ Luke has a program that he wants to send to his friend Alice. He wants Alice to just
be able to run the code. He doesn't wantto give her access to the source code.
EEE EE EEEE
nn ا
nn nn nn nn nn nn nn nn nn nn nn nm nn nn
nn nm nn
RRR REE REE EERE EERE EERE EEE
eee
ERE REET
HEHEHE HHH EHE
EEE
RE EERE EEE E EERE ER EE REET HEHEHE HEHEHE EE HEHEHE
nn nn
EEE EEE EEE EERE
EHH HEHEHE ERE EEE E THEE HEE HEE EEE EE HEH HEHE E EERE HEHEHE HEE E HEHEHE EEE E HEHEHE EEE EEE EEE HEHEHE HEHE EEE HEHEHE EEE E HEHEHE HEHEHE HEHEHE ETERS EERE EEE EEE HEHEHE EEE HEHEHE EEE EEE EH EE
ىا ل
EEE HEHE
EE
ESE HEEEEH HEHEHE EEE HEEEEEEEEHEEH HEHEHE HEHE EEE HEHEHE HEHE HEHE SHEE HEHEHE EEES HEHEHE HESS EEE EEE
EEE EE EEE EE HEHEHE EEE HEHEHE TEESE HEHEHE HEHEHE EH EH EEE HHEEEEE EE EE HEHEHE EE EEE EEE E HEHEHE HOHE SEH E EEE HEHE EERE H SE EEE HEHE EH EEE EE ES
RRR eRe ee RRR RE EEE EEE ال
E Nancy has finished creating the code and now wants to compile it. She has used
libraries when creating her code. Explain how Nancy's code is compiled.
rro rrrrrrrrnono..onn.nr..n.r.n.ooprrssrn$rr9..rrr.no.or.nr.o.r.r.n...n......s......onsss$.9$.snsrssr9..rsromr.2.2.onn.srrrsrrsrrsr$.rs9$r9$”.rssr9.$.2.a.osss9rss.2.r.rr..2.rssrrsrsarsrsr$rnrssrsrrrarsrsrrsr.s$r$—rsssrnsr...o..ooss
nn nn mn nm nn mn nn nm nn nn mn nn nn nn mn nn nn nn nn nn nm nn nn nn mn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nm nn nn nn nn nn mn nn
nn nn nn nn nn nn nn nn nn nn nn mn
nn
nn mn nn mn nn mn mn nn nn nn nn mn nn nn nm nn nn nn nn nn nn nn nn mn nn nn mn nn em
nn nn
nn nn nn
nn nn nn amsn mms
EEE EES
nn nm nn nn nn nn nn nn nn nn nn mn nn mn nm nn nn mn nn nn nn nn nn nn nn nn mn nn nn nn msn nm mn nnnnn nn
A
nn
nn
ال ا
nn nn nn mn nn nn nn mn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn
D
HEHE EEE EEE EEE ED
nn nn EES
una nn nn nn nn mn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn mn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nm nn nn mn nn nn mms
D ل
ا ل ل لnn nn nn nn en nn mn nn nn nn nn msn men EEE REESE HED
Mn nn nn nn nn nn nn mn nn mn nn nn nn mn nn nn nm nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn ne nn nn nn nn nn nn nn nn nn
nonا
nn nn nn nn nn nn nn nn nn nn nm nn
ا
nn nn nn nn
rr للمل
ا
nn nn nn mn nn nn nn nn nn nn nn nn mn mn nn nn en nn nm nn nn nn nn nn nn nn nn nn nn nn nn nn nn ل
21
(38) Many companies now prefer agile software development methods rather than the
classic waterfall lifecycle. Discuss why this change has occurred.
RE EE rr اrr rs rar rr rr
00000 AAA AAA AAA AAA
PR eee eee ee EH Ree EER eR EE EERE EE EERE HEHE R EEE SHEE HEE EEE RHEE EEE OEE RHEE REE EERE EERE HEE REESE EE EEE EERE EE REED REE EEE REE REE SERED HEHEHE EEE EEE SHEER EEE EER RHEE EEE EERE EEE EEE HEEH EHH EHH EEE E EEO HERES HEEE EHH RHEE EEE ESE EEE EEE E ESSE ESSE EEE EEE H EE EES
nm nn nn nn nn nn nn nn nn nn nn ne nn nn ne nn nn nn mn en nn en nn nn annee nn nn nn sm mn mn nn nm nn nn nn ns na nn nn nn mn nn nn mn nn mn en nn nn nn nn mme men nee meme nas nn nn nn nn nent nn nn mn men HE EERE E OEE HH EER EEE EES HEHE Re eT EE EEE EERE EEE ES
000 ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا0 0 ا ل ل م ل لا لل ا ا اEEE EEE EEE SEH EE DE EEE HEHEHE EE EEE EEE EE HEE EE EERE HH HEHEHE ER EE HEE EEE EERE EEE EEE HER EES
ااال ار ع راوع عع مااع ااا ااا ااا ااا ااا ااا ااا الهD EEE REE HEE EERE EEE HER EEE SETHE HEHEHE EERE E HEE EEE EE SES EES EHH HHEHEE EEE HEHE EEE EEE EEE EE HEHE EEE EES
RARE RRR nn nn E ERE R TREE HEE EHE SHEE HEHEHE EEE HEE E HERE E EEE EEE EEE EHE HEE E EEE HEE EES HEE HEE MERE REESE EERE EEE E EEE H EEE HERE EE ESHEETS HEH EEEE DEES HEE HEHEHE ES EEE EEE HEHE EEE HEE EE DR EOEEHE EHH RHEE EEE REE EEE EE HEE SEH EEE EEES EHH HETERO HE OEE EH EHH EEE HOES
RE eee mee eee REE REE REE EEE O EEE HHO EEE SEER EEE HER SEES EE HEE HE SHEESH EEE REESE SEER EEE ERE SEER HEE EEE ROE E EER SERRE EEE SEE EEE E REESE EE DEER EER SERS EE SEER EEE E EEE EEE EEE E THESES EE EEE SHEESH EEE HR EE HEHEHE EEE H THESE HSH EE EEE EEE HE EEE HEHE EEE E EEE EEE
PER eee ee em eee mee meee eee eR EERE EHR T EEE EERE HEE REE E SHEE HO HEE E EE EEE EEE SHEE REE REE SESE SEE REESE EES ERE EERE EH EEE SEE H EERE HE HEHE EEE EEE HEED OEE EE HER HEE RHEE HEE EEE SEER EEE EEE EEE HEE E EERE HEHEHE EH EE EEE EH HED ESE EH EE HE HERS HEHE EEE OEE EEE EEE EEE RE EEE HED
CR EE RHEE EE ER EEE TERE ETHER ETE EEE EEE TEESE EERE ER EEE TEES HEE HEE HEE SHEE HEHE EEE REE EEE EES DED HEE EEE SEER ERED OEE RHEE HEEE EE HEHEHE REED EEE REE HEHEHE E HEE EERE EEE EEE EEE HEHEHE EEE SHEET HEHEHE HERE EHH HH EEE ES OHHH THEE HEHE HEHEHE EHH EEE EE Ew HEE HED
ORR ee ee EEE REET EE EEE E RHEE MERE EEE EEE HH EEE SEH OE EH EEE HEHEHE HERE OEE HEHEHE HHEEEE EERE EE RHEE HHE SEETHER EEE HEHE HEHE HEHEHE HEHE EEE HE HEHEHE EEE EERE EERE EEE EE EEE SESE E EE MEOH HEE THEE HEE ER EEE HEHEHE EE EEH HEHEHE ERE HEHEHE HEHEHE EEE HEHEHE EHH EEE EEE
TORR Ree eee Ee Eee ROE E EEE EEE EEE EEE EEE EEE HERO E EHH EER EE EE EEE HEH O HERS EE EEE EEE EEE E HEE HEHE EEE HEHE EEE HEHE HEHE HERD EEE HEHEHE REE HEHE SHES REET REESE DOERR EHR DEERE EEE EEE HEHE REE EEE HEHE THE HEHE EHEE EHH E REE HEHE EEE HE HEEHEEESH REED EE HEE H EEE EEE E EE EES
COR eee ee ee ERE EERE HEHEHE E EEE E HE EH ER HEEH HEE HEHEHE EEE HEHEHE EEE ESTEE EEE E EEE EEE HHH EEE EEE HEHE EEE HEHE EEE HEE REE EHEEEHEHEHES HEHE EERREEE REE EHH SESE HEHEHE EEE EEE HEHEHE EEE EH EEE EDE EEE HEE HEHEHE EEE HEHEHE EER HEHE ESHA EH EERE EH EEE EEE E DEERE ED
PRO ERE OEE EEE THEE ETE HEHEHE EEE EEHEEEE EEE EEE HEE E EEE EEE HER EE REE EEE HEHE REET EEE RHEE HEE HEHEHE HEHEHE EEE REE SHEE SHEE HEHEHE HEHE EER EERE EH SEER EEE SHEE E EH EE EEE EE HERE HERE HEE EHE HERE EOD EE HEE HEHE REESE HEE HEEEEEEH EE EH HEHEHE EER HEHEHE EEE DEES
CRE sn nn nn nn nee nn nn nn nn nn nn nn ns nn nn nn sta sn nn nn nn nn nm EEE EEE HEE HSER SHEESH EEE EH EEE SHEE EEE EEE REESE EEO EEE REE EEE RESETS SHOE EE HSER EER HEH EEE ETE SEE EE EHR EEE EEE EEE RHEE HEHE E EEE EEE EEE EEE E EEE HEHEHE HE ES ESHER EEE HEHEHE SEES EEE EEE EEE EEE EES
CR EE EES TEESE EERE EEE ESTEE EES ESET HERE EEE DERE EEE EHE ER EEE HEE REO H HEE EHH EEE HR EE HESS HEE SHHE EEE THES HEHEHE EER EEE HEHE EEE HEHEHE ا ل ا ل اEE HEHEHE HEHEHE EEE HES H REESE HEHEHE HHO EERE EEE EEE EE®
CREO nn nn nn RR HR EEE HEHE RETR EEE EEE EEE EEE HEHE HEHEHE SEES ETHOS EEE MEER EET E SES EEEE EEE HEE HEHE EEH EERE EEE MEET SHEE TEE EEE EERE EEE REE HEE EER HEHEHE EHH DERE EEE nn nn nn nn nn HEHEHE EEE EEE HEE ES EE EE SHEE EEE H EES HEE EEHEE EEE EEE HEE HEHE REESE EEE EEE EERE
BAER EEE REE eee eH EEE EEE HEHEHE EERE SHEER EHH EEE HEE HEED EE EE HEH EEE EEEEHES EEE HEHE HEHEHE HEHEHE EERE EEE HEHEHE HEHEHE EEE HEHE HEE EEE HEE HEHEHE HEED EET ER EH EEE ا ل مDEE اا م لEHH EHE HEED HEHE EEE EEE EEE SHEE EEE
nn اnn nn nn nn nn nm nn nnsses
mm nn mn nn nn nn nn mn nn nn nn nn nn nn nn nn nn mn nn nn nn nm nn nn nnemsss
nm nm nn nn nn nn nn nn nm mn mn nn mn mn nn nn nn nn mn EEE EE EEE EEE EEE EEE HEHEHE EE EER EE EEE HHH HEHEHE EEE E HEHEHE E HEHE HERES EE EEE
DOOR
nn ne nn nn nn nn me nn nn nn nn sn nn nn nn nn sn nn nn nn nn nn mn HES HEE EEE EE EHO EEE HEE EEE SHEE EEE EEE SESE HEE SEED EER EEE SEER EEE ESHEETS EET EEE REET SEER ES EEE HEHE
HEE EEE RHE
E RE EEE EEE EEE SEES
ro. nan nn nm nn nn mn nn nn nn nn nm en nm nn nn nn ne nn ne nn nn nm ESHER HEHEHE HEE REESE HEE HEE HEHE HEE RHEE EEE SHEER EEE SHEE EHE REE EEE E EEE REE H EEE EEE METS EEE HEE RHEE OEE SHEE SHEESH EE EEE EEE E SHEE EEE HEHE EEE E ERE ا ل ل
)04 Write an assembly code program for a guessing game.
The program must:
= allow the numberto be guessed to be input
allow the numberbeing guessed to be input
allow a userfive tries to guess the number
output the number1 if the numberis guessed correctly and terminate the program
output the number0 if after five tries the numberis not guessed correctly and terminate the
program
Writeyour answer on a separate sheetofpaper.
Exchanging data
Compression
When data is exchanged between different systems we often need to compress it to make the process more
efficient. There are two methods of compression that can be used, lossy and lossless.
=
x
@
عد
©
5
e
=
©
O:
©
©
e
In lossy compression, the size ofthe file is reduced by permanently removing some of the data. The data thatis
targeted for removal is data that is thought to be the least important detail. This will reduce the quality ofthefile,
but possibly not in a way that most people would notice.
In lossless compression, the size ofthe file is reduced by temporarily changing the data it contains, but not
removing any ofit. The original data can be restored whenthefile is decompressed. Two methodsoflossless
compression are run-length encoding and dictionary encoding.
Run-length encoding is used whenrepeating values occur consecutively. These values can be compressed by
recording the numberofrepetitions.
Dictionary encoding is when repeating values are encoded using a dictionary. Each character or wordis given an
index in the dictionary.
pone minimise
| @ state what is meant by compression.
o
~
mark
OnO
:
2521317111 100 TS ec pr
6 Identify the two types of compression that can be used.
COn
DRE REE EERO HEE HEHEHE EEE EEE EEE EEEEHE HEHEHE HEHEHE EEE HEHEHE HEHEHE ER EE EERE EEE EERE HEE HEE HEHEHE EEE EERE EEEHE SESE EEE EE EE EEE
EEE EERE
marks)
EEE
©) Explain whylossy compressionis not suitable fora textfile.
Em
AO
Ann
(E) Considerthe phrase: 'Every day,in every way, | am getting better and better.
a
marks)
Encode the messageusing run-length encoding.
A
\
210111011010111 111111100011111 11 10101010111111111[ [ [ [|[زازا1# +1 1 01011111111111 لل
23
O, ll
Encode the messageusing dictionary encoding.
c
Explain which encoding methodis better and why.
ESTA E ooeee E LE A
A Tous
رس
b
Arras rr rr rr eee eee ee eee eee eee ee eee eee eee eee eee eee
اليهee eee ete Ree ne nn mn sen nn mn msn nn ne nn mn EEE RHEE EEE ETE REESE EES HEE EEE RHEE EEE EEE HEED ESTEE RHEE EEO R EER EEE EEE REESE EEE EE EE EEE HERE EEE EEE ESET HERE EERE EE SEE REE HEHE MESHES ER EEE REE EEE EEE EEE EERE EEE E EEE EES
Reem eee rr rr rr rr rr sr sr rro
rr rr rr rr rr HERR EE DEERE EEE TEETER ETHER EET EOE EE EEO EEE EERE REESE EEO REET EE EES
CO ee ee ee eee eee eee RRO HERR REERE HERETO HERAT SHEE TETHER EEE THERE EHE HEED HE OE EH EEE HEE REE OER SEES EE RHEE R EEE RETESET EEE SED EEE RHEE REESE REET ETHER EERE HEE E EEE E EES EE EE EERE REE EEE EEE EEE THEE EEE EEE HEE EEE E EEE EEE E EEE HEHEHE EERE EEE ORES EE HEHEHE EES
Pe eee eee ee eee eee ERE REE ee Reem EEE HER OEE EEE EERE EEE ERE OER EEE THERE EERE EEE EEE SETH EEE EEE H REESE HEE HEED HEHE HEHE EEO HERE EEE EE TREES TEES HEHEHE SE HEE HEHEHE EEE HEE EEE EHTS EE HEHE EE EEE HEHEHE EEE H EE HEHE DEER HEE HEHE EEE EEE E EE HEHE HEHEHE EEE EEE EEE eee HE EEES
NERO meee mee mee meee eee EEE E HEHE aE EEE THEE RHEE HEHE EEE HEE EEE EEE EEE SHEESH EEE EEE EEE SEES EES EE DEH EE EEE DEE H EEE EEE RHEE EE EEE EEE EE REED EEE RHEE E HERE EEE EEE REEEEE EEE HE EE HEE HHH HEED HERE EEE HE RHEE EEE EEE EEE SEEDS EEE SEH HEHE DERE EE EEE EHH EEE REDE HEE E EEE HEED
Encryption
Whendata is exchanged betweendifferent systems we often need to encryptit. This meansthatif the data is
stolen, it will be meaningless to the perpetrator. Before data is encrypted it is knownasplain text. Data that has
been encrypted is known as cypher text. A key is used to encryptdata that is a form of encryption algorithm.
There are different types of encryption that can be used: these include symmetric and asymmetric.
In symmetric encryption, a single key is used. The same keyis used to both encrypt and decryptthe data.
In asymmetric encryption, two different keys are used. One key is knownas a public key and the othera private
key. The public key is used to encrypt the data. To decrypt the data, the public key mustbe applied with the
private key.
Hashing
Hashingis like encryption,in that data is effectively encrypted, but data cannotbe directly decrypted in hashing.
It is basically a one-way process. An example of a use for hashing could befor the storage of passwords. A
company may need to store users’ passwordsfor their accounts. The company probably does not wantto
store the actual password string, becauseif it was hacked, it would be very easyfor the hackerto steal all the
passwords. Therefore, a hash function (also knowna hash algorithm) could be applied to the password before
it is stored. This would meanthatall that is stored is the hash version of the password. Whena userenters their
password, the hash function is applied again to see if the outcome matchesthe version stored.
ظ
|
|
|
| |
|
© State what is meant by an encryption key.
|
o
A
m
|
Ps
ل
١
60
|a——om
||
[e
=
|
|
|
o
¡ol
D
: © State what is meant by a hash function.
QUE
|
Aاا ااا ااا ااا
|
E
Benne
| )© Describe how an encryption key could be made more secure
:
marks
|
,
|
ا
|
SÓ
|
à
1
D eenمومه
!
i
١
nr neا م
(E) Explain the difference between encryption and hashing.
1
.
P
.
.
marks
.
ï
واو يه860816 AA IIA 88ر88) ووموعهن وووعيم يوون مورو ع عم نه ممه ونم عم بقع ولذاةARICA NANA CUNA ANA AL 6 8 ههه وإف ههه وإوإمهاواقاة وانم اوه ووامو و ويعون وووع مه معام عم مره م ممه85466 8 قوأطامقق888ه هاو مومه ههه ووو و ووه و مومهو و وسمعهء ممه ممعمو وام ه6 85616 هذه أقاقةÀ vce1010 0010 » 0100
D
uen ووز رفاو و gins awe S916رمزواه # © TANIA AECI AAA TIRA CEA 6:8 واوع ومو عو و اموجه عع ونه عه معدم مه6 ع لاهو وجوه ههه مو ع861866 ق قت »فاق ع رم قت[ هه2 هنهم معام مرمرع امهNAAA AA 6 هلة بق غر16# قي888 سوه ووه« هه: زه« هاعد جع يه هجويو دو اموزو يو بعتو+2886 81 62986
||
4
BN
AAA AAA AENA ها امه ههه واه إوزة 6ها5 ه8 هه6668 III ACANTILADO ITA SAA aceso as
|
a
|
:
y
1
|
'
|
OO0GEO50Ó0Ó0ÓM€A
|
:
|
A databaseis a collection of data thatis related. A flat-file database has a single table and a relational database
has multiple tables with a relationship linking them together. A primary key is a uniquefield in a database and a
foreign key is a primary key in one table that appears in anothertable to create a link. There are several methods
that can be used to access data in a database. This includes serial and sequential access.
In serial access, each record will be looked at until the record requiredis found.If the record requiredis close to
the top of the table, then accesswill be relatively quick, butif it is near the bottom of a large table, access will be
slow.
In sequential access, a similar process to serial occurs in that each record is lookedat; it is just that the records
have been organised into a certain orderto aid the process. Sequential access can makeuse of an index. For
example, if customers are put into alphabetic order, an index of A, B, C etc. can be used. If a customer has a
namebeginning with D, each index can be lookedat until D is found, then all D records can be lookedat until the
customeris found.
١ © State what is meant bya flat-file database.
mark
|
|
013 ل
ميس ع ب سي سي م ع و م م ع م م سس ع ع ع ص سس
+
A
a
rase
—
ا
0
PP.
29
| 02 Explain what a primary key is and whyit is needed.
marks)
١
@D State the role of a foreign key.
D Describe how Mrs Alice Jones would be found using serial access.
marks)
8
Normalisation
A process called normalisation can be used to separate the data, to avoid the issue of data redundancy. Data that
is unnormalised (UNF/ONF) has repeated entries of data and it may also have datathat is not atomic.
The first stage of normalisationis first normal form 1NF. For 1NF, the following rules are applied:
= The table will not have any repeating entries of data, or repeatingfields.
8 All the fields in the database will be atomic.
# Each record in the database will be unique and have a uniqueidentifier.
The second stage of normalisation is second normal form 2NF. For 2NF, the following rules are applied:
= Data must be in INF.
= Any data that is not dependent on the primarykey of a table will be separated into a different table.
Thethird stage of normalisation is third normal form 3NF. For 3NF, the following rules are applied:
= Data must be in 2NF.
m Anyfields that are not directly related to each other are given further separation.
Once a databaseis normalised, relationships can be created betweeneachtable in the database, using the
primary key andlinking it to the foreign key in anothertable.
Rs
Data integrity is a very important issue in a database and measuresthat can be taken to maintain data integrity
are imperative. One way of maintaining data integrity is referential integrity. This is where a processis applied to
stop actions performed on a database creating inconsistent data. The process of normalisation naturally improves
data integrity, because it uses referential integrity.
(E) State what is meant by normalising a database.
à
nn ا اnn me en nn nn nn nn ne nn nn nn nn nn nm nn nn nn nn nn nn nn nn nn nn mm nn nn nm mn nn nn nn nn ne nn nn nn nn nn nn nn nm nn ns ne mn nn nn mn nm nn nn nn nn nn nn EEE EHEH ESR EE EE EEE EER EEEH HEHEHE EE EE ESET HS HEE HEHEHE SHEE EEE HEH EES
سوامQE
جح نسو ناه
EX
ATIANN
: @) Consider the following database.
١
|
٠
|
:
marks
Artist/Band
Contact details
Booking
date
Venue
Fee
Manager/Agent
PopRUs
poprusQus.com
07777777771
01/01/2019
The Arena,Play St,
London, LN1 1LN
2000
Mandy’s Music
|
Guitar
077777177772
playthatguitar@us.com
02/01/2019
The Hall, Sing St,
3500
Jenna Jackson
ا
Jonesy Jones
jonesyjones@us.com
02/01/2019
The Arena,Play St,
3000
Jenna Jackson
.
The Sing
Songers
singsongers@us.com
07777777774
03/01/2019
The Academy, Guitar St,
Birmingham, B1 1BB
2500
Billy Bob
Up The Charts
upthecharts@us.com
07777777775
03/01/2019
The Hall, Sing St,
Manchester, M1 1MM
2500
StarsRUs
ThrashOut
thrashout@us.com
07777777776
04/01/2019
The Arena,Play St,
London, LN1 1LN
2000
Billy Bob
|Jonesy Jones
jonesyjones@us.com
07777777773
05/01/2019
The Hall, Sing St,
Manchester, M1 1MM
2500
Jenna Jackson
_
E
PopRUs
poprus@us.com
07777777771
05/01/2019
The Academy, Guitar St,
Birmingham, B1 1BB
2500
Mandy's Music
_
Up The Charts
upthecharts@us.com
07777777775
06/01/2019
The Academy, Guitar St,
Birmingham, B1 1BB
3000
StarsRUs
1
|
|
|
f
Play That
a
07777777773
Manchester, M1 1MM
London, LN1 1LN
|
ا
ْ
a
2
=
6
6
D
|
a
|
E
|
|
|
Normalise the database to 1NF.
|
b Normalise the database to 2NF.
|
©
2
Normalise the database to 3NF.
Writeyour answers on a separate sheetofpaper.
o, ADA TEJA
1
E
CAPES
DRE
LRU MSC URL RP SS RE aEE سلLe MA
TONLIT
Structured query language (SQL)
To search a database, a language called SQL can be used. There are several SQL commands that you need to be
able to use.
SELECT
Used to say what data will be selected, often the name of a field.
FROM
Used to say where the data will be selected from, often the name ofa table.
WHERE
Used for a condition that needs to be applied.
LIKE
Used to further refine a condition, for example a wildcard.
AND
An operator used with multiple conditions.
OR
An operator used with multiple conditions.
DELETE
Used to remove data.
INSERT
Used to add data.
DROP
Used to remove whole sections of data, for example a table.
JOIN
Used to combine data.
Table 2 SQL commands
These commands can be combined to create an SQL search.
An example of an SQL search would be:
SELECT “CustomerForename”,
“CustomerSurname”
FROM “tblCustomers” WHERE
“MailingList” = “Yes” AND “NewsLetterSent” = “No”
This search is designed to return the namesofall customers whoare signed upto the mailing list but haven’t
been sent a newsletter.
2/
ACID rules
When any additions or amends are made to a database, thisis called a transaction. To protect the integrity of the
data in a database, transactions should conform to certain rules. These rules should uphold the ACID properties:
atomicity, consistency, isolation and durability.
Networks
Many organisations and individuals make use of a network. There are several different types of network, these
include private networks,virtual networks, LANs and WANs. Networks can have manydifferent models: two of
these are client-server and peer-to-peer.
A client-server network has two main types of computer, a client and a server. The serveris the centre of the
network and providesservices and data for the clients on the network.
A peer-to-peer network doesnot have a central system to manage the network. The managementof the networkis
the responsibility of each individual peer.
Each network can also havea different structure, including bus, ring, star and mesh.
Protocols
For communicationto be effective using a network,there are several protocols and standards that need to be
upheld. Protocols are rules that govern how a networkoperates. They makeit possible for manydifferent devices
to communicate using a network. Protocols are normally made upof layers. This is an inbuilt form of abstraction.
Each layerin the protocol hasa different responsibility. One protocol that is commonly used is the TCP/IP protocol.
This is used in communication across the internet. The TCP/IP protocol has fourlayers.
Layer
Responsibility
Application layer
To collect and distribute data, making sure it suitable for transmission.
Transportlayer
To establish and terminate connections between devices. To perform error detection
Internet layer
To establish a route from the sender to the receiver.
Network/Link layer
To makes sure the transmission media is in place.
and establish the speed datais sent.
Table 3 TCP/IP layers
Someprotocols and systems can have as manyas sevenlayers, for example the OSI model.
Data can be exchanged across a network using packet switch or circuit switching. When we send data across a
network, we divide it into packets. In circuit switching, packets are sent across a set route. In packet switching,
packets are sent across any routethatis available.
0 State what is meant by a network.
QE ON
rr rr rr ro
AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA
hr rr rr rr rr rr rs rr rr rs rr rs rr rr rr
AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA RARA ARA
AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA AAA ARA AAA AAA AAA AAA AAA AAA
hr rr rr rr ا اrr rr rr rr rr rr rr rs rr rr a rr rs sr sr
JETAEREE
ee rr rr rr rr rr rr ا ا اa rr
¿
DES
2
a
es
oe
CUCA
O
E
a
2
3
EA
Es
=
$.
STATEPEUTANTPSEORAR ED ER ARA
> gs,
AO
RETA LMSTAS TERE SETS SETS DN زجومPL IE E al
LEEOS RAL.)
TARTIGO IDHA SU GRAS, Ar
TEP BOTAN SIP RMS AS ELAS TE
SKF
ETIOPIA
| @Draw a diagram to representa star topology networkstructure.
AOSCANTE UELOT er ARE CAL
ejep BuibueyoXx3
عا
@ Explain the difference between a client-server and a peer-to-peer network.
: @® Draw diagram to represent howdatais sentin a circuit-switching network.
Mo
Ch
D
IZA
ivy
>
ف
o
3
Se
ke
a
0
a
5
تن
0
a
2
marks)
7
ERE
GPO
ATID AEDPL D LT ANT OT EX Le let,
م.
A
L
a
Pe
Ÿ
29
Ge
:
zt
ge
20) Draw a diagram to represent how datais sent in a packet-switching network.
ب
rs. PLE ESBFSU SE
Network security
One of the issues with networksis that they are often subjected to manydifferent threats. These include
malware, brute-force attacks, denial-of-service attacks and theft of data. There are several ways a network
can beprotected, such as a firewall or a proxy server. Data being transmitted across the network can also be
protected through encryption. This would make the data meaninglessif it was stolen. Each methodof protection
cannot guarantee an attack will not occur, but it can makethe possibility far more difficult.
Hardware
—— ب
A network can contain several different components. These include a network interface card, a router, a switch,
wireless access points, transmission media and possibly a domain nameserver.
جد
)3( State three types of transmission media that can be used in a network.
22 Describe the role of a router in a network.
AO
hr... o... ....rn.....on.arr$ ropas. rrr.9rr$rrrsrsnrrrr rro r9rm9.rsnrrrrrr rosas. ron ororroncrsarnsrncnsrso rro rrsrarsrrrrsssarssasrrssrrrrr rr rr rr rra وفع
nor. ا ا ا اmn ee ee ee eee eee eee ee eee ee ee eee eee eee eee ee ee ee eee eee eee eee eee ee eee eee eee eee eee eee eee eee eee eee eee eee eee eee eee ee eee eee ee eee eee eee eee ee ee ee eee ee ee ee ee ee ee es
EEE SEENTS
RE Re eee eee EOE ORE EE HEE HEHEHE EE HE ETHER EHE SEETHER TESTE EEE HEE E EEE DERE EEE RHEE HEHE RHEE HEED EEE HEHEHE ESTEE HEHE EERE EEE ESE EEE OEE E EER EEE EEE EEE EEE SEES TEESE EEE OR EE EEE HEED DEER EEE E REESE EE EERE EEE EH ESET REESE HEHE EERE EO EEE RED
PRR meee meme ee ee Ee RHEE E OEE RH HEE EE REE EEE EEE ERE EH EEE HEH OEE EEE RHEE TEETER HEE REE H EERE REED EES EE EE EEE EE DHE ES EEE EER EE EEE E TORTS EEE TEE SEER EEE EEE OEE SEES EEE EEE RHEE EEE REET EEE EEE EER TEES HES RHEE EEE EEE SETHE EEE EEE EEE SHEE EEE EEO EEE EEE OER EEE EEE
ee ee ee ee Eee mee ee Hee EEE EERO EO EEE OER EE EEE EERE HR HERERO EER ORE E EERE OPER EEE Ee EERE ا ا ا ا ا اrr EES TERRE EET EEE EERE EE EEE EEE EE EER EEE EEE RHEE EEE REE HEHE EO EE Eee Ee Eee Ee EEE ES
Le faut
927
LD
E > E
yaa Oe| Se
a
CR eee Eee Eee tO HE EE EEE EERE HEHE REET EE SEER HER EH EEO EEE HEHE HEE HERE EEE EEE SHEE HEE EEE EES E EE EEE HEED H EEE EOE HEHE EEE E HES EEE HER ORR EE EEE E OEE TEESE EEE TEER ER EEE EER EER EE ERT E EERE ESR EE REET TREE THERE EEE H ERD E HERERO ET EEE HERE ERE Ee EEE
ie
١
_ @) Describe the role of a domain name serverin the internet.
ٍْْ
AS
:
|
:ْ
ْ
;
|
|١
|ا
ْ
3
أ
ا
:
Sl
|
1
1
:
5
+
|
y
+
ُ
:
ul
x
2
3
Y
Q|
=
(O
Q.
0
a)
|
|
|
|
|
The internet
Web authoring tools
HTMLis the most basic language used to author web pages. There are several HTML tags you need to be able to
use. CSSis a formatting method that is used to create a consistent style for web pages. There are a number of CSS
properties that you need to be able to use.
JavaScript is a programming language that is used to add interactivity to web pages. You need to be able to create
inputs and outputs using JavaScript commands.
; 24 Complete the table to describe the use of each of the HTML tagslisted.
marks)
\
|
Use
|
Tag
ْ
<html>
:
<link>
|
|
<title>
|
|
<body>
|
:
<h1><h2><h3>
|
<img>
|
<a>
|
|
<div>
|
<form>
|
<input>
<p>
<li>
ا
<ol>
<ul>
<script>
ْ 125) State what a ‘#' is used for in CSS.
mark]
|
31
|
- (1) State what a “’ is used forin CSS.
0
| 0 Write CSS code for the following template.
marks)
that has a width of 5 pixels, and all text must be Arial, point size 16 and black.
32AE PL,
اتشاععتPeee ace LE EL
= All headings must beArial, point size 22 and dark blue.
= Information boxes must have a background colourof pale blue and a black border
STE
x
١
a
à
AEREA AAA AAA eee ee eee eee eee ee eee ee ee ee ee ee ee ee ee ل
O وهر
DAAAENANAAANTESEEES AINEDTTT CEAE EAA cn
1
مه همه مه ا مه ا هام مه عم مه مه موه ع مم عه وه عه ةمع اه عه اه ع مه عه مه اه هاه ممه اه ام اه مه هام مه عه عه ا مه مط م اه م اه عه م م عه ااه عه اه ا ا اه ا ان
دوه سه ا ا
ا
ع
AA AAA
ل
Da هاaa e aa AAA مامه اماه روجA AAA AA وفع يواه فاهAA IATA NANA SE AIN AAA وهاو هرو ويهANA ANA ELA AAN ايه همه مهام هاوه هم و واه هزه رهAAA A A eos as oioie 6'aieié 8 à
E
Search engines
Search engines search the world wide web for web pages that match the keywords entered into the search bar.
To do this they use a complex search algorithm. Search engines build up large indexes of web pages to make the
searching process moreefficient. Organisations add meta data to the headerof their website. This meta data
contains keywords that the search engine can easily find.
It is important that a search engine can quickly provide the user with a list of useful web pages that match
their search criteria. One of the most successful tools in providing this service is the Pagerank algorithm. This
algorithm looks at more than the content of the web page. It also assesses how many other web pages are linked
to a web page and givesit a higher ranking based onthis.
OES AA ا ”اكNSSAT ETE
Sb pees pu eu Dan
ره
A rara مممم ممه ممم م ممم مم ممه ممه م
A AA عر عوجر امجح
ج2 1 BSA
|
TEES
A
|
Client- and server-side processing
Eu
The processing of data that is exchanged overthe internet can be carried out in two ways, at either the client side
or the server side. When data is processed at the client side, it reduces the load on the server. However, when data
is processed at the server side, data can be kept more secure.
_ @) State whatis meantby a search engine index.
mark
>
An
|
١
al
E
|
svttosmeornmn
ا
| ):€ Describe how the Pagerankalgorithm works.
marks)
i
Ar ee REET EEE EEE OE EEE TREE ED EE EEE SESE REET EEE SEES EEE EEEEEO SESE ESSE EEE E DEERE HH EEE EEE E EOE E DEES EEE E SEES SEES EEE E EES EEE SEES EEE O SETHE EEE E EE EEE EEE EE SEES SHEETS SEES EEE EEE HEHE TEREST DERE E EE EE SHEE EEE S EERE SESE H OEE EE SERS SEE eEeees
PP
+
|
;
:
Ra a + ممع سم ممه ألم م طاله موو وا ماج قئه عطه
|
A
:
|
|
:
1
١
١
©
©
1
1
a
3
o
|
١
|
:
x
2
3
©
5
©.
ص
©
O SN
0577171 1 0 19000000000 or mas
:
:و
ل
ا
o
—
Exam-style questions
١
لا
(39
€{) Describe how asymmetric encryptionis used to send data securely.
TERETE
EEH EEE ERE
nn nn nn nn nn nn nn nn en mn
33
cD
ED Consider the following database.
The table is called Customer.
Cust no
Title
Forename
Surname
House no
Street
1001
Mr
Benny
Jones
1
New Street
1002
Mrs
Emily
Rose
1
1003
Miss
Victoria
Bloom
2
1004
Mr
Luke
1005
Mrs
1006
Mr
a
Town
Postcode
Order no
New
NST INT
001
Old Street
Old Town
OS1 10S
002
New Street
New
Town
NST INT
003
Miles
Old Street
Old Town
|OS1 10S
|004
Alice
Jones
New Street
New
NST INT
005
John
Smith
Old Town
OS1 10S
006
3
Old Street
Town
Town
Write an SQL statement that would return the forenameof all customers wholive in Old
Town.
TOMO meee mH OEM EERO EHD BER EERE HEH HE EERE MEER EEE TERETE HEHEHE HEHE EEE ESEE EES EEE ESE STEER EEE EEE HEED CHEER HEE HEHE EERO REHM EERE EO OEE EE OEE ERE E EE EEE DREHER EEE RHEE EH EEE EER OEE REE EEE R EEE EEE OES EEE RHEE EH EE EERE EEE HEE EE HOOD EOE Hee eee eee en eseeneeee
rr rr rr rr rr i rr sr rr ا ا ا اا اا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا اsr ل ا ا ا
ا ا ال ل لك ا اك ا ل اsr rr rr rs rr sr
Pr ا ا ا ا ا ا ا ا ل ل لrr rr rs sr rr rr rr rr ا ا ا ا ا ا ا ا اrr ل ل ا ا ا ا ل ا ا لrr
b
Write an SQL statement that would return the full names and titles of all customers wholive
in New Town.
Ar rr rr sr sr rr rr rr sr ا لrr rr ل لrs ا ا لrr
Proa rr rr rss rr rr rr rr rr rs rr sr ل اar cr ro
لrr rr rr rr rr rr rr sr rr rr rr rr rs rar rr rr rro
CORRE EE rr rr rr sr sr rr rr اa rr rs rar ا ا ا
ل لاrr rr sr rr rs rr rr rr rr rr rs rs sr rr rr rr
SRE EEممممم ةنم ء من ةر ور ريج وترم رن مر رم برج مر وك و ومو ووم ه مرل م ء رو مومه نمم مره وكيا ل لمم وو مرو هموعنو فلم ممم م في م مورو مر مو مر رو م ررم مر او ووم م رم عبر اماع اام اماما ااا اا ااا ااا اا ااا عاو اا
©
Write an SQL statement that would return the titles and surnames of all customers who live
in Old Town and have an order number greater than 003.
ee ee ee ee ee ee ee eee eee eee ee ee eee ee ee ee eee eee eee eee eee eee eee ee ee AAA AAA AAA AAN
CCR rr rr rs a rs rr rr rr rr rr ss rr rr rr ع ع ع ع ع ع ا ع ا ا ا ا
CE AAA AAA AAA AAA AAA AAA AAA AAA AE AER
rr rs rr rs a rr sr rr ss rr rr
nr rr rr rr rr rr rs rr rr rr rss rs rr rs rr rr مم ف مممsens esse
rr sr rr rr rr ss rr rr rs rr rr ss rr rr rr ssenssssse nm esse eus
Ar rr rr sr rr rs rs ro
(32) Describe how a firewall can be used to improve the security of a network.
ON
[T]
el
Q)
هه
4
am)
(©
o
O
=
O
€) Give two benefits and one drawback of using a network.
EZ) Explain the role of the transport layer in the TCP/IP protocol.
€) State two reasons why a company would chooseto haveclient-side processing.
35
Data types, data structures and
Boolean algebra
Data types
Data can be of many different types. These include string, character, integer, real and Boolean. We need to assign a
suitable data type to any data westore to make sure that we can useit in the most efficient way.
Representing positive integers
All data needs to be converted to binary in order to be processed by a computer system. It is important to know
how to represent a positive integer as binary.
It is useful to be able to convert positive integers tohexadecimal. Hexadecimalis often used instead of binary as
it is a shorter method of representation and can be easier to read. To convert a positive integer to hexadecimal, a
simple method is to divide the numberby 16, this will be the number of the unit 16 needed, and then the remainder
is the number of 1s needed.
In hexadecimal notation,numbers 1 to 9 are the same, but 10 to 15 are represented by the characters A to F.
Therefore, 178 in hexadecimal notation is B2. If 16 of the unit 16 need to be used, then the next unit is required,
which is 256.
© Convert the denary value 101 to binary.
QE à
Muse ns nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn meme ل ا ا ا ا ا ل اmmnnmssnmsnnse
Pron ااا ااا ااا ااا ااا ااا ااا
rr ااا ااا ااا ااا ااا ااا ااا ااالrr rr rr للفلل مرمرع عا
0 nn nn nn ل ل ا ا ا ا ا ا ا ا ا ا ا اا ا ا ا ا ا ا ا ا ا ا ا ااا ا ا ا ااا اا ااا اااnn nn ns nn nn nn nn nn nn nn nn nn nn nn nn nn nn mn nn nn nn nn nm nn nn mn nn nn nn mn nn nn nn ann nn nn nn mn mms nn nn DEERE EEE EEE ES
nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn sm nn nn nn nn nn ne non ns nn son nn nn nn nn nn nn nn nm mn nn nn nn nn nn nn nn ns nn mn nn nn nm nn nm nn nn mn mn nn nn ns nn nn mn nn nn nn nn nn nn nn nn nm nn nn nn nn nn nn mn n nm nn msn msn nm sen nnnnnnmnsess
Representing negative integers in binary
There are two waysto represent negative integers in binary, these are sign and magnitude and two’s complement.
For sign and magnitude,this is simply using a bit to signify if the numberis positive or negative. The bit is placed
at the start of the binary number. The namegivento this bit is the mostsignificant bit (MSB). If the numberis
negative, this bit will be 1. If it is positive, this bit will be 0.
In two’s complement the MSBis changed to be a negative number. For example, 128 becomes -128. Therefore, we
start with a value of -128 and addto this value to represent our negative number. Two's complement is the method
used by most computers to represent negative numbers. Another way we can find the two’s complementof a
number is by taking its positive binary values,flipping them, then adding1.
it
| ©) Convert the value 25 to 8-bit binary sign and magnitude.
Gap
|
Y
O
+
[av
فده
(E) Convert the value -13 to 8-bit binary sign and magnitude.
|
mark
١ © Convert the value -101 to two's complement 8-bit binary.
GD
)@ Convert the value 88 to two’s complement8-bit binary.
mark]
|
|
<
O
4)
is
el
av
+
a)
Y
r
TS
Se
CoosOSOnene |
2
مدع
Es
TS
4)
و
Q)
Adding in binary
ل
o
To add two binary numbersthere are four rules to remember:
uy
0+0=0
O
0+1 - [
(D
Q)
oa
اق
1+1+=10 (the binary value for 2)
va
(©
4»)
O
1+ 1+ 1 = 11 (the binary valuefor 3)
Therefore, if we add the values:
=
d
00111000
000 1 1 1 1 0+
111
010101 10
we get the binary value 01010110.
We must carry numbers just like we do in normal addition of numbers. The small numbers underneath are the
numbersthat have been carried. We can add two’s complement binary numbers using the same method. If we end
up with an extra carry at the end,this is called an overflow.
@ Add together the binary values 00011100 and 10000001.
ama
@ Add togetherthe binary values 10010101 and 11001001.
marks
\
nn nn nn nn mn nn nn nn nn nn nn nn nn nn nn mn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nm mn nn mn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn ne nn nn nn nn mn nn nn nn nn nn nn nn nn nn nn nn nm nn nn nn n nn nan n nes msnmnmsussss
Subtracting in binary
To subtract binary numbers, we use the normal rules of subtraction, but with an additional extra rule. When we
borrow from the next column, we place a value of 2 as the carry. This is because we have borrowed two lots of that
unit. For example, if we borrow from the ‘8’ unit column, weplace 2 in the ‘4’ unit column as we have borrowed
two lots of 4, hence 8. If we cannot borrow from the next column, we have to go to the columnafter and borrow
from thatfirst.
3/
For example:
221
SARA 2
0011420 0 00011110
00011010
© Subtract the two binary values 11001100 and 01010101.
ETS ١
eee ee eee eee EERE HEHE RHEE HEHE TERE SHEE EERE HEH HEHEHE EEE RHEE EERE EE ETHER HEHEHE HEHEHE HEHEHE E EEE EEE EEE EEE E EEE HERE EEE HERO EERE EEE REE EEE EEE ETE E HEHEHE HEHEHE HEHEHE EEE HEHEHE EHH EE HEHEHE EEE HEHE EEE EEE ES EE EE EEE EEE EH HE HEED HEHE EEE EEE EEE
eee ee eee eee eee mee HEH ERE HEHEHE EEE HEHEHE EEE ERE E THER EE HEE EE EERE ERE E OHHH EES EEE EERE EE EEE EEE HEE ETHER HEHEHE EERE HEE HEHEHE E EEE EEE HE EEE EERO R EEE EEE HE EERE E EEE EEE EEE EEE HEHEHE EERE RHEE SHEE HERR EE DEERE EE HEHE DEH HEE HEH EE HERE EEE EES
Subtracting using two’s complement numbers
To subtract using two's complement there are several stages that we need to go through. For example,let's take
the calculation 48 - 22:
We convertthefirst value to binary: 48 as binary is 00110000.
Weconvert the second valueto the two’s complement binary: 22 as binary is 00010110. The two’s complementof
this is 11101010.
Wethen add the two values:
00110000
1110101 0+
111
00011010
We discard the last carry, so we are left with the value 00011010, which is the correct denary value of26.
0 Subtract the two binary values 11001100 and 01010101 using two's complement.
ON
hr rr rr rss sr
hr rr rr rr rr rr sr sr rr
Representing real numbers in binary
So far, we have only been lookingat representing integer values in binary. We also need to know how to represent
real values in binary. Real numbers in binary have two parts to them, the mantissa and the exponent. The
mantissa is a value that will have a floating point and the exponentis the numberof places the floating point has
‘floated’ to the left. The floating point is placed just after the MSB.
For example: 111101111 110 has a mantissa of 1.11101111 and an exponentof110.
This meansthat the floating point has been movedsix placesto theleft.
If we movethefloating point back six places to the right, we have 1111011.11.
If we convert the valuesto theleft of the floating point, we get 123.
The values after the floating point have fractional values starting with Y. After the floating point there are the
U
©
©
ne
je)
D
on
values Y. and Ys. These values are added together to make % or .75.
وم
This meansthat the real number represented by the mantissa and exponentis 123.75.
كد
We can also normalise real values to make sure that we are able to store the largest value possible with the bit
allocation that we have.
©.
| © Show how the value 101.25is represented as a floating point number with a 6-bit
[
exponent and a 10-bit mantissa.
marks
١
|
9
7
7
a
2
=
D
7
©
3
كم
مدع
ا
e
لم
5 Convert the following floating point numberto its denary value.
ETS
= 0.100110111 000111
= It has a 10-bit mantissa and a 6-bit exponent.
o
UJ
O
ORR eRe nn nn EHH OHHH E HEHE EEE EEE TEESE EEE EEE EOE E HEHE EH EE EEE EE ERE HE OEE SESE EE EE EEEEEEEEEE HEHE EE OEE HER EE HEROES EEE REE EEE SEH HED EEHE SHEED EE EE EE EES ER OHHH HE HEHE EES SESE ES EE EEE EE HEE EE SESE EEE HEE EEE EEEEEESE REESE EOE EOE EHE HEHE eee eeeeeeeEEEeeS
RRR eRe eee Eee EER HEHE OHHH HEHEHE HEHEHE HESS ESET EEE EEH EEE HEE HEHE EHH EEE HEHE OHEH ESE SEH EH EH ERE EEE EEE E EOE H EE EE HE SEE EES SOHO EHTS EEE EEEE HHO ER EERE HEE HEE EE EEE HE EHE EE HOHE EEEHEE OHO E DEE EEE SESE EES HEHEHE EE ES EEE EEO EEO EED HEED O OEE EEE EH eeeES
Bitwise manipulation of binary values
O
9
a)
35
لد
©
a
O:
5
E
We also need to know how to perform bitwise manipulation and use masks on binary values.
In bitwise manipulation, binary values are shifted to the left or to the right. Any empty spaces after the shift are
filled with zeros.
Each bit shift to the left is like multiplying the numberby two. Each bit shift to the right is like dividing the number
by 2.
We can also use masks with our binary values to perform logical operations.
If we take the binary value 10101010 and the mask 11001100, each operation would give us:
AND
1
0
1
0
1
0
1
1
0
0
1
1
1
0
0
0
1
0
0
1
0
0
1
1
0
1
1
0
0
0
1
0
0
0
0
1
1
0
0
0
0
OR
1
0
1
1
0
0
XOR
1
1
0
1
1
0
0
1
0
We can use these logical operations to check for different patterns in binary values.
39
Ea o
ووسTN
@ Perform a bitwise left shift of three places on the binary value 01100001.
ON
0 Perform a bitwise right shift of four places on the binary value 11111101.
nn nn nn nn nn nn nn nn men nn mn ne nn nn en mn sn nn nn nn nn nan en nn nn nn nn nement nn nn men nn nn nn en mn mn nn nn nn nn nn nn nm nn nn nn EE REE EEE EERE EE EE REE HEHEHE HEE EROS ERE EE EEE EERE EERE EES EE EEE HEHE SEER EEE EOD
® Perform an AND logical operation on the binary value 11011001 with the
mask 00010111.
Representing text
As all data needsto be converted to binary to be processed by the computer, text also needs to be converted. Text
is converted to binary using a character set. Two commoncharacter sets are ASCII and UNICODE. In a character
set, each letter has an equivalent binary value, for example the binaryvaluefor the capital letter A in the ASCII
characterset is 01000001.
Data structures
Arrays
A one-dimensional array allows us to store onetype of data, e.g. a set of test scores. For example:
12
#| 27
| 56
| 64
| 27
| 43
| 12
15
| ه5
96|
Arrays normally start at an index of 0, so index[3] stored number64.
A two-dimensional array allowsusto store two different types of data, e.g. student’s name andthreetest scores.
For example:
Benny
11
13
47
Billy
13
17
33
Boris
45
33
55
Jane
9
32
44
Joanne
54
55
39
Jenna
9
48
31
A two-dimensional array is indexed on both the x and y co-ordinates. Index[0,4] stores Joanne and [2,2] stores 33.
A three-dimensional array allows us to store three different type of data, e.g. student's name, three test scores and
two resit scores for each test. Imagine the table above as a three-dimensional shape with two entries behind each
test score for the resit values.
20) Define an array in pseudocode that would store 10 students' names andsix test scores
for each student.
ON
SRR eee EEE EERE EHH EE HEHEHE ER HED BER E EERE EE SEE HEHE EEE HEHE HEHE HEE HHH HERE EE EH EERE EEE HEHEHE HEE EEE HEE EEE EES HEHEHE HEHEHE HEHE HEE HEE HEHE HEHE EERE HEHE EHEEEEEEEH EEE SE HEEHHESEEHEEE HEHE DESH HHEEH HEHEHE EEE EESEEEEEEOEHEEESHEE REE EEE ESET EEE E HEE ES
ee o
اا
POORER eee eer eee REE EEE EERE EEE EE HEE EE EEHE HEHEHE HEHEHE EH EE EEEE EE EHH HEH HEHEHE ERE R EEE EERE E EERE EEE EERE TEE HEHEHE ERE EREH ERE EEE H EEE RHEE EEE EEE EEE THESE EEE EE EEE TEETER EE HEE HEE HEET EEE HEE EEE EEE EEE EEE ERE EHH EEH HEE E EOE HE EEE HEE EE EEE EEE EEE EE
(3) Define an array in pseudocode that would store 30 students’ names,five test scores
and three resit scores for each test.
mark]
nn nn nn nn nn nn en nm nn nn nn men nn nn nn nn nn mn nn nn nn mes nn ne nn mn nn nn nn nn nn nn nn nn nn nm nn nn nn nm nn nn en nn mn nn mn nn mn nn nn nn nn nn nn ennemie nn mn nn ne nn r9m92.9$ 992.2 .orc9$”ssssarsn$.rossarnsonoo.o..
Records, lists and tuples
Y
Dd
Tt
a)
Lists are like a one-dimensionalarray, but with somedifferences. Lists are a dynamicstructure, they are mutable
and slower to access.
+
<
jo
Y
Records and tuples are practically the same thing. The main differenceis that in tuples just the value is stored; in
4
records, a variable name for each valueis stored also. They are a collection of data that is grouped together. Once
they are created they are immutable. You could imagine them asbeinglike a row in a database.
| 22 ROR BSED ARETE RS IE AREABI SEES ANUNREDARAGON a AEW USIE
3
ERPRDS
x
æ
:
يح
١ 09 Give two differences betweena list and anarray.
oe}
4
4
,
O
م
O)
2
جد
AS
|
م
EC
E
©)
a
E
TS
i 23) State two characteristics of a tuple.
4,
ETS
is
|
و
8
2
a
OU
O
3
4)
O
Ey
Stacks and queues
pe
Data can be stored in several different structures. Two structures that can be used are stacks and queues.
(©
(D
O
A stack can be described as a Last In First Out (LIFO) structure. Data is added to the top of the stack and removed
from the top of the stack.
re
a)
A queue can be describedasa First In First Out (FIFO) structure. Data is added to the end of the queue but removed
from the front of the queue. Queues can becircular structures.
| 24 The following data is stored in a stack: 25, 36, 75, 33, 29, 40.
:
|
|
اي وكOPOULT EI
|
E
|
The value 25 is the bottom of the stack. Show what the stack would look like after
the following operations have been carried out.
١
mark,
POP
PUSH27
PUSH 13
POP
nn nn nn nn nn nn nn nn nn nm nn nn nn nn nn nn nn nn nn nn nn ne ns nn nn non mn nn nn sn nn nn nn mens nn nn ns nn nn nn nn nn nn nn nn ne nn n nn nn ns nn mme nn nn nn sn nn nn nn nes nn n nes nn nn nn nn sun msn sms sense ال ع ع ع ا ا ا ا
)1( Thefollowing data is stored in a circular queue: 25, 36, 75, 33,29, 40.
The value 33 is the start of the queue and the value 75is the end of the queue. Show
what the queue would looklike after the following operations have been carried out.
©0559
POP
|
|
PUSH 23
|
POP
|
PUSH 99
|
:
:
a
Make sure you show where the queue would start and end.
|
AAA
|
|
ا
41
Linked lists, graphs, binary trees and hash tables
A linkedlist is an ordered set of data, each of which contains a pointer to the next item of data (and sometimes
the preceding item of data). Linked lists have two advantagesoveranarray in that they are dynamic anditis
easier to add and removedata. Data is added to a linked list using the free space pointer. The pointer from the
preceding data item will need to be updated to point to the newly added item. To remove an item from a linked
list, the pointer from the preceding item to the one being removed, is changedto point to the new nextitem of
data. A traverse of a linkedlist will start at the beginning and look at each item in turn until the item required is
found.
A graphis a collection of data nodes and the connections between them. There are two approachesto traversing
a graph andthese are depth-first and breadth-first.
A binary tree is made up of parent and child nodes. A parent node can have two child nodes,a left and a right
child.
Hashtables are used to allow direct access to records than are stored in an array. An address of a record in the
array is calculated from the key value of a record. This processis called hashing.
CRE LOUE DSTA UMTS
VALERIO DIARIAS LE PSN SD DUO
LPS
PS
al
ْ (26) State what is meant by a pointerin a linked list.
Re eee eee ee eee meee OEE EE EEO ROR EEE EE EH MERE E EE EO EERE RED EET ESE EER REE HEE HEROES HEE ا و ا ا ا اHEE E REE EE EEE EER EEE SESH SEES EEE E HEHE EEE EEE EEE REE E HEHEHE EEE RHE HERES OEE E OREM EEE EEE EEE EEE ERE EES
CE ROE EEE DERE EERE E EEE EEE EOE MER EEE ETHER HEHEHE EEE OEE H ESHER EEE EERO EE EERE HESS EEE EER HEHE EEE EE EERE REE RHEE EHR E EE EEE EEE EEE ETHER EER EEE REET SEES EER EEE EEE EERE ER EEE EEE EEE E EEE RE REESE EEE EE EEE EEE EERE EEE Eee EEE eEeeS
| y The following data is stored as a linkedlist:
ظ
Option A, Option B, Option C, Option D
Option B will no longer be available, so it needs to be removed from thelist.
Explain how option B is removed from the linked list.
marks)
SI
AA A
Ae VATAC RER LIRE نطقINO DIA EDAD
o PES
eee eee meee eee ee mn nn nn nn ne nes sn اrr ل ا ا ا ا اnn mn nm nm nn nn nn rr a rr sr ss rr rr
A ا ا ا ا ا ا ا ا ا ا ا اrr ا اrr rr rr rr rr sr rr rr rr
hr rr rr rr rr rr rss rr rr H EES EER EO OHHH EOD
128) Explain the difference between traversing a graph using depth-first and breadth-first
traversal.
marks,
RE ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا ا اos. srssooo.oo..
CR EE EE
hr rr ا ا اrr rr rs اrr rss rr
5
Dee e ee ee eee me REE REE HERE EEE EEE EEE E HO EE HERRERO EE HEE DERE EE ES SEE SEE HEHEHE SETHE EEE E REE REESE HEHEHE EEE HES EEE HEE E DERE HEHE EERE ER EE DEERE EE EE EERE SEER HEHE EERE EE EEE RHEE EEE HEHEHE EEE HEHEHE HEE SETHE EEE SEE EH ERE EEE EE EEE OHHH EEE EEE E nooo.
Boolean algebra
Karnaugh maps
Boolean algebra is a complex topic. You need to be able to simplify Boolean expressions using a Karnaugh map. In
order to simplify a Boolean expression using a Karnaugh map the expression needs to be in sum-of-products form.
There are several rules that need to be applied when creating a Karnaugh map. Groups:
"اcan only be created in multiples of 2
Ñ cannot contain cells with 0/blank
m cannotbe diagonal
Ñ should be as large as possible
Ñ can overlap
# can ‘wrap around’ the map
There are several stages that you can follow to create a Karnaugh map:
y
a)
=
Q
= Set out the variables for the map.
m
Map each term in the Boolean expression with a 1 (or a dot).
+
<
# Groupthe Is (or dots).
m Identify the constants.
jo
(D
0
5
١ © Simplify the following Boolean expression using a Karnaugh map.
s“AABACVAA=BACVAABACAs
i
93
AS
AABAaC
Dd
cr
[ab
Y)
+
ER,
ES
2
pa
Se
FA
4)
0
d
»
Q
us,
O
51
D
Q
Es
a
(O
(D
O
a
av
Simplification rules
Boolean expressions can also be simplified using the rules of simplification. Thefirst rules that you need to
understand are often referred to as the rules of double negation, or identity.
AAA=A
AVA=A
- (- À) = À
AAA=0
(False)
AvV-=A=1
(True)
Law
AND
OR
Commutative
|AAB=BaA
AVB=BvA
Associate
(AAB)AC=Aa(BAC)
(Av B)vC=Av(BvC)
Distributive
AA(BVC)=AABVAAC
Av(BAC)=AVBAAVC
Table 4 Further rules of simplification
You need to be able to apply these rules to simplify a Boolean expression.
Thereis a final set of rules that you needto be able to apply. These are called De Morgan’s rules. The rules
of De Morgan’s are:
=(AVB)=-AA-B
=(AAB)=-AV-B
43
|
ON
AABVBACA(BVO)
RRR nn nn mn nn nn nn nn nn men mn mn EE nn nn nn ennemis nn nee mn nn ne nn em nn nm nn nn nn een mme men mn nn nn nn mn mn nm nm me nn nn mn nn nm emma nn en OEE HEE EE EEE EEE EEE HEE HEHEHE HEHE EEE EEE EEE SEES
har rr rr rr rr rr rr
Logic gates
Logic gates are the foundation of logic processes in a computer. You need to understand the logic of several logic
gates, including how to create truth tables for them. Thelogic gates that you need to understand are AND, OR,
NOT, NAND, NOR and XOR. You need to be able to combine these logic gates to create a logic diagram.
Adder circuits
You also need to understand the logic of half and full adders and flip flops.
A fundamental operation in computersis the addition of binary values. A simple circuit that can be used for
binary addition is a half adder.
The half addercircuit takes in two inputs and outputs a sum bit and a carrybit.
oO
0
|
Carry
0
|
Sum_
0
بت
=
OO
|—=
©O
|W
The logic of a half adder can be shownin a truth table as:
=i¡i=|¡O|O|>»>
1
A full adder circuit has three inputs, including the previouscarry bit.
The logic of a full adder can be shownin a truth table as:
A
|B
|Carryin
Sum
|Carry out
0
10
|0
0
0
0
10
|1
1
0
0
|1
[0
1
0
0
11
|1
0
1
1
[0
0
1
0
1
10
1
0
1
1
11
10
0
1
111
11
1
1
Flip-flop circuits
O|=|-=|¡|0||0
"|||
هه
0
اه
بر
د
>
2
The logic of flip-flop circuit can be shownin a truth
table as:
ده
A flip-flop circuit is one of the most fundamentallogic
circuits in digital technology. A simple flip-flop circuit
would be:
=i=|o0|lo|>»
DAحمس و
ADE
6 Using the laws of simplification, simplify the following Boolean expression.
Exam-style questions
Es)
EJ) Addthebinary floating point values 0100110100 000111 and 0001110110 000110.
Y
O)
Dd
pe
+
<
jo
(D
D
o
O)
=
ab
ON
جم
2
Cc
©)
سم
ae
ma
(D
00
a
32 Perform an XORlogical operation on the binary value 01110001 with the
mask 00010111.
ge
o
UJ
0
O
00
O)
pa
€) Explain how the operationofa stackis different to the operation of a queue.
=
(O
O
O
en
O)
34 Show how the following data would be represented as a binary search tree.
marks)
ELM, APPLE, OAK, BEECH, BIRCH,FIR, MAPLE, ASH, PINE, BAY
Writeyour answer on a separate sheet ofpaper.
69 Simplify the following Boolean expression using a Karnaugh map.
BaCA=AvVBA=CrgAvAr-BrCvaBACAHAvVAA-BAC
Writeyour answer on a separate sheet ofpaper.
€) Using the lawsofsimplification, simplify the following Boolean expression.
B À - B À (A 4 B) v (AAC)
nn
nn nn
nn nn nn nn nn
nn nn nn nm nn nn nn nn nn nn nn nn nn nn nn nn nm nn mn nn mms nn
nn nn nn nn
nn nn nn mn nn nn nn ا
nn nn nn nn nn nn mn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nan nn nn mms
nn
nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn nn mn nn nn nn EEE REED
mn nn nn
nn nn nn
nn nn nn nn nn nn nn EEE HEHEHE EEE EEEEE
nn nn nn nn nn nn nn nn nn nn nn nn nn
nn
nn nn nn nn nn nn nn ع وو رع ااH HEHEHE EE EE ED
nn nn
H E HEHE EEE
45
Computer law and ethical, moral
and social issues
Computer law
There are four main legislative Acts that you need to understand:
= Data Protection Act (1998)
#8 Copyright Design andPatents Act (1988)
=
Ñ
Computer Misuse Act (1990)
Regulation of Investigatory Powers Act (2000)
Each Act regulates a different element of the use of data or technology. Computercrimeis an increasing issue and
governments andlegislation are struggling to keep up with advancements in computercrime. A relatively new
law that also regulates the use of data is the General Data Protection Regulation (GDPR). This is an EU law that
regulates the processing of personal data within the EU. It was designed to make the regulations muchclearerfor
both people and businesses.
THINS E REIR
TAR PEEL TORNA
uN,
CAE بمSEIN تك
AA A LOT
AEE
EE AT ناجو
marks)
| 1 Give two principles of the Data Protection Act (1998).
eee eee eee Ree eRe EERE O HERE HEHE HS EE HEE EEE H OER EEO TEEN RHEE HERE EEE EEE E REE EH EEE EER EEE ETE EH EER HEE ERE EE EEE EEE ERE E EEE EEE HEE EEE OHHH E EEE EEE REE EEE EEE HEED EEE HEHEHE ESET E HEHEHE EEE EEE E THEE HEHE EEE SEES EHEE EEE OHHH EOE HERB HH EEE E HEE EEE OEE
eee eee eee EEE EERE EEE EE OEE OER EERE REET THERE TEETER EER EEE EE EEE E EERE EEE EE EEE REED RHEE EE EEE EE HERE EEE EEE EEE HEHEHE ORES REET EEE EEE EEE REET EERE EEE EE SEE EE SEES ER EEE EEE EEE EEE E EEE EERE EEE EEE E HEED EE EHH EEE HEHE EEE EEE REESE EERE EEE EEE EE
Reem ee mee eee ee ee Re ee eee ROE E EERE EET ERE E HEHEHE EEE RES EE ROE EE DESH EEE EE ET EEE EERE EEE RHEE EEE SETH REESE HEHE SEH EEE REESE EEE E SETHE HESS EEE EERSTE EE EEE E EEE E RESET EERE REE EEE E EEE EEE EEE EE HERES HEHE MEH ES EE OES EE EEE EEE HEBER EERE EEE EEE EEE EE
STETE eel E
BES
eA IE LE TN
ER
REPEATERS
5
1G
AER
3
RSTDALE A A PASTTEEAGECRE RECTAT SETI ET ELS,
Ethical, moral and social issues
The developmentof technology and how weuseit has brought about several moral andethical issues. The
introduction of computers into society has created issues in various areasof society. The introduction of computers
in the workplace has brought about a fear of job loss and also unease about computers performing certain tasks.
The use of computers for automated decision making can also create unease dueto the reliance only on logic.
One of the more recent developmentsat the forefront of moral andethical issues is the developmentofartificial
intelligence. There is increasing concern expressed that allowing computers to develop something close to a
conscience can be a large risk to manage.
Anotherpressing concernis the effect of computers on the environment. Computers can be made from sometoxic
materials that need to be handled with great care. If these materials are not disposed of correctly, they can seep
into our soil and affect our food systems.
There has beena lot of debate aboutthe accessibility of material using the internet. Some people believe that there
should be much more censorship in place, while others thinkthat is a violation of humanrights. Some countries
havefar greater levels of censorship than others. Computers are increasingly used to monitor our behaviour.
Again, some peoplethinkthis is a necessity to keep society safe, but others believe it creates a nanny state and isa
violation of humanrights.
Computersare used to mine vast amountsof data that is analysed by organisations. The analysing of our
information in this wayis also seen as controversial. People worry about the amountof data that organisations
hold about us and the dangerand security issues that surroundthis.
Anincreasing problem with technologyis the issue of piracy. Some people believe the entertainmentindustry
charges too muchfor the products they create. This has led to some people pirating copies of the product.
EAT ARIAS
LNT TER
AAS LVS SPD LPN EY
PEATE PT
APART DITA DERE
©
EI ASTON TOCINA AN
- (E) State two benefits and one drawback to the workers of introducing computers into
the workplace.
LED
|
O
5
=
E
D
+
=
Y
ّْ O Explain what is meantbyartificial intelligence and why some peoplebelieveit is a risk. AS
=
3
5
[es
D
eus
>.
9
لك
=
O
RR
ou
(6) Explain two environmental concernsarising from using computers.
marks)
a
2
a
7
0
©.
$e:
9
7
E
4
0
Exam-style questions
(>)
O Discuss the implications of the Data Protection Act on a company gathering data for
marketing and selling it to global organisations.
47
Consider the following statement:
Some people believe that there is too much censorship of content available on
the internet, believing this to be a violation of human rights. Others believe that
there is not enough censorship and more should be putin place.
Discuss the merits of this statement.
rr. rro. orsrrrsr9.orrr..2.oosonsnr roo norasrrnrnsrr rra... m.....onooossssrs$s$s$2.2.ssrararanaasrssnarosas.... Pee eee ree ee ee ee meee EER ERE ER EOE EE ERE EE EERE EEE rs rr rr rr rr rr rr rss rr rr
Teeter eee eee eee ee eee eee eee eee ee ee eee ee ee eee eee eC ee ee CeCe eee eee ee eee eee ee eee eee eee ee ee eee eee eee eee ee ee ee eo
hr eee eee rr rr rs eee eee eee eee eee eee eee eee eee ee eee eee eee eee eee ee eee ee eee اeer)
rr rr rr rr rr rr rss Tet rett errr ree Tete reer eee eee ee eee eee eee eee eee eee ee ee eee eee eee eee eee eee Ce eT eee ee eee ee eee eee eee eee eee ee ee ee ee ee
Porron ro. eee eee ee eee ee eee eee eee eee ee eee eee eee ee eee eee ee eee eee eee eee ee ee ee eee eee ees
NRO e eee eee eee eee eRe ER EEE EEE OR HEE HER EEE EEE EEE EEE SEER EERE HEHEHE HEE EEE EEE EHH H EEE HEE E ESE O OEE OEE E HE HEE HEHE EES
BR n.aconsnn..oo..oorrorrarr one prrcrsarrnsn corro E ETOH EH OHHH EH HEE HEE HEHEHE EEE REE EEER EEE HEHE EEE EHO OES
Reem eee meee meee meee eee eee Eee EEE OEE RHEE EEE SETHE EEE EES HEHE EEE EEE HEHE SHEE HEHE EERE EE EEE EEE HHS EE EEE DEES EEE SEES Ree eee eee eee eee ا ل ا اEES EER ODED EEE sense
Ree Re eee eee EEE A EERO EEE DERE EEO E EE HEE HEE TERE EERE MERE HEHEHE EERE EO EEE OEE E HH HEE EEE EE a EERE HEHE EEE EEEE
Cover photo: AndSus/Fotolia
Hachette UK’s policy is to use papersthat are natural, renewable and
recyclable products and made from wood grown in well-managedforests
and other controlled sources. The logging and manufacturing processes are
expected to conform to the environmental regulations of the country of origin.
Orders: please contact Bookpoint Ltd, 130 Park Drive, Milton Park,
Abingdon, Oxon OX14 4SE. Telephone: (44) 01235 827827.
Fax: (44) 01235 400401. E-mail education@bookpoint.co.uk Lines are
open from 9 a.m. to 5 p.m., Monday to Saturday, with a 24-hour message
answering service. You can also order through our website:
www.hoddereducation.co.uk
ISBN: 978-1-5104-3699-2
All rights reserved. Apart from any use permitted under UK copyrightlaw,
no part of this publication may be reproduced or transmitted in any form
or by any means, electronic or mechanical, including photocopying and
recording, or held within any information storage and retrieval system,
without permission in writing from the publisher or under licence from
the Copyright Licensing Agency Limited. Further details of such licences
(for reprographic reproduction) may be obtained from the Copyright
Licensing Agency Limited, www.cla.co.uk
Typeset by Aptara, India
Printed in Spain
A catalogue recordfor this title is available from the British Library.
© Sarah Lawrey 2019
First published in 2019 by
Hodder Education,
An Hachette UK company
Blenheim Court
George Street
Banbury
Oxfordshire OX16 5BH
www.hoddereducation.co.uk
Impression number 109876543
Year
2023 2022 2021 2020
ISBN 978-1- |3699-2
HODDER EDUCATION
t: 01235 827827
e: education@bookpoint.co.uk
w: hoddereducation.co.uk
MIX
paintoon
sources
responsible
1510 |
de
FSC” C104740
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )