Subjects

Chat

Open the App

Subjects

Computer ScienceComputer Science844 views·Updated Jun 16, 2026·6 pages

OCR A Level Computer Science 2.2 Notes: PDF, GCSE, Past Papers, Guide

OCR A Level Computer Scienceprogramming fundamentals and computational methods...

1
of 6
2

Component 2.2 revision notes

? Programming constructs

*   sequence - when a set of program instructions are written one after another a

Variables and Subroutines

This section covers local and global variables, as well as subroutines, functions, and procedures in OCR A Level Computer Science.

Global and Local Variables

The document contrasts local and global variables:

Local variables:

  • Accessible only within specific program parts
  • Can have same identifier in different subroutines
  • Memory released after subroutine finishes

Global variables:

  • Accessible anywhere in the program
  • Preserved in memory until program ends
  • Can make debugging more difficult

Definition: A global variable in computer science is accessible anywhere in a program for its entire execution.

Subroutines, Functions, and Procedures

The text defines and explains:

  • Subroutines: Named code sections callable by name
  • Procedures: Sets of instructions executed when called
  • Functions: Like procedures, but return a value

Benefits of subroutines include improved readability, reusability, and easier testing.

Highlight: Understanding the difference between global and local variables is crucial for effective programming in OCR A Level Computer Science.

Parameters and Arguments

The document explains:

  • Parameters: Data passed to subroutines
  • Arguments: Actual data pieces passed
  • Passing by value vs. passing by reference
2
of 6
2

Component 2.2 revision notes

? Programming constructs

*   sequence - when a set of program instructions are written one after another a

Integrated Development Environments and Object-Oriented Programming

This section covers IDEs and introduces object-oriented programming concepts for OCR A Level Computer Science.

Integrated Development Environment (IDE)

The document lists key features of IDEs:

  • Text editors
  • Autocomplete
  • Automatic formatting
  • Keyword highlighting
  • Automatic line numbering
  • Syntax checking
  • Runtime environment
  • Debugging tools

Vocabulary: An IDE (Integrated Development Environment) is a software suite that consolidates basic tools for software development.

Object-Oriented Programming (OOP)

The text introduces OOP concepts:

  • Objects: Real-world things in everyday life
  • Attributes: Data items describing objects
  • Methods: Operations a class can execute
  • Class: Blueprint defining properties of objects
  • Instantiation: Creating an object from a class definition

Definition: Encapsulation in OOP binds attributes and methods, protecting data.

The document also mentions:

  • Getter and setter methods
  • Inheritance
  • Polymorphism
3
of 6
2

Component 2.2 revision notes

? Programming constructs

*   sequence - when a set of program instructions are written one after another a

Computational Methods

This final section briefly touches on computational methods in OCR A Level Computer Science.

The document states that to solve a problem using computational methods, it must be:

  1. Clearly defined
  2. Computable
  3. Solvable

Highlight: Understanding computational methods is crucial for problem-solving in OCR A Level Computer Science.

This concludes the summary of key concepts covered in the OCR A Level Computer Science 2.2 revision notes PDF.

4
of 6
2

Component 2.2 revision notes

? Programming constructs

*   sequence - when a set of program instructions are written one after another a

Object-Oriented Programming Fundamentals

This page introduces core object-oriented programming concepts essential for OCR A Level Computer Science.

Definition: Object-oriented programming is a programming paradigm based on objects containing data and code.

Key concepts include:

  • Objects and classes
  • Attributes and methods
  • Instantiation process
  • Encapsulation principles

Highlight: Understanding OOP concepts is crucial for modern software development and OCR A Level Computer Science Paper 2.

5
of 6
2

Component 2.2 revision notes

? Programming constructs

*   sequence - when a set of program instructions are written one after another a

Advanced OOP and Computational Methods

This final section covers advanced OOP concepts and computational problem-solving approaches.

Definition: Inheritance allows creation of new classes that reuse, extend, or modify behaviors defined in other classes.

