Exchanging Data: Databases, Networks and Web Technologies - Worksheets, Questions and Revision

13 original exam-style questions - 5 pages of questions with a full mark scheme - free printable PDF.

Download PDFJump to mark scheme (page 6)Read the revision guide
« Previous: Types of Software and Development MethodologiesNext: Data Types, Data Structures and Boolean Algebra »
Revision Library
revisionlibrary.co.uk
A-Level · Component 01: Computer Systems - Exchanging Data

A1.3 Exchanging Data: Databases, Networks and Web Technologies

OCR H446 · Calculators not allowed · about 115 minutes
Total Marks
Name: _______________________________    Date: ____ / ____ / ______
Answer ALL questions. Show all your working.
1
A digitised photograph and a scanned black-and-white text document both need to be compressed for storage on a school's shared drive.
(a)Define lossy compression and lossless compression.(2)
(b)A single row of pixels from a bitmap image has the following greyscale values, read left to right:
3, 3, 3, 3, 3, 7, 7, 2, 2, 2, 2, 2, 2, 9
Apply run-length encoding (RLE) to this row of data. Give your answer as a list of (count, value) pairs.
(3)
(c)State one type of file for which lossy compression would be a suitable choice and justify your answer.(2)
(Total for Question 1 is 7 marks)
2
A programmer is implementing a hash table of size 10 (indices 0 to 9) using the hash function h(k) = k MOD 10, with collisions resolved by linear probing (checking the next index upward, wrapping to 0 if necessary).
(a)Explain the purpose of a hash function when storing data in a hash table.(2)
(b)The keys 23, 7, 17 and 13 are inserted, in that order, into the empty hash table. Show the index at which each key is placed, and give the final contents of the whole table (indices 0 to 9).(4)
(c)State one drawback of using modulo division as a hash function.(1)
(Total for Question 2 is 7 marks)
3
A retailer's website uses HTTPS to protect data sent between a customer's browser and the web server.
(a)Distinguish between symmetric encryption and asymmetric encryption.(3)
(b)Explain why HTTPS uses asymmetric encryption only to establish a shared secret key at the start of the connection, and then switches to symmetric encryption for the rest of the session.(3)
(c)A simple Caesar cipher shifts every letter of the plaintext forward by 3 places in the alphabet (wrapping Z back to C). Encrypt the plaintext NETWORK using this cipher.(2)
(d)State one weakness of the Caesar cipher as a method of encryption.(1)
(Total for Question 3 is 9 marks)
4
A sixth form college stores exam entry data in a single unnormalised table. An extract is shown below, where each student record contains a repeating group of module entries:
StudentIDStudentNameTutorGroup{ModuleCode, ModuleName, Grade}
1001Amara Okafor12A{(COMP101, Computer Systems, A), (COMP102, Programming, B)}
1002Liam Fraser12B{(COMP101, Computer Systems, B)}
(a)State why the table above is not in first normal form (1NF).(2)
(b)Convert the table into 1NF. Show the resulting table, including its primary key.(3)
(c)The 1NF table from part (b) contains partial dependencies. Identify the partial dependencies present and produce a set of tables in second normal form (2NF), stating the key of each table.(4)
(d)Explain the purpose of converting a database to third normal form (3NF), and state whether any further transitive dependency needs to be removed from the tables produced in part (c).(3)
(Total for Question 4 is 12 marks)
5
A college database contains the following relational tables:
Student(StudentID, Name, TutorGroup)
Module(ModuleCode, ModuleName)
Enrolment(StudentID, ModuleCode, Grade)
StudentID is the primary key of Student, ModuleCode is the primary key of Module, and (StudentID, ModuleCode) is the composite primary key of Enrolment, with StudentID and ModuleCode as foreign keys.
(a)Write an SQL query to list the Name of every student enrolled on the module with ModuleCode 'COMP101' who achieved a Grade of 'A'.(3)
(b)Write an SQL query to display each TutorGroup along with the number of students in that tutor group.(3)
(c)Write an SQL statement to add a new column called DateOfBirth, of type DATE, to the Student table.(2)
(Total for Question 5 is 8 marks)
6
A bank's database processes transactions using the ACID properties.
(a)State what each of the four letters in ACID stands for, giving a brief description of each property.(4)
(b)Priya Sharma and her partner share a joint bank account with a balance of 500 pounds. Both attempt to withdraw 300 pounds at almost the same time from different cash machines. Explain, using this example, how the Isolation property prevents an incorrect final balance being recorded.(3)
(c)Explain why record locking is used in transaction processing systems.(2)
(Total for Question 6 is 9 marks)
7
A school in Bristol is extending its network to a new sports hall approximately 200 metres from the main building.
(a)Compare a star topology with a mesh topology, giving one advantage and one disadvantage of each.(4)
(b)State one factor, other than cost, that the school should consider when choosing a transmission medium for the 200 metre link to the sports hall, and justify why it is relevant in this scenario.(2)
(c)Explain one advantage of using fibre optic cable, rather than copper cable, for this 200 metre link.(2)
(Total for Question 7 is 8 marks)
8
A student's laptop uses the TCP/IP protocol stack to request a web page from a server.
(a)Name the four layers of the TCP/IP model, in order from the layer closest to the application to the layer closest to the physical transmission medium.(4)
(b)Explain the role of the Transport layer when the laptop requests the web page.(3)
(c)Explain what happens if one segment of the web page data is lost in transit, with reference to TCP.(3)
(Total for Question 8 is 10 marks)
9
A device on a home network has IPv4 address 192.168.1.14 and MAC address 00-1A-2B-3C-4D-5E. The device sends a request to a web server on the internet.
(a)Convert the IPv4 address 192.168.1.14 to its full binary representation, showing each octet.(4)
(b)Explain the difference between how the MAC address and the IP address are used to deliver the device's data across the internet to the web server.(4)
(c)Explain the function of a router in forwarding this data toward the web server.(3)
(Total for Question 9 is 11 marks)
10
A college admissions website used by Grange Sixth Form College includes a form asking applicants to enter their predicted grade points, and checks that the value entered is between 1 and 100 before the form is submitted.
(a)Distinguish between client-side scripting and server-side scripting, giving one example language typically used for each.(4)
(b)Explain one advantage of performing the grade point validation (checking the value is between 1 and 100) client-side rather than server-side.(3)
(c)The website also checks an applicant's login password against the college's database. Explain why this check must be carried out server-side rather than client-side.(2)
(Total for Question 10 is 9 marks)
11
Search engines allow users to find relevant web pages within a fraction of a second.
(a)Explain how a search engine uses a crawler and an index to respond quickly to a search query.(4)
(b)Explain how the PageRank algorithm uses backlinks to help rank web pages, illustrating your answer with an example.(4)
(Total for Question 11 is 8 marks)
12
Discuss the range of technologies and techniques an online retailer should employ to keep customers' payment data secure, both while it is being transmitted and while it is being stored, evaluating how effective each is.
(Total for Question 12 is 8 marks)
13
Data sent between an office in Manchester and a branch office in Glasgow is broken into packets, which can arrive out of order because they may take different routes across the network.
(a)State one field found in a packet header that allows the receiving device to reassemble the data in the correct order.(1)
(b)An array packets[0 TO n-1] holds packet records that have arrived out of order, where each record has a field seqNum. Write an algorithm, using the OCR Exam Reference Language, that sorts the packets array into ascending order of seqNum using an insertion sort.(6)
(c)Three packets arrive with seqNum values 3, 1, 2 (in that array order). Complete a trace table for the algorithm from part (b) as it sorts this array, showing the value of i, current, j and the full array contents after each outer loop iteration.(4)
(Total for Question 13 is 11 marks)
Mark scheme · A1.3 Exchanging Data: Databases, Networks and Web Technologies

Question 1

Question 2

Question 3

Question 4

Question 5

Question 6

Question 7

Question 8

Question 9

Question 10

Question 11

Question 12

Question 13