CAPE Computer Science Unit 2 · 2015 · Paper 2
33 questions and parts from this paper. Open one to see it in full, then practise it on Quelpr and get it marked against the mark scheme.
- 1(a)2 marksExplain why stacks and queues are classified as ADTs.
- 1(b)6 marksDescribe the primary differences between stacks and queues, providing a real-life example to illustrate how each ADT can be used.
- 1(c)(i)7 marksWrite a C function to add an integer to a stack, with the stack and the integer value as arguments.
- 1(c)(ii)7 marksWrite a C function to add an integer to a queue, taking the queue and the integer to be added as arguments.
- 1(d)3 marksLetters A, C, X, and E have been added to a stack in that order. Draw a diagram showing how letter C can be removed from the stack, showing the stack's contents at each stage.
- 2(a)6 marksDraw the array after the first, second, and third passes of selection sort (3 diagrams total).
- 2(b)(i)3 marksDraw a diagram to show the linked list.
- 2(b)(ii)4 marksExplain how to delete the integer 3 from the linked list.
- 2(c)(i)2 marksWrite code to obtain the value of an integer, target, from the user.
- 2(c)(ii)10 marksWrite code to search for target in the sorted array numbers using binary search. Print its location if found; otherwise print -1.
- 3(a)2 marksExplain the rapid prototyping approach to systems development.
- 3(b)2 marksDescribe the main challenge that the rapid prototyping approach seeks to overcome.
- 3(c)8 marksExplain four reasons why some systems analysts believe the entire systems development life cycle can be initiated and completed during the maintenance phase.
- 3(d)13 marksDraw a Level-0 data flow diagram (DFD) to represent the flow of data described in the clinic scenario.
- 4(a)3 marksExplain why data flow diagrams are developed during both the analysis phase and the design phase of the system development life cycle.
- 4(b)3 marksState three benefits of the object-oriented approach to software design.
- 4(c)4 marksDescribe two major deliverables resulting from the design phase of the system development life cycle.
- 4(d)15 marksDraw an entity-relationship (ER) model for the company scenario, naming relationships and clearly indicating cardinality and all given attributes.
- 5(a)4 marksBriefly describe two advantages of a client/server network over a peer-to-peer network.
- 5(b)(i)2 marksExplain what is meant by the term 'firewall'.
- 5(b)(ii)2 marksExplain why firewall software needs to be frequently updated.
- 5(c)2 marksState two differences between FDDI and Ethernet network architectures.
- 5(d)4 marksBriefly explain the role of the network and transport layers in the OSI network model.
- 5(e)3 marksOutline three reasons why many users prefer wireless routers over wired routers.
- 5(f)(i)2 marksExplain the purpose of GPRS.
- 5(f)(ii)6 marksName and describe two applications that use GPRS.
- 6(a)3 marksCarefully explain the role of a device driver in an operating system.
- 6(b)3 marksExplain the meaning of the term 'spooling' in the context of computer systems.
- 6(c)4 marksOutline two advantages of a menu interface over a command line interface.
- 6(d)4 marksBriefly describe two components of a process control block (PCB) in an operating system.
- 6(e)4 marksBesides passwords, explain two other ways in which files can be protected from unauthorized access.
- 6(f)3 marksExplain how processes are scheduled using round-robin scheduling.
- 6(g)4 marksExplain how an interrupt is handled by the processor in a computer.