CS Answers
CS Answers
CS Answers
1 0 0 0 0 1 0 0 7 a AF01 [2 marks]
b 1 0 1 0 1 1 1 1 0000 0 0 0 1 [2 marks]
[2 marks]
8 a A
MAC address is usually made up of 48 bits
ii 128 + 4 = 1 3 2 [1 mark] which are shown as six groups of hexadecimal
c i R = 27 r = 108 ( R value by 4) digits (although 64-bit addresses are also known):
ii M = 22 m = 88 ( M value by 4) [4 marks] NN NN NN DD DD DD or
6 a i A MAC address is usually made up of NN:NN:NN:DD:DD:DD
48 bits which are shown as six groups where the first half (NN NN NN) is the
of hexadecimal digits (although 64-bit identity number of the manufacturer of the
addresses are also known): device and the second half (DD DD DD) is
the serial number of the device. [2 marks]
1
Cambridge IGCSE Computer Studies Workbook David Watson and Helen Williams 2016
Answers
10 9
10 7 16 0
9
1 8 1
What is the denary value of the 3 4 0
12
hexadecimal digit E?
1
1 2 0
What is the denary value of the
binary number 14 1
00011100?
0 1 1
0.5 end
If the download speed for broadband
is 64 megabits per second, how long [4 marks]
would it take to download a 96 16
megabyte file (in seconds)? b Converts denary numbers into 8-bit binary
numbers. [1 mark]
If 2x = 1 terabyte (TB), what is the 12 a i #FF 80 00
22
value of x?
ii #B1 89 04 [2 marks]
b HyperText Mark-up Language (HTML) is
What is the hexadecimal value of
the denary number 50?
28 used when writing and developing web
pages. HTML is not a programming language
but is simply a mark-up language. A mark-
How many bits are there in two up language is used in the processing,
32
bytes of data? definition and presentation of text (for
example, specifying the colour ofthe text).
HTML uses <tags> which are used to bracket a
40
piece of code; for example, <td> starts a standard
cell in an HTML table, and </td> ends it. Whatever
[6 marks] is between the two tags has been defined. [3 marks]
2
Cambridge IGCSE Compueter Studies Workbook David Watson and Helen Williams 2016
Answers
hexadecimal
this is used to develop web pages; it is
used in the processing, definition and 2 Communication and
number system presentation of text (e.g. the
specification of a text colour)
internet technologies
value, written in hexadecimal, which is 1 a simplex, serial data transmission [2 marks]
used to uniquely identify a device on the
memory dump
network; it is often written in the form: b full duplex, parallel data transmission[2 marks]
NN-NN-NN-DD-DD-DD c half duplex, serial data transmission [2 marks]
2 a use of start bit
media access number system which uses the values use of stop bit
control 0 to 9 and the letters A to F to
(MAC) address represent digits data is between these two bits
known as control bits [2 marks]
3
Cambridge IGCSE Computer Studies Workbook David Watson and Helen Williams 2016
Answers
4 a i
ii
3 Logic gates and logic
iii [3 marks] circuits
b They detect corrupted bits following data
transmission.[1 mark] 1 a OR gate
c i bit number = 4 b NAND gate
byte number = 6 [2 marks] c XOR gate [3 marks]
ii column 4 (bit 4) has odd parity (five 1-bits) 2
row 6 (byte 6) has odd parity (five 1-bits) A B C X
0 0 0 0
where they intersect gives the incorrect
0 0 1 0
bit[3 marks]
0 1 0 0
iii 0 1 1 1 1 1 0 1 [1 mark] 0 1 1 1
iv two bits interchanged (e.g. 1100 1100 1 0 0 1
became 1010 1100) 1 0 1 1
several bits incorrect but parity stays the same 1 1 0 0
(e.g. 1001 1001 became 1111 1001) [2 marks] 1 1 1 1 [4 marks]
v any description of ARQ, Checksum or Echo
Check for 2 marks [2 marks] 3 a (A=1 AND B=1) OR (B=NOT 1 OR C=1)
5 (A AND B) OR (NOT B OR C)
Companies that provide the user with Internet Service (a.b) + ( b + c) [3 marks]
access to the internet; a monthly fee is Provider (ISP) b
usually charged for this service
A unique address that identifies the Internet Protocol A
location of a device which is connected to (IP) Address B
the internet
A unique address that identifies the device Media Access
X
that is connected to the internet Control (MAC)
A set of rules that must be obeyed when Hypertext
transferring files across the internet Transfer Protocol
Software that allows a user to display a Web browser
web page on their computer screen; they
translate the HTML from the website
C
[5 marks] [4 marks]
6 a Structure
4 a
essential part of HTML document
A B X
which includes semantics
0 0 0
and structural mark-up 0 1 1
1 0 1
Presentation
1 1 1 [2 marks]
style of the document
how document will look after translation
b OR gate [1 mark]
css file [3 marks] c less expensive
b https or the green padlock [1 mark] faster development time [1 mark]
7 a A [1 mark] 5 a
b <h1>, <h3>, <p>, <td> etc. (any two) [2 marks] A B C X
c Use of, for example, </h1> [1 mark] 0 0 0 0
0 0 1 1
d 1st two digits or letters = intensity of red 0 1 0 0
2nd two digits or letters = intensity of green 0 1 1 1
1 0 0 0
3rd two digits or letters = intensity of blue
1 0 1 1
[1 mark] 1 1 0 0
e Hex(adecimal) [1 mark] 1 1 1 1 [4 marks]
b Input C only [1 mark]
4
Cambridge IGCSE Compueter Studies Workbook David Watson and Helen Williams 2016
Answers
6 a c
A B C X T A P X
0 0 0 1 0 0 0 0
0 0 1 1 0 0 1 1
0 1 0 0 0 1 0 1
0 1 1 0 0 1 1 1
1 0 0 1 1 0 0 0
1 0 1 1 1 0 1 1
1 1 0 0 1 1 0 0
1 1 1 1 1 1 1 1
[4 marks] [4 marks]
9 a ( (A=1 AND B=1) OR (A=NOT 1 AND C=1))
b AND gate [2 marks] OR (B=NOT 1 AND C=1)
7 a (A=1 AND B=NOT 1) AND (B=1 OR C=1) ((A AND B) OR (NOT A AND C)) OR
(A AND NOT B) AND (B OR C) (NOT B AND C)
+ (b.c)
(a.b). (b + c) [3 marks] (a.b + a.c)
b A
A B
B
X
C
C
[7 marks]
[4 marks]
b 0 1 1 1
1 0 0 0
T
1 0 1 1
1 1 0 1
A 1 1 1 1
[4 marks]
c
X Y Z Q
X
0 0 0 0
0 0 1 0
P 0 1 0 0
0 1 1 1
1 0 0 0
[7 marks]
1 0 1 0
1 1 0 1
1 1 1 1
[4 marks]
5
Cambridge IGCSE Computer Studies Workbook David Watson and Helen Williams 2016
Answers
4
Any data to No
be sent to 4
printer?
Yes 1
2
1
All data No Contents of MAR are then copied and placed in the CIR
sent to 5
printer?
Yes
6 5
Interrupt signal is
sent to request
more data to be
sent to printer 3
2
[5 marks]
[6 marks]
6
Cambridge IGCSE Compueter Studies Workbook David Watson and Helen Williams 2016
Answers
5 a simple tasks e.g. press button on a touchscreen c Manager (any two of)
tasks do not change [2 marks] l easier/faster method of changing item prices
b oven, microwave oven, washing machine, l better, more up-to-date sales information
freezer, etc. [1 mark]
l no need to price each item therefore saves
time/money/errors
l
allows for automatic stock control
reduces risk of theft of items.
devices Customer (any two of)
l faster checkout/shorter queues at checkout
1 passport data is scanned
l reduces errors in adding up final bill/fewer
l photograph in passport is scanned
pricing errors
l digital camera also photographs the passenger
l customer gets an itemised bill
l key items (such as width of nose)
l cost savings can be passed on to the
l from scanned passport photograph
customer
l are compared to digital camera image
l better tracking of sell by dates. [4 marks]
l if there is a match, passenger has been
correctly identified. [4 marks] 3 a Quick Response (code) [1 mark]
Any two of:
2 CCD charge couple device
b huge amount of data can be stored
l consists of a number of integrated circuits on a
silicon structure l no need to manually enter web address/URL
l made up of thousands of light-sensitive l simply scan QR code from magazine,
elements (pixels). advert, etc. [2 marks]
CT computed tomography c read QR code using mobile phone/tablet
camera
l uses X-rays to split up solid object into thin
slices l QR App on phone/tablet reads and
interprets QR image
MRI magnetic resonance imaging
l website automatically opens once the QR
l uses radio wave frequencies to split up a solid
code is interpreted
object into thin slices. [6 marks]
l other QR codes may contain information
3 a A: 0 1 1 1 1 0 1
such as historic buildings, etc. [3 marks]
B: 0 1 0 1 1 1 1
C: 0 1 1 0 0 0 1 [3 marks] 4 keyboard
b keypad to input number of items bought/ l mouse/touchscreen
key in weights/key in barcode number if l microphone
barcode failed to scan correctly l (2D) scanner
l magnetic stripe reader to read customers
l interactive whiteboard. [5 marks]
credit/debit card
5 a thermal bubble
l weighing machine to weigh fresh goods
l resistors create localised heat which makes
l touchscreen to select items such as fruit/
ink vaporise
make other selections
l tiny ink bubbles form which expand and some
l barcode reader/scanner to input/read
ink is ejected from print head onto paper
barcode on an item
l when a bubble collapses, a vacuum is created
l contactless screen to allow payment by
7
Cambridge IGCSE Computer Studies Workbook David Watson and Helen Williams 2016
Answers
8
Cambridge IGCSE Compueter Studies Workbook David Watson and Helen Williams 2016
Answers
File compression algorithm that b more reliable; no moving parts to wear out
MIDI file reduces file size by eliminating
l much lighter in weight
unnecessary bits of data
l does not have to get up to speed before
A raw bitmap image that has reading/writing
jpeg image
not yet been compressed
l less power used so less heat generated
l very thin since no mechanical moving parts
Communication protocol that
lossy
file format
allows electronic musical instru- l data access is faster than magnetic media.
ments to interact with each other
[3 marks]
[5 marks]
9
Cambridge IGCSE Computer Studies Workbook David Watson and Helen Williams 2016
Answers
5 a 4 1 P
rograms written in a high-level programming
Optical Use red Use blue Use two Use one Track Track language are easier for a programmer to read
media lasers lasers poly- poly- pitch pitch and understand as the language used is closer
to read/ to read/ carbonate carbonate < 1m > 1m
write write layers layer to English.
2 Programs written in a high-level
CD
programming language are easier for a
programmer to debug during development.
DVD
3 Development time is faster for a programmer
when programs are written in a high-level
Blu-ray programming language.
4 It is easier for a programmer to maintain a
[3 marks] program written by another programmer when
b l blue laser means pits and bumps can be it is written in a high-level language. [4 marks]
much smaller increasing storage 5 a M
achine code is the binary language that a
l uses single polycarbonate disk removing risk computer uses.
of birefringence (light refraction) b Assembly language is a low-level programming
l comes with automatic secure encryption language that requires translation before it can
system be used by a computer. [2 marks]
l easier to manufacture since only uses one 6 1 P
rogrammers can write programs that make
polycarbonate disk. [3 marks] use of special hardware.
6 l now store music in MP3 format/movies in MP4 2 Programmers can write programs that make
format on smartphones/tablets, etc. use of special machine-dependent instructions.
l use of cloud to store movies and music files 3 Programmers can write program code that does
not take up much space in primary memory.
l use of streaming of music and videos from the
internet 4 Programmers can write program code that
performs a task very quickly. [4 marks]
l transfer of files now done using solid-state
devices. [4 marks] 7 a HLL
Sum := FirstNumber + SecondNumber
7 High- and low-level b LLL
10
Cambridge IGCSE Compueter Studies Workbook David Watson and Helen Williams 2016
Answers
[8 marks]
11
Cambridge IGCSE Computer Studies Workbook David Watson and Helen Williams 2016
Answers
about the user Users web browser sends a message so that it can connect
with the required website secured by SSL
l can carry out user tracking, e.g. when
[3 marks]
3
b examines traffic to/from users computer
l checks whether incoming/outgoing data
warned 4
l logs all in/out traffic
undesirable websites
l can help to prevent viruses or hacking 1
l warns user if software on their system tries
12
Cambridge IGCSE Compueter Studies Workbook David Watson and Helen Williams 2016
Answers
13
Cambridge IGCSE Computer Studies Workbook David Watson and Helen Williams 2016
Answers
8 a V
alidation is an automated check that data is c 1127 18 = 1 4 + 1 3 + 2 2 + 7 1
reasonable, whereas verification is a human 18 = 1 remainder 7
check that the data has no mistakes that 11
occurred while being entered. [2 marks] check digit is 4 = 11 7 [2 marks]
b 1 Range check 47857 89 = 4 5 + 7 4 + 8 3 + 5 2 + 7 1
2 Type check [2 marks] 89 = 8 remainder 1
11
c 1 Double entry. check digit is x as 10 = 11 1 [2 marks]
2 On-screen check. [2 marks] 12 a M
arks must be between zero and 100
9 Range check: Checks that values are within inclusive.[2 marks]
a lower and an upper bound; for example, b minus one [1 mark]
percentage marks for an examination must be c
greater than or equal to zero and less than or
Sum Reject Mark Output
equal to one hundred. [3 marks]
0 0
Format check: Checks that characters conform to 17 17
a given pattern; for example, the code to identify 52 35
a teaching group could be XXXnn, where XXX 76 24
are the teachers initials and nn is a two-digit
1 5
number. [3 marks]
76 0
10 143 67
The number of pupils in a class 225 82
Range check
is a whole number.
322 97
A persons name only contains 2 21
Length check
alphanumeric characters.
367 45
Check that a code contains two 390 23
Type check
letters followed by three numbers.
1 390 2
[5 marks]
11 a A
check digit is the final digit in a code that is
calculated using the other digits. [2 marks]
b 9780 7487 8296 3
Stage 1 49 = 9 + 8 + 7 + 8 + 8 + 9
Stage 2 78 = (7 + 0 + 4 + 7 + 2 + 6) 3
Stage 3 127 gives remainder 7
10
Stage 4 check digit is 3 = 10 7
Correct [3 marks]
14
Cambridge IGCSE Compueter Studies Workbook David Watson and Helen Williams 2016
Answers
15
Cambridge IGCSE Computer Studies Workbook David Watson and Helen Williams 2016
Answers
INPUT Number
ENDWHILE
Print Total[6 marks]
iii Total 0
REPEAT
INPUT Number
Total Total + Number
UNTIL Total > 20
Print Total[6 marks]
4 a INPUT
READ[2 marks]
b OUTPUT
PRINT[2 marks]
5 IF StockLevel < 10
THEN PRINT 'Reorder'
ENDIF[2 marks]
6 a Total 0
CountPositive 0
FOR Count 1 TO 20
INPUT Number
IF Number > 0
THEN
Total Total + Number
CountPositive CountPositive + 1
ENDIF
NEXT Count
Average Total/CountPositive
PRINT 'Average of the Positive numbers is ', Average [7 marks]
b Put the input statement in a Repeat Until loop that rejects any
number less than zero. [2 marks]
7
INPUT Num1
[7 marks]
16
Cambridge IGCSE Compueter Studies Workbook David Watson and Helen Williams 2016
Answers
Process
Terminator
Decision
Input/Output
[3 marks]
9 a
START
Sum 0
Pos 0
Count 0
input
Num
No
Count Count + 1
No is Count =
20?
Yes
END
[7 marks]
b Change the first test to >= 0 and <= 100, check if Count = 30.[3 marks]
17
Cambridge IGCSE Computer Studies Workbook David Watson and Helen Williams 2016
Answers
11 Programming concepts
1
[4 marks]
2 A variable should be used when the value will change while the program
is running; for example, a counter will change. Count Count + 1
A constant should be used when the value will not change while
the program is running; for example, the highest mark that could
be awarded for an exam will not change. This could be declared as
a constant const TopMark = 100; (JavaScript) or declared by
assignment ConstTopMark =100 (Python).
Note: You should answer this in the context of the programming
language you have been taught. [4 marks]
3 a Average Mark, variable changes when new marks have been
added.
b Number of months in a year, constant, always has the same value.
c Number of pupils in a class, constant or variable, need more
information to decide. [6 marks]
4 a i Number = int (0)
Count = int (0)
Sum = int (0)
for Count in range (1, 9):
Number = int(input( "Enter a Whole Number: "))
Sum = Sum + Number
print ("Sum of eight numbers is ", Sum)OUTPUT.
(Python)
<HTML>
<HEAD>
<TITLE> 4 (a) (i)</TITLE>
<SCRIPT LANGUAGE = "JavaScript">
var Number = 0;
var Count = 0;
var Sum = 0;
do
{
Number = window.prompt('Enter whole number ', '');
Number = parseInt (Number);
Sum = Sum + Number;
18
Cambridge IGCSE Compueter Studies Workbook David Watson and Helen Williams 2016
Answers
Count = Count + 1
}
while (Count < 8);
document.write('Sum of eight numbers is ', Sum)
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>
(JavaScript)
Note: You should answer this in the context of the
programminglanguage you have been taught. Above are
examples only. There are many correct answers. [6 marks]
ii Number = int (0)
Sum = int (0)
Number = int(input( "Enter a Whole Number: "))
while Number != 1:
Sum = Sum + Number
Number = int(input( "Enter a Whole Number: "))
print("Sum ofthenumbers is ",Sum)
(Python)
<HTML>
<HEAD>
<TITLE> 4 (a) (ii) </TITLE>
<SCRIPT LANGUAGE = "JavaScript">
var Number = 0;
var Count = 0;
var Sum = 0;
do
{
Number = window.prompt ('Enter whole number ', '');
Number = parseInt (Number);
Sum = Sum + Number;
}
while (Number != 1);
document.write('Sum of the numbers is ', Sum + 1)
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>
(JavaScript)
Note: You should answer this in the context of the
programminglanguage you have been taught. Above are
examples only. There are many correct answers. [6 marks]
19
Cambridge IGCSE Computer Studies Workbook David Watson and Helen Williams 2016
Answers
<HTML>
<HEAD>
<TITLE> Question 4 (a) (iii)</TITLE>
<SCRIPT LANGUAGE = "JavaScript">
var Number = 0;
var Count = 0;
var Sum = 0;
do
{
Number = window.prompt ('Enter whole number ', '');
Number = parseInt (Number);
Sum = Sum + Number;
}
while (Sum < 10);
document.write('Sum of the numbers is ', Sum Number)
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>
(JavaScript)
Note: You should answer this in the context of the
programming language you have been taught. Above are
examples only. There are many correct answers. [6 marks]
b i 2, 4, 3, 1, 10, 3, 2, 1
ii 4, 9, 3, 1
iii 2, 3, 7
Note: These are examples only. There are many correct
answers.[3 marks]
c Need to change declarations to real and use float/parseFloat
for input. [2 marks]
5 a Number = int (0)
Sum = int (0)
NegCount = int (0)
Count = int(0)
Average = float (0)
for Count in range (1, 11):
20
Cambridge IGCSE Compueter Studies Workbook David Watson and Helen Williams 2016
Answers
<HTML>
<HEAD>
<TITLE>Question 5
</TITLE>
<SCRIPT LANGUAGE = "JavaScript">
var Number = 0;
var Count = 0;
var Sum = 0;
var NegCount = 0;
var Average = 0.0;
for (var Count = 1; Count <= 10; Count = Count + 1)
{
Number = window.prompt('Enter a negative number ', '');
Number = parseInt (Number);
if (Number < 0)
{
Sum = Sum + Number;
NegCount = NegCount + 1
}
}
Average = Sum / NegCount;
document.write('Average of negative numbers is ', Average)
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>
(JavaScript)
Note: You should answer this in the context of the programming
language you have been taught. Above are examples only. There
are many correct answers. [7 marks]
b Put the input statement inside a WHILE loop that rejects positive
numbers.[2 marks]
c 1, 9, 2, 2, 2, 2, 2, 2, 2, 2
Note: These are examples only. There are many correct
answers.[1 mark]
21
Cambridge IGCSE Computer Studies Workbook David Watson and Helen Williams 2016
Answers
<HTML>
<HEAD>
<TITLE> Chapter 12 Question 4 (a)(i)</TITLE>
<SCRIPT LANGUAGE = "JavaScript">
const NoDays = 7;
var Enquiries = new Array (NoDays + 1);
for (var Counter = 1; Counter <= NoDays; Counter = Counter + 1)
{
Enquiries[Counter] = parseInt(window.prompt('Enter number of enquiries', ''));
}
22
Cambridge IGCSE Compueter Studies Workbook David Watson and Helen Williams 2016
Answers
<HTML>
<HEAD>
<TITLE> Chapter 12 Question 4 (a)(ii)</TITLE>
<SCRIPT LANGUAGE = "JavaScript">
const NoDays = 7;
var Most = 0;
var Least = 1000;
var MostDay = 0;
var LeastDay = 0;
var Enquiries = new Array (NoDays + 1);
23
Cambridge IGCSE Computer Studies Workbook David Watson and Helen Williams 2016
Answers
24
Cambridge IGCSE Compueter Studies Workbook David Watson and Helen Williams 2016
Answers
<HTML>
<HEAD>
<TITLE> Chapter 12 Question 4 (a)(iii)</TITLE>
<SCRIPT LANGUAGE = "JavaScript">
const NoDays = 7;
var Total = 0;
var Average = 0.0;
var Enquiries = new Array (NoDays + 1);
for (var Counter = 1; Counter <= NoDays; Counter = Counter + 1)
{
Enquiries[Counter] = parseInt(window.prompt('Enter number of enquiries ', ''));
Total = Total + Enquiries[Counter]
}
Average = Total/NoDays;
document.write('Total ' + Total, '<br>');
document.write('Average ' + Average, '<br>')
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>
(JavaScript)
Note: You should answer this in the context of the programming
language you have been taught. Above are examples only. There are
many correct answers. [6 marks]
b 2, 4, 3, 1, 10, 3, 2,
Note: Above are examples only. There are many correct
answers.[1 mark]
Note: The answers to questions 5, 6, 7 and 8 will depend upon the pre-release
material that you are using. This changes for every exam.
13Databases
1 1 No duplication of data
2 Changes need only be made once
3 No inconsistency of data, everyone sees and uses the
same data [3 marks]
2 Table a set of related data elements stored in rows and columns.
Record the data contained in a table about a single item.
Field a single unit of data in a record containing one specific piece
of information.
Primary key a field in a record where the data held is unique for
each record stored. [4 marks]
25
Cambridge IGCSE Computer Studies Workbook David Watson and Helen Williams 2016
Answers
3 a TextBookName Text
ISBN Text
Author Text
Copies Integer/Number
Subject Text [5 marks]
b i TextBookName, Author, Subject*
ii ISBN, Copies, Subject* [2 marks]
*could appear in either but not both
c ISBN, unique for each identified text [2 marks]
d Copies, range check between 1 and 50*
ISBN, check digit
(Subject, select from list) [4 marks]
*any suitable number
e
Field: Subject Copies TextBookName
Sort:
Show:
Criteria: = History >= 30
or:
4 a
No of
Field: Head office Code
countries
Sort:
Show:
Criteria: < 30 = Americas
or:
[3 marks]
26
Cambridge IGCSE Compueter Studies Workbook David Watson and Helen Williams 2016
Answers
b
Field: Number in stock Items ordered Item code
Sort:
Show:
Criteria: <[Re-order level] = Yes
or:
[3 marks]
5 a
Name of
Field: Profits (billion $) Share price ($)
company
Sort:
Show:
Criteria: > 8
or: < 50
[3 marks]
b
Price of item Value of stock
Field: Item code
($) ($)
Sort:
Show:
Criteria: >2
or: >300
[3 marks]
27
Cambridge IGCSE Computer Studies Workbook David Watson and Helen Williams 2016