The content covers:

  • Inheritance implementation
  • Polymorphism concepts
  • Computational problem-solving requirements
  • Problem definition and solvability

Highlight: These concepts are frequently tested in OCR A Level Computer Science past papers.

6
of 6
2

Component 2.2 revision notes

? Programming constructs

*   sequence - when a set of program instructions are written one after another a

Programming Constructs and Recursion

This section covers fundamental programming constructs and introduces recursion in OCR A Level Computer Science.

Sequence, Iteration, and Selection

The document outlines three key programming constructs:

  1. Sequence - Instructions executed in order
  2. Iteration - Repeating instructions based on conditions or counts
  3. Selection - Executing code based on true/false conditions

Vocabulary: Condition-controlled iteration repeats instructions based on a true/false condition.

Example: While loops are an example of condition controlled iteration in OCR A Level Computer Science.

Types of Loops

The text describes several types of loops:

  • For loops countcontrolledcount-controlled
  • While loops conditioncontrolledcondition-controlled
  • Do-while loops
  • Repeat-until loops
  • Nested loops

Recursion

Recursion is introduced as a subroutine calling itself. Key points include:

  • Uses a stack
  • Requires a base case and general case
  • Parameters passed by value

Example: A recursive function to sum numbers from 1 to n is provided as an example for OCR computer science.

The document compares pros and cons of recursion:

Pros:

  • Fewer lines of code
  • Natural for recursive data structures

Cons:

  • Harder to trace
  • Uses more memory
  • Slower due to stack operations

We thought you’d never ask...

What is the Knowunity AI companion?

Our AI Companion is a student-focused AI tool that offers more than just answers. Built on millions of Knowunity resources, it provides relevant information, personalised study plans, quizzes, and content directly in the chat, adapting to your individual learning journey.

Where can I download the Knowunity app?

You can download the app from Google Play Store and Apple App Store.

Is Knowunity really free of charge?

That's right! Enjoy free access to study content, connect with fellow students, and get instant help – all at your fingertips.

Most popular content in Computer Science

9
Computer ScienceComputer Science

GCSE Computer Science Overview

Comprehensive study material for OCR GCSE Computer Science covering key topics such as computer architecture, network security, programming techniques, and ethical considerations. Ideal for exam preparation, this resource includes essential concepts, exam questions, and definitions to enhance understanding and retention.

97,876304
C
Computer ScienceComputer Science

Computer Science quiz

Purpose, Components and functions of CPU. Also von neuman architecture

106384
Computer ScienceComputer Science

GCSE Computer Science Revision

Comprehensive revision notes for OCR GCSE Computer Science Component 1 (J277). Covers key topics including networking, cybersecurity, data compression, computer architecture, and ethical issues. Ideal for exam preparation and understanding core concepts. Access original slides for further details.

104,827150
Computer ScienceComputer Science

GCSE Computer Science // Revision Notes

Concise revision notes for the GCSE OCR computer science specification (J277). Contains all the info needed for paper 1. Paper 2 is in my bio.

104676
C
Computer ScienceComputer Science

computing quiz for

good luck

101250
C
Computer ScienceComputer Science

computer science,geography

this will help you revise for when you are next tested on these questions this will also help you to remember

71941
Computer ScienceComputer Science

GCSE Computer Science Algorithms

Comprehensive overview of algorithms for AQA GCSE Computer Science Paper 1, covering key concepts such as sorting (Bubble Sort, Merge Sort), searching (Linear and Binary Search), and essential programming principles like data types, pseudocode, and flowcharts. Ideal for exam preparation and understanding algorithm efficiency.

1075756
C
Computer ScienceComputer Science

cs ocr

Level up your computer science knowledge with this comprehensive flashcard set designed for grade 11 students. Dive deep into complex concepts and ace your exams!

115260
Computer ScienceComputer Science

AQA GCSE Computer Science Overview

