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
Document preview thumbnail
Preview 3 out of 17 pages
Lecture notes

GCSE OCR Computer Science Paper 2 Revision Notes

Document preview thumbnail
Preview 3 out of 17 pages

Revision notes created by Grade 9 students upon the entire paper 2 content, which is summarised yet provides concise insights to the hardest parts of the spec

Content preview

Matilda Baines GCSE Computer Science Year 11




GCSE COMPUTER
SCIENCE REVISION
Paper 2 – Programming & Logic




0

,Matilda Baines GCSE Computer Science Year 11


Computational Thinking
Algorithms are sets of instructions for solving a problem or completing a task. To solve a
problem, you would use algorithmic thinking to come up with steps to accomplish the task,
some of the ways in which we make it easier to solve the issue include:
Abstraction involves removing unnecessary detail from a problem so that you can focus on
the essential components.
Decomposition involves breaking down a large problem into
smaller sub-problems. This can then be broken down
further to make it more manageable. You can use a
structure diagram to illustrate this dividing of
problems.




Sequence & Selection
Within programming, there are basic program structures such as sequence, selection and
iteration.
Variable = a memory location that stores a value or data and it can change, depending on
conditions or on information passed into the program.
Constant = a memory location that stores a value or data and it cannot change throughout
the program. It will be always equal to this one value.
All programs follow a series of steps to be followed in a sequence. A basic example of this is:
score1 = int(input(“Enter a score for Round 1: ”)) Basically, sequence is just
score2 = int(input(“Enter a score for Round 2: ”)) following the program in a
chronological way, unless there
print(“The average score is” , (score1+score2)/2) are subroutines
Selection is where a section of code will only if a condition is met. Examples of this in
programming are IF statements. A data type that selects is Boolean: something is either
True or False.
if answer == “a” then
print (“Apple”)
elseif answer == “b” then
print (“Banana”)
else
print (“Nope”)




1

, Matilda Baines GCSE Computer Science Year 11


Iteration
Iteration means the repetition of a section of code, with there being three main types
including:
 for … next
 while … endwhile
 do … until

Iteration enables programmers to greatly simplify a program. Instead of writing out the
same lines of code again and again, a programmer can write a section of code once, and ask
the program to execute it again and again until it is no longer needed.




Flowcharts




A flowchart is a diagram that shows an overview of a program. Flowcharts normally use
standard symbols to represent the different types of instructions. These symbols are used to
construct the flowchart and show the step-by-step solution to the problem. Flowcharts are
sometimes known as flow diagrams.




2

Document information

Study
School year
1
Uploaded on
February 9, 2025
Number of pages
17
Written in
2023/2024
Type
Lecture notes
Professor(s)
N/a
Contains
All classes
£4.29

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

Sold
0
Followers
0
Items
26
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed 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