Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary Complete GCSE OCR Computer Science Paper 2 Revision Notes

Rating
-
Sold
-
Pages
6
Uploaded on
22-06-2026
Written in
2023/2024

Complete summary of everything you need to know for GCSE Computer Science Paper 2 for getting a grade 9. Very easy to follow and improve confidence. Goes through all programming information you need to know following the specification guidelines set by OCR.

Show more Read less
Institution
Course

Content preview

Input validation
With examples of program:

• Range check + checks upper and lower boundaries + to make sure the input is between
sensible limits

• Type check + ensures the data inputted is of the correct data type + to make sure the
input is an integer/string/float/Boolean

• Presence check + ensure a value is inputted + not left blank

• Length check + limits number of characters that can be input + checks minimum and
maximum string length

• Format check - ensures the data inputted follows a set pattern + checks input consists
of only a certain number of digits

• Look up / table check + ensures that the data inputted is one from an allowed set of
values + checking that the input is one of the values inclusive

Types of errors

• Syntax error + error in the rules and grammar of the program language + program does
not fully run + program does not fully execute

• Logic error + produces incorrect/unexpected output + program still runs + program
does not crash

Sorting algorithms

• Purpose of temporary variable in sorting algorithms is to store and hold a value/data +
so the value can be swapped/overwritten + without being lost

• Insertion sort + starts on the second value + inserts values one at a time into correct
position until all items checked + inserts value once + creates a sorted array within an
array + completes insertion sort in one pass through the array + more efficient/faster
than bubble sort because fewer iterations/comparisons on average

• Bubble sort + compares and swaps pairs of values + value is repeatedly moved and
swapped until in correct position + needs multiple passes + will complete a final iteration
once sorted to check that no swaps are needed + end of array becomes sorted first +
moves highest value to the top + easier/faster to implement than other sorting
algorithms + less efficient/slower than insertion sort on large sets of values due to more
iterations/comparisons on average

, • Both bubble sort and insertion sort + both start by comparing first two values + both
produce a sorted list + both work from left to right + both compare pairs of values +
both swap values + both use loops + both may need multiple passes + both require a
temporary variable + both typically less efficient + both slower than merge sort + both
slow for large unsorted lists

• Binary search + select middle number + check if selected number is equal to target
number + if equal then end search + else if searched number is larger then discard left
half + if searched number is smaller then discard right half + repeat until number found +
repeat until remaining list is 0 and number not found

• Linear search + starting with the first value + check all values in order

• Binary search + more efficient than linear search + less time taken for larger lists

• Merge sort + list split into individual elements + individual elements merged into
sorted lists of size two + lists of size two merged into sorted lists of size four + lists of size
four merged into final sorted list + consistent running time for lists of same length +
doesn’t depend on how ordered original list is + faster/quicker to sort more large/more
unordered lists + more efficient than bubble/insertion sorts




Testing
• Testing important + checks program works as intended + checks whether program
gives correct output + checks for errors so errors can be identified + ensures
improvements can be made as a result of testing to ensure no problems + for defensive
design considerations to anticipate misuse

• Final/terminal testing + completed at the end of the development of the program +
tests the product as a whole

• Iterative testing + completed during development + after each module is completed +
tests each module in isolation

Written for

Institution
Study
Course
School year
1

Document information

Uploaded on
June 22, 2026
Number of pages
6
Written in
2023/2024
Type
SUMMARY

Subjects

$5.27
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
ashvikathavaseelan

Get to know the seller

Seller avatar
ashvikathavaseelan Townley
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
3
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions