Standard Algorithms, Validation, Testing and Trace Tables - Cambridge IGCSE Class 10 Computer Science Notes, Diagrams and Solved Questions

The standard methods every IGCSE programmer must know (totalling, counting, maximum, minimum, average, linear search and bubble sort), plus validation and verification checks, choosing normal, abnormal, extreme and boundary test data, and completing trace tables, in pseudocode, Python and Java.

In this chapter

  • Totalling and counting inside loops
  • Finding the maximum, minimum and average
  • Linear search, stepped through item by item
  • Bubble sort with a swap flag, pass by pass
  • Validation checks (range, length, type, presence, format, check digit) and verification (visual check, double entry)
  • Choosing normal, abnormal, extreme and boundary test data
  • Completing trace tables for a dry run
  • Check digits, the work done by search and sort, and combining methods