CAPE Computer Science Unit 2 · 2006 · Paper 1
38 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 what is meant by a software development process.
- 1(b)6 marksDescribe THREE major stages of the waterfall model.
- 1(c)2 marksOutline a major weakness of the waterfall model.
- 2(a)4 marksExplain what is involved in conducting interviews and administering questionnaires to collect information during the analysis phase.
- 2(b)2 marksSunil prefers interviews to obtain the required information. Provide ONE reason supporting his argument.
- 2(c)4 marksCamille considers questionnaires more suitable. Provide TWO reasons supporting her argument.
- 3(a)2 marksBriefly explain what a CASE tool is.
- 3(b)6 marksDescribe THREE ways a CASE tool can be utilised in a software process.
- 3(c)2 marksState ONE advantage and ONE disadvantage of using a CASE tool.
- 4(a)2 marksExplain what occurs during system structuring.
- 4(b)1 markState what occurs during modular decomposition.
- 4(c)4 marksDistinguish between a sub-system and a module.
- 4(d)3 marksDescribe the output generated from architectural design.
- 5(a)6 marksOutline THREE guidelines for designing an effective user interface.
- 5(b)4 marksBriefly describe TWO guidelines for designing a report.
- 6(a)4 marksDraw a class diagram representing this Account class.
- 6(b)2 marksExplain how a Customer object C can send a withdraw message to an associated Account object A.
- 6(c)4 marksExplain the meaning of inheritance in object-oriented programming.
- 7(a)(i)2 marksDistinguish between an object and a class.
- 7(a)(ii)2 marksDistinguish between a private method and a public method.
- 7(a)(iii)2 marksDistinguish between accessor (getter) and mutator (setter) methods.
- 7(b)2 marksExplain encapsulation in object-oriented programming.
- 7(c)2 marksExplain why public instance variables violate encapsulation.
- 8(a)2 marksIdentify TWO ways of categorizing programming languages other than by generations.
- 8(b)4 marksState TWO reasons why a compiler is preferred over an interpreter.
- 8(c)4 marksState FOUR criteria to consider when choosing a high-level programming language for problem solving.
- 910 marksTrace the execution of the algorithm and draw the exact output produced.
- 10(a)5 marksWrite an algorithm to solve this problem using bounded iteration.
- 10(b)5 marksWrite an algorithm to solve this problem using unbounded iteration.
- 1110 marksDraw a clearly labelled dialog box for this task containing at least one textfield, window, font, label, and button.
- 12(a)1 markIdentify the first number inserted into Q1.
- 12(b)2 marksState TWO ADT operations of a queue.
- 12(c)5 marksWrite an algorithm using only queue ADT operations to remove all elements from Q1 and insert them into an initially empty queue Q2.
- 12(d)2 marksDraw a diagram showing the elements of Q2 after three elements have been transferred from Q1 to Q2.
- 1310 marksWrite code in an object-oriented programming language of your choice defining the Job class, including an appropriate constructor.
- 14(a)4 marksName FOUR tools provided in a typical programming environment besides a tracer.
- 14(b)6 marksBriefly explain how THREE of the tools named in 14(a) assist in program development.
- 1510 marksUsing only stack ADT operations, write an algorithm to calculate the sum of every other element in S.