Comprehensive revision notes covering the AQA GCSE Computer Science curriculum, including key topics such as computer memory, cybersecurity, programming concepts, network protocols, and data representation. Ideal for exam preparation and understanding core concepts in computing.

105,360216

Most popular content

9
SociologySociology

Sociology of Education Overview

Explore comprehensive A-Level Sociology notes on the education system, covering key theories, policies, and sociological perspectives. This resource includes insights on marketisation, gender roles, cultural deprivation, and educational inequalities, providing a thorough understanding of how education shapes social stratification and individual achievement. Ideal for exam preparation and in-depth study.

12102,8473,040
SociologySociology

Sociology of Families: Comprehensive Revision

Dive into an extensive overview of family dynamics, perspectives, and patterns in sociology. This resource covers key concepts such as family diversity, gender roles, marriage, and the impact of social policies on family structures. Perfect for A-Level Sociology students preparing for Paper 2.

1273,6522,307
CriminologyCriminology

Criminology: Crime & Punishment Overview

Comprehensive mindmaps covering key concepts in the Crime and Punishment topic for WJEC Criminology Unit 4. This resource includes detailed insights into the Criminal Justice System, crime prevention strategies, sentencing models, and the roles of various agencies. Ideal for A-Level revision, ensuring you grasp essential theories and legislative processes to excel in your exams.

1254,8691,059
SociologySociology

Comprehensive Crime & Deviance Overview

Explore an extensive revision of crime and deviance topics, including theories, types of crime, and the impact of media. This resource covers key concepts such as Marxism, functionalism, gender and crime, and the influence of globalization on criminal behavior. Ideal for students seeking a thorough understanding of criminology and its various theories. Type: Full Topic Revision.

1251,6511,399
C
BiologyBiology

Cell Biology and Cell structure

cell structures

93,2380
English LiteratureEnglish Literature

An Inspector Calls: Character Insights

Explore in-depth analysis and key quotes for characters in J.B. Priestley's 'An Inspector Calls'. This resource covers Gerald Croft, Inspector Goole, Sheila Birling, Mrs. Birling, Eric Birling, and Eva Smith, focusing on themes of class, gender roles, and social responsibility. Ideal for students aiming for Grade 8 and above.

1025,426907
CriminologyCriminology

WJEC Unit 4 Criminology

Criminology unit 4 detailed revision note

127,150125
CriminologyCriminology

Criminology Theories Overview

Explore key criminology theories and their implications on crime and deviance. This comprehensive summary covers biological, psychological, and sociological perspectives, including labelling theory, right realism, and the impact of social campaigns on policy development. Ideal for A-Level criminology students seeking to understand the complexities of criminal behaviour and the factors influencing crime prevention strategies.

129,760210
English LiteratureEnglish Literature

Romeo and Juliet: Key themes

Key Romeo and Juliet themes and analysed quotes

106,705198

Can't find what you're looking for? Explore other subjects.

Students love us — and so will you.

4.6/5App Store
4.7/5Google Play

The app is very easy to use and well designed. I have found everything I was looking for so far and have been able to learn a lot from the presentations! I will definitely use the app for a class assignment! And of course it also helps a lot as an inspiration.

Stefan SiOS user

This app is really great. There are so many study notes and help [...]. My problem subject is French, for example, and the app has so many options for help. Thanks to this app, I have improved my French. I would recommend it to anyone.

Samantha KlichAndroid user

Wow, I am really amazed. I just tried the app because I've seen it advertised many times and was absolutely stunned. This app is THE HELP you want for school and above all, it offers so many things, such as workouts and fact sheets, which have been VERY helpful to me personally.

AnnaiOS user

Computer ScienceComputer Science844 views·Updated Jun 16, 2026·6 pages

OCR A Level Computer Science 2.2 Notes: PDF, GCSE, Past Papers, Guide

OCR A Level Computer Science programming fundamentals and computational methods explained in detail, focusing on key programming constructs, variable scoping, and object-oriented concepts.

