Professional Documents
Culture Documents
What is "bit-streaming"?
NOTE: terminology: the source is called the "producer"; the destination is called
the "consumer".
What is "broadcasting"?
More correctly, on demand streaming uses "unicasting", which sends the stream to
one requesting recipient; live streaming may use "multicasting" which sends the
stream to many recipients at the same time.
On demand bit-streaming
NOTE: often several video files are made available encoded using different
resolutions, so that the user can select a lower resolution if their video output
is not continuous
The internet
● the internet is a global system of interconnected networks
● using the internet protocol suite (TCP/IP)
Describe the three components of the following URL (Uniform Resource Locator):
https://www.cie.org.uk/computerscience.html
Make 3 bullet points:
● HTTPS tells the browser what protocol is being used to access the information
in the domain
● cie.org.uk is the domain
● computerscience.html is the file name of the webpage being requested
NOTE:
a quick way: the next binary column to the left would have the value 256
so:
denary: 256 - 1 = 255
binary: 100000000 - 1 = 11111111
hex : 100 - 1 = FF
3.2A.6AA.BBBB is invalid because BBBB and 6AA are more than 8 bits
2.0.255.1 is valid because all values are in the range 0 - 255
6.0.257.6 is invalid because 257 > 255
A.78.F4.J8 is invalid because J is not a HEX digit/J8 is not a valid HEX number
NOTES:
a private IP address can only be reached within a LAN or intranet
a private IP address cannot be reached across the internet
NOTE:
you get a mark for saying that the internet and the WWW are not the same thing
using bullet points, one mark per bullet point, eg
● the internet is a system of interconnected networks
● using the internet protocol suite (TCP/IP)
● the World Wide Web (WWW) is a collection of interlinked hypertext documents
● accessed over the internet
Marks also awarded for:
● web-pages/hypertext documents are written in HTML (hypertext mark-up language)
● web-pages are transferred across the internet using HTTPS protocol (secure
hypertext transfer protocol)
However, regarding the last entry "Fastest transmission medium", consider the
following points, which suggest that the mark scheme is in ERROR:
(1) radio in air is faster than light in fibre:
● the speed of light in a glass or plastic fibre, where light has to bounce along
the refractive index, is approx. 200,000 kms-1
● the speed of a radio signal in air is approx. 299,700 kms-1
This means that the latency (the time taken for the signal to travel) between two
buildings is lower for radio than for fibre.
eg: for two buildings 200m apart, radio takes 1064 μs (microseconds), light in
fibre takes 1594 μs (microseconds); (more than 500 μs longer)
(2) radio travels in a straight "line of sight", light in fibre does not, which
further increases the difference between the latency of light in fibre and the
latency of radio signals.
(3) there is less attenuation (loss of energy per metre) for light in fibre than
for radio signals, mainly because radio signals spread out.
Two benefits of the client-server model:
● resources are centralised (eg files on a file-server)
● so that security is managed effectively (eg access control, backup and
recovery)
NOTE:
the mark scheme does not contain the answers, just pointers to the examiner.
NOTE
Hardware required to connect a local area network to the internet:
(1) a modem (to modulate/demodulate the carrier wave on the telecommunications
provider's communications media connecting the network to the internet)
(2) a router (to forward each received message/packet to the correct destination
host)
(3) either a hub or a switch (to connect hosts)
NOTES:
- Javascript code:
● lines 8-15 contain the Javascript code
● lines 7 and 16 contain the enclosing html script tag
- local variables:
● identifiers of 2 variables: groupPrice, groupSize
● "var" precedes the declaration of any local variable
NOTE: when defining, describing or explaining something, avoid using the word you
are defining as part of the answer (eg "prompt")
VALIDATION
Length check
● for the Number, to make sure at least one character has been entered
CLIENT-SERVER OPERATION
In particular, eg when requesting a file from a server, marks are awarded for any
2 of the following:
● The file is made available from a web/email/FTP server
● The user’s browser is the client software
● The client (software browser) requests the file from the server
● The desired file is returned to the client computer
Javascript code:
lines 5-20
Format check
● RunnerID is three letter characters followed by two digit characters
● Position is digit characters only
Length check
RunnerID has exactly five characters
Range check
The value for Position is greater than 0 and less than or equal to the number of
runners in the race
Presence check
The text box for RunnerID or Position is not empty
01 <html>
02 <body>
03
04 <p>Enter your mark</p>
05 <input id="Mark" value="0">
06 <button onclick="calcGrade()">Enter</button>
07
08 <script>
09 function calcGrade() {
10 var mark, grade;
11 mark = document.getElementById("Mark").value;
12 if (mark >= 90) {
13 grade = "A"
14 } else if (mark >= 80) {
15 grade = "B"
16 } else if (mark >= 70) {
17 grade = "C"
18 } else if (mark >= 60) {
19 grade = "D"
20 } else if (mark >= 50) {
21 grade = "E"
22 } else {
23 grade = "U"
24 }
25 alert("Your grade is " + grade)
26 }
27 </script>
28
29 </body>
30 </html>
Javascript:
lines 9-26
01 <?php
02 if(isset($_GET['mark'])) {
03 echo "Grade: " . calculateGrade($_GET['mark']);
04 } else {
05 ?>
06
07 <form action="#" method="get">
08 Enter Mark: <input type="text" name="mark" /><br />
09 <input type="submit" value="Calculate" />
10 </form>
11
12 <?php
13 }
14
15 function calculateGrade($inputMark) {
16 $gradeChar = "U";
17 if($inputMark >= 80) $gradeChar = "A";
18 else if($inputMark >= 70) $gradeChar = "B";
19 else if($inputMark >= 60) $gradeChar = "C";
20 else if($inputMark >= 50) $gradeChar = "D";
21 else if($inputMark >= 40) $gradeChar = "E";
22 return $gradeChar;
23 }
24 ?>
variables:
gradeChar
- declared as parameter passed to function calculateGrade() at line 15
inputChar
- declared and assigned a value "U" at line 16
line 2: checks whether any value entered in the text box with name = "mark"
has been sent to the server-side $_GET array
line 3: if so, function calculateGrade is called
passing this value as a parameter
the value returned from the call to function calculateGrade()
is concatenated after string "Grade : " and the resulting string output