A-Level OCR
Computer Science Paper 2 /
OCR A Level Computer
Science Paper 2
,Give an example of a switch/case branch with the use of a
default statement - ANS-switch Month: case "Jan": print("1")
case "Feb": print("2") default:
print("invalid month")
end switch
What is computational thinking? - ANS-The ability to think
logically about a problem in a way a computer can execute it and
apply techniques for solving it using a set of problem solving
methods.
Why is computational thinking important? - ANS-As many
overarching problems are very difficult to understand
What is the aim of computational thinking? - ANS-To be able to
make an overarching problem understood and then formally
represented and solved
What does computational thinking require? - ANS-
Computational thinking requires algorithmic thinking
,What stages does algorithmic thinking require? - ANS-
Understanding the problem
- Formulate the problem
- Design an algorithm
- Implement the algorithm
- Run the code and solve the original problem
What does formulating the problem entail? - ANS-Producing a
concise representation of the problem using abstraction and/or
mathematical notation
What is abstraction? - ANS-Abstraction is the process of
removing the unnecessary details and leaving only the key
elements of a problem to allow focus on the essential features
making an overarching problem easier and potentially faster to
solve giving an alternate representation of reality
Give examples of abstraction - ANS-- Variables
- Objects
- Layers
, - Data models
- Data structures
- entity-relationship diagrams
What is data abstraction? - ANS-Data abstraction is using a
data structure without being concerned how it's implemented
Give an example of data abstraction - ANS-creating a stack in a
subroutine without having to know how they will be implemented
What is generalisation? - ANS-Generalisation is a part of the
abstraction process by grouping together items with similar
features that are relevant to the problem (i.e. ignoring irrelevant
features).
What can sometimes be deduced from generalisation? - ANS-
From generalisation a common approach that may already exist
or can be created can be discovered which can then be reused
to solve similar problems
Computer Science Paper 2 /
OCR A Level Computer
Science Paper 2
,Give an example of a switch/case branch with the use of a
default statement - ANS-switch Month: case "Jan": print("1")
case "Feb": print("2") default:
print("invalid month")
end switch
What is computational thinking? - ANS-The ability to think
logically about a problem in a way a computer can execute it and
apply techniques for solving it using a set of problem solving
methods.
Why is computational thinking important? - ANS-As many
overarching problems are very difficult to understand
What is the aim of computational thinking? - ANS-To be able to
make an overarching problem understood and then formally
represented and solved
What does computational thinking require? - ANS-
Computational thinking requires algorithmic thinking
,What stages does algorithmic thinking require? - ANS-
Understanding the problem
- Formulate the problem
- Design an algorithm
- Implement the algorithm
- Run the code and solve the original problem
What does formulating the problem entail? - ANS-Producing a
concise representation of the problem using abstraction and/or
mathematical notation
What is abstraction? - ANS-Abstraction is the process of
removing the unnecessary details and leaving only the key
elements of a problem to allow focus on the essential features
making an overarching problem easier and potentially faster to
solve giving an alternate representation of reality
Give examples of abstraction - ANS-- Variables
- Objects
- Layers
, - Data models
- Data structures
- entity-relationship diagrams
What is data abstraction? - ANS-Data abstraction is using a
data structure without being concerned how it's implemented
Give an example of data abstraction - ANS-creating a stack in a
subroutine without having to know how they will be implemented
What is generalisation? - ANS-Generalisation is a part of the
abstraction process by grouping together items with similar
features that are relevant to the problem (i.e. ignoring irrelevant
features).
What can sometimes be deduced from generalisation? - ANS-
From generalisation a common approach that may already exist
or can be created can be discovered which can then be reused
to solve similar problems