Key points:

  • Covers essential programming constructs including sequence, iteration, and selection
  • Explains recursion implementation and trade-offs
  • Details...
1
of 6
2

Component 2.2 revision notes

? Programming constructs

*   sequence - when a set of program instructions are written one after another a

Sign up to see the content. It's free!

  • Access to all documents
  • Improve your grades
  • Join milions of students

Variables and Subroutines

This section covers local and global variables, as well as subroutines, functions, and procedures in OCR A Level Computer Science.

Global and Local Variables

The document contrasts local and global variables:

Local variables:

  • Accessible only within specific program parts
  • Can have same identifier in different subroutines
  • Memory released after subroutine finishes

Global variables:

  • Accessible anywhere in the program
  • Preserved in memory until program ends
  • Can make debugging more difficult

Definition: A global variable in computer science is accessible anywhere in a program for its entire execution.

Subroutines, Functions, and Procedures

The text defines and explains:

  • Subroutines: Named code sections callable by name
  • Procedures: Sets of instructions executed when called
  • Functions: Like procedures, but return a value

Benefits of subroutines include improved readability, reusability, and easier testing.

Highlight: Understanding the difference between global and local variables is crucial for effective programming in OCR A Level Computer Science.

Parameters and Arguments

The document explains:

  • Parameters: Data passed to subroutines
  • Arguments: Actual data pieces passed
  • Passing by value vs. passing by reference
2
of 6
2

Component 2.2 revision notes

? Programming constructs

*   sequence - when a set of program instructions are written one after another a

Sign up to see the content. It's free!

  • Access to all documents
  • Improve your grades
  • Join milions of students

Integrated Development Environments and Object-Oriented Programming

This section covers IDEs and introduces object-oriented programming concepts for OCR A Level Computer Science.

Integrated Development Environment (IDE)

The document lists key features of IDEs:

  • Text editors
  • Autocomplete
  • Automatic formatting
  • Keyword highlighting
  • Automatic line numbering
  • Syntax checking
  • Runtime environment
  • Debugging tools

Vocabulary: An IDE (Integrated Development Environment) is a software suite that consolidates basic tools for software development.

Object-Oriented Programming (OOP)

The text introduces OOP concepts:

  • Objects: Real-world things in everyday life
  • Attributes: Data items describing objects
  • Methods: Operations a class can execute
  • Class: Blueprint defining properties of objects
  • Instantiation: Creating an object from a class definition

Definition: Encapsulation in OOP binds attributes and methods, protecting data.

The document also mentions:

  • Getter and setter methods
  • Inheritance
  • Polymorphism
3
of 6
2

Component 2.2 revision notes

? Programming constructs

*   sequence - when a set of program instructions are written one after another a

Sign up to see the content. It's free!

  • Access to all documents
  • Improve your grades
  • Join milions of students

Computational Methods

This final section briefly touches on computational methods in OCR A Level Computer Science.

The document states that to solve a problem using computational methods, it must be:

  1. Clearly defined
  2. Computable
  3. Solvable

Highlight: Understanding computational methods is crucial for problem-solving in OCR A Level Computer Science.

This concludes the summary of key concepts covered in the OCR A Level Computer Science 2.2 revision notes PDF.

4
of 6
2

Component 2.2 revision notes

? Programming constructs

*   sequence - when a set of program instructions are written one after another a

Sign up to see the content. It's free!

  • Access to all documents
  • Improve your grades
  • Join milions of students

Object-Oriented Programming Fundamentals

This page introduces core object-oriented programming concepts essential for OCR A Level Computer Science.

Definition: Object-oriented programming is a programming paradigm based on objects containing data and code.

Key concepts include:

  • Objects and classes
  • Attributes and methods
  • Instantiation process
  • Encapsulation principles

Highlight: Understanding OOP concepts is crucial for modern software development and OCR A Level Computer Science Paper 2.

5
of 6
2

Component 2.2 revision notes

? Programming constructs

*   sequence - when a set of program instructions are written one after another a

