Quelpr

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

Testing a C program that searches for an integer target in an unsorted 20-element array num and reports its location or an error.

Briefly describe THREE tests that can be conducted to verify that the search code functions correctly.

The mark scheme is shown once you've answered.

Practise this question

Other parts of this question

  1. 4(a)(i)Define functional requirements.[2 marks]
  2. 4(a)(ii)Discuss how functional requirements are obtained during the analysis phase of a software system.[3 marks]
  3. 4(b)Draw an entity-relationship (ER) model representing the described hospital scenario.[14 marks]

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