OCR A Level Computer Science Paper 2
Abstraction - ANS the process of removing any excessive details from a problem, arriving at a
representation of said problem that consists only of its key features.
Representional Abstraction - ANS Analysing what is relevant to a given scenario and simplifying a
problem based on this information
Abstraction by Generalisation - ANS Grouping together similarities within a problem to identify what
kind of problem it is. This allows different problems to be categorised as being a particular type, and
solved using a common solution.
Data Abstraction - ANS Details about how data is being stored are hidden. Therefore programmers can
make use of abstract data structures such as stacks and queues without worrying about how they are
implemented.
Procedural Abstraction - ANS Programmers can perform functions (such as pushing and popping items
to and from stacks) without having any knowledge about the code used to implement this.
Abstraction Levels - ANS Higher levels are closer to the user (e.g. providing a UI for them) whereas the
lowest levels are further away (e.g. execution of machine code)
What is the purpose of abstraction in systems and models? - ANS It allows non-experts to utilize
systems/models by hiding complex or irrelevant information.
How does abstraction contribute to efficient software design? - ANS It enables programmers to focus on
essential elements, reducing project time by eliminating unnecessary details.
What are low-level programming languages? - ANS Languages like machine code that directly interact
with computers but are harder to write due to specific binary codes.
,What are high-level programming languages known for? - ANS Providing an abstraction for machine
code, making development easier with syntax similar to natural language.
What is the TCP/IP model's purpose? - ANS It serves as an abstraction for network functions, divided
into four layers to simplify understanding and communication.
Why is compatibility between layers crucial in the TCP/IP model? - ANS To ensure smooth
communication, standards are necessary to allow each layer to function independently while hiding
details of other layers.
What is a standard in the context of hardware or software? - ANS A set of specifications agreed upon by
academic and industry communities to ensure compatibility and functionality.
Abstraction vs Reality - ANS Real-world entities can be represented using computational structures, such
as tables and databases. Real-world values will often be stored as variables.
Thinking Ahead - ANS allows developers to consider problems or difficulties that may arise when the
software is used.
How is Thinking Ahead Used? - ANS consideration of what outputs are required of the solution, and
identify the inputs required and how these need to be processed to achieve the outputs after.
Satisfied Preconditions - ANS a subroutine can safely expect the arguments passed to meet certain
criteria.
Preconditions in Documentation - ANS For example, the factorial function, which can only be used with
positive numbers. Rather than checking the arguments, the documentation accompanying this function
will specify this.
, Caching - ANS the process of storing instructions or values in cache memory after they have been used,
as they may be used again.
Prefetching - ANS more advanced version of caching that involves algorithms predicting which
instructions are likely to be fetched soon. The instructions and data are then loaded and stored in cache
before they can be fetched
Limitations of Prefetching - ANS the accuracy of the algorithms used, as they can only provide an
informed prediction as to the instructions which are likely to be used. There is no guarantee that this will
be right.
Why are reusable program concepts important? - ANS They save time, money, and resources by
allowing components to be reused in multiple places.
What are examples of reusable components in software development? - ANS Implementations of
abstract data structures, classes, subroutines.
What is the advantage of using reusable components over newly-coded ones? - ANS Reusable
components are more reliable as they have been tested for bugs.
What is a potential drawback of integrating existing components developed by third parties? - ANS
Compatibility issues with the rest of the software may require costly modifications.
Thinking Procedurally - Decomposition - ANS involves taking the problem defined by the user and
breaking it down into its component parts.
Stepwise Refinement - ANS Higher levels provide a more brief overview of the problem, whereas lower
levels provide an increasingly more in-depth coverage.
Abstraction - ANS the process of removing any excessive details from a problem, arriving at a
representation of said problem that consists only of its key features.
Representional Abstraction - ANS Analysing what is relevant to a given scenario and simplifying a
problem based on this information
Abstraction by Generalisation - ANS Grouping together similarities within a problem to identify what
kind of problem it is. This allows different problems to be categorised as being a particular type, and
solved using a common solution.
Data Abstraction - ANS Details about how data is being stored are hidden. Therefore programmers can
make use of abstract data structures such as stacks and queues without worrying about how they are
implemented.
Procedural Abstraction - ANS Programmers can perform functions (such as pushing and popping items
to and from stacks) without having any knowledge about the code used to implement this.
Abstraction Levels - ANS Higher levels are closer to the user (e.g. providing a UI for them) whereas the
lowest levels are further away (e.g. execution of machine code)
What is the purpose of abstraction in systems and models? - ANS It allows non-experts to utilize
systems/models by hiding complex or irrelevant information.
How does abstraction contribute to efficient software design? - ANS It enables programmers to focus on
essential elements, reducing project time by eliminating unnecessary details.
What are low-level programming languages? - ANS Languages like machine code that directly interact
with computers but are harder to write due to specific binary codes.
,What are high-level programming languages known for? - ANS Providing an abstraction for machine
code, making development easier with syntax similar to natural language.
What is the TCP/IP model's purpose? - ANS It serves as an abstraction for network functions, divided
into four layers to simplify understanding and communication.
Why is compatibility between layers crucial in the TCP/IP model? - ANS To ensure smooth
communication, standards are necessary to allow each layer to function independently while hiding
details of other layers.
What is a standard in the context of hardware or software? - ANS A set of specifications agreed upon by
academic and industry communities to ensure compatibility and functionality.
Abstraction vs Reality - ANS Real-world entities can be represented using computational structures, such
as tables and databases. Real-world values will often be stored as variables.
Thinking Ahead - ANS allows developers to consider problems or difficulties that may arise when the
software is used.
How is Thinking Ahead Used? - ANS consideration of what outputs are required of the solution, and
identify the inputs required and how these need to be processed to achieve the outputs after.
Satisfied Preconditions - ANS a subroutine can safely expect the arguments passed to meet certain
criteria.
Preconditions in Documentation - ANS For example, the factorial function, which can only be used with
positive numbers. Rather than checking the arguments, the documentation accompanying this function
will specify this.
, Caching - ANS the process of storing instructions or values in cache memory after they have been used,
as they may be used again.
Prefetching - ANS more advanced version of caching that involves algorithms predicting which
instructions are likely to be fetched soon. The instructions and data are then loaded and stored in cache
before they can be fetched
Limitations of Prefetching - ANS the accuracy of the algorithms used, as they can only provide an
informed prediction as to the instructions which are likely to be used. There is no guarantee that this will
be right.
Why are reusable program concepts important? - ANS They save time, money, and resources by
allowing components to be reused in multiple places.
What are examples of reusable components in software development? - ANS Implementations of
abstract data structures, classes, subroutines.
What is the advantage of using reusable components over newly-coded ones? - ANS Reusable
components are more reliable as they have been tested for bugs.
What is a potential drawback of integrating existing components developed by third parties? - ANS
Compatibility issues with the rest of the software may require costly modifications.
Thinking Procedurally - Decomposition - ANS involves taking the problem defined by the user and
breaking it down into its component parts.
Stepwise Refinement - ANS Higher levels provide a more brief overview of the problem, whereas lower
levels provide an increasingly more in-depth coverage.