Sign up to see the content. It's free!

  • Access to all documents
  • Improve your grades
  • Join milions of students

Advanced OOP and Computational Methods

This final section covers advanced OOP concepts and computational problem-solving approaches.

Definition: Inheritance allows creation of new classes that reuse, extend, or modify behaviors defined in other classes.

The content covers:

  • Inheritance implementation
  • Polymorphism concepts
  • Computational problem-solving requirements
  • Problem definition and solvability

Highlight: These concepts are frequently tested in OCR A Level Computer Science past papers.

6
of 6
2

Component 2.2 revision notes

? Programming constructs

*   sequence - when a set of program instructions are written one after another a

Sign up to see the content. It's free!

  • Access to all documents
  • Improve your grades
  • Join milions of students

Programming Constructs and Recursion

This section covers fundamental programming constructs and introduces recursion in OCR A Level Computer Science.

Sequence, Iteration, and Selection

The document outlines three key programming constructs:

  1. Sequence - Instructions executed in order
  2. Iteration - Repeating instructions based on conditions or counts
  3. Selection - Executing code based on true/false conditions

Vocabulary: Condition-controlled iteration repeats instructions based on a true/false condition.

Example: While loops are an example of condition controlled iteration in OCR A Level Computer Science.

Types of Loops

The text describes several types of loops:

  • For loops countcontrolledcount-controlled
  • While loops conditioncontrolledcondition-controlled
  • Do-while loops
  • Repeat-until loops
  • Nested loops

Recursion

Recursion is introduced as a subroutine calling itself. Key points include:

  • Uses a stack
  • Requires a base case and general case
  • Parameters passed by value

Example: A recursive function to sum numbers from 1 to n is provided as an example for OCR computer science.

The document compares pros and cons of recursion:

Pros:

  • Fewer lines of code
  • Natural for recursive data structures

Cons:

  • Harder to trace
  • Uses more memory
  • Slower due to stack operations

We thought you’d never ask...

What is the Knowunity AI companion?

Our AI Companion is a student-focused AI tool that offers more than just answers. Built on millions of Knowunity resources, it provides relevant information, personalised study plans, quizzes, and content directly in the chat, adapting to your individual learning journey.

Where can I download the Knowunity app?

You can download the app from Google Play Store and Apple App Store.

Is Knowunity really free of charge?

That's right! Enjoy free access to study content, connect with fellow students, and get instant help – all at your fingertips.

Most popular content in Computer Science

9
Computer ScienceComputer Science

GCSE Computer Science Overview

Comprehensive study material for OCR GCSE Computer Science covering key topics such as computer architecture, network security, programming techniques, and ethical considerations. Ideal for exam preparation, this resource includes essential concepts, exam questions, and definitions to enhance understanding and retention.

97,876304
C
Computer ScienceComputer Science

Computer Science quiz

Purpose, Components and functions of CPU. Also von neuman architecture

106384
Computer ScienceComputer Science

GCSE Computer Science Revision

Comprehensive revision notes for OCR GCSE Computer Science Component 1 (J277). Covers key topics including networking, cybersecurity, data compression, computer architecture, and ethical issues. Ideal for exam preparation and understanding core concepts. Access original slides for further details.

104,827150
Computer ScienceComputer Science

GCSE Computer Science // Revision Notes

Concise revision notes for the GCSE OCR computer science specification (J277). Contains all the info needed for paper 1. Paper 2 is in my bio.

104676
C
Computer ScienceComputer Science

computing quiz for

good luck

101250
C
Computer ScienceComputer Science

computer science,geography

this will help you revise for when you are next tested on these questions this will also help you to remember

71941
Computer ScienceComputer Science

GCSE Computer Science Algorithms

Comprehensive overview of algorithms for AQA GCSE Computer Science Paper 1, covering key concepts such as sorting (Bubble Sort, Merge Sort), searching (Linear and Binary Search), and essential programming principles like data types, pseudocode, and flowcharts. Ideal for exam preparation and understanding algorithm efficiency.

