Question 1
OCR Computer Science Specimen Paper 1A level23 marks
On the specification
- (a)
- 1.2 Software and software development
- (b)
- 2.3 Algorithms
- (c)(i)
- 1.3 Exchanging data
- (c)(ii)
- 1.3 Exchanging data
- (d)
- 1.2 Software and software development
Question text
1 A software company decides to release a duplicate file finder which it has named “De- Duplicator”. Duplicate files are files that are exactly the same (bit for bit identical). Space is often wasted on computers by having multiple versions of the same file. Duplicate file finders are programs that find and identify duplicate files on a hard drive so that they can be removed. (a) A duplicate file finder is an example of a utility. Describe what is meant by a utility. [2] (b) De-Duplicator creates a tree to represent directories and files on the system. It then traverses each directory and file represented in the tree. It does this using a depth-first traversal. State what order it will visit each of the files as shown in Fig.1 below. [3] Fig.1 (c) Every time the program encounters a file it takes a hash of the file and checks it against a list. If the hash exists in the list, the file is marked to be deleted. If the hash does not exist it is added to the list. (i) Explain two characteristics you would look for in a hashing algorithm for this purpose. 1 2 [4] (ii) After running the program a user finds that they still have apparent duplicates of some of their images. Explain why these apparent duplicates might still be present. [2] (d)* The software team that produces De-Duplicator decides to make a new version that can detect duplicated images the previous version could not. The software team must decide which methodology they will use for the project. Some members of the team suggest extreme programming whilst others would prefer to use the waterfall lifecycle. Discuss the two methodologies and justify which you would recommend. [12]