Quelpr

CAPE Computer Science Unit 2 · 2010 · Paper 2 · Question 4(c)

Consider a linear search function lsearch(arr, n, key) returning the index of key or -1. Briefly describe THREE tests which can be used to determine if lsearch is working correctly.

The mark scheme is shown once you've answered.

Practise this question

Other parts of this question

  1. 4(a)(i)State TWO reasons why a feasibility study is undertaken.[2 marks]
  2. 4(a)(ii)Describe the contents of the requirements specification document.[3 marks]
  3. 4(b)Draw an entity-relationship model for the described organisation scenario involving departments, employees, skills, projects, and tasks.[14 marks]

More practice: the rest of this paper · more Implementation, Testing, and Maintenance questions · all CAPE Computer Science Unit 2 past papers