1075756
C
Computer ScienceComputer Science

cs ocr

Level up your computer science knowledge with this comprehensive flashcard set designed for grade 11 students. Dive deep into complex concepts and ace your exams!

115260
Computer ScienceComputer Science

AQA GCSE Computer Science Overview

Comprehensive revision notes covering the AQA GCSE Computer Science curriculum, including key topics such as computer memory, cybersecurity, programming concepts, network protocols, and data representation. Ideal for exam preparation and understanding core concepts in computing.

105,360216

Most popular content

9
SociologySociology

Sociology of Education Overview

Explore comprehensive A-Level Sociology notes on the education system, covering key theories, policies, and sociological perspectives. This resource includes insights on marketisation, gender roles, cultural deprivation, and educational inequalities, providing a thorough understanding of how education shapes social stratification and individual achievement. Ideal for exam preparation and in-depth study.

12102,8473,040
SociologySociology

Sociology of Families: Comprehensive Revision

Dive into an extensive overview of family dynamics, perspectives, and patterns in sociology. This resource covers key concepts such as family diversity, gender roles, marriage, and the impact of social policies on family structures. Perfect for A-Level Sociology students preparing for Paper 2.

1273,6522,307
CriminologyCriminology

Criminology: Crime & Punishment Overview

Comprehensive mindmaps covering key concepts in the Crime and Punishment topic for WJEC Criminology Unit 4. This resource includes detailed insights into the Criminal Justice System, crime prevention strategies, sentencing models, and the roles of various agencies. Ideal for A-Level revision, ensuring you grasp essential theories and legislative processes to excel in your exams.

1254,8691,059
SociologySociology

Comprehensive Crime & Deviance Overview

Explore an extensive revision of crime and deviance topics, including theories, types of crime, and the impact of media. This resource covers key concepts such as Marxism, functionalism, gender and crime, and the influence of globalization on criminal behavior. Ideal for students seeking a thorough understanding of criminology and its various theories. Type: Full Topic Revision.

1251,6511,399
C
BiologyBiology

Cell Biology and Cell structure

cell structures

93,2380
English LiteratureEnglish Literature

An Inspector Calls: Character Insights

Explore in-depth analysis and key quotes for characters in J.B. Priestley's 'An Inspector Calls'. This resource covers Gerald Croft, Inspector Goole, Sheila Birling, Mrs. Birling, Eric Birling, and Eva Smith, focusing on themes of class, gender roles, and social responsibility. Ideal for students aiming for Grade 8 and above.

1025,426907
CriminologyCriminology

WJEC Unit 4 Criminology

Criminology unit 4 detailed revision note

127,150125
CriminologyCriminology

Criminology Theories Overview

Explore key criminology theories and their implications on crime and deviance. This comprehensive summary covers biological, psychological, and sociological perspectives, including labelling theory, right realism, and the impact of social campaigns on policy development. Ideal for A-Level criminology students seeking to understand the complexities of criminal behaviour and the factors influencing crime prevention strategies.

129,760210
English LiteratureEnglish Literature

Romeo and Juliet: Key themes

Key Romeo and Juliet themes and analysed quotes

106,705198

Can't find what you're looking for? Explore other subjects.

Students love us — and so will you.

4.6/5App Store
4.7/5Google Play

The app is very easy to use and well designed. I have found everything I was looking for so far and have been able to learn a lot from the presentations! I will definitely use the app for a class assignment! And of course it also helps a lot as an inspiration.

Stefan SiOS user

This app is really great. There are so many study notes and help [...]. My problem subject is French, for example, and the app has so many options for help. Thanks to this app, I have improved my French. I would recommend it to anyone.

Samantha KlichAndroid user

Wow, I am really amazed. I just tried the app because I've seen it advertised many times and was absolutely stunned. This app is THE HELP you want for school and above all, it offers so many things, such as workouts and fact sheets, which have been VERY helpful to me personally.

AnnaiOS user