Computer Science > EXAM > OCR A Level Computer Science Paper 2 2022 (All)
OCR A Level Computer Science Paper 2 2022 Abstraction - correct answer a way of separating logical and physical parts of a problem e.g. the London underground map. You get rid of unnecessary details ... Problem abstraction - correct answer where you keep removing details until the problem reduces to one that has already been solved Modelling and Simulation - correct answer Building a model of a real-world object can be used to solve a particular problem such as Aircraft simulation, Climate change models Precondition - correct answers the logic part of a statement statement that has to be true for the processing part of the algorithm before it can function Specifying a precondition before creating an algorithm ensures - correct answer the data is ok to process e.g. if it was empty it could cause the program to crash. The function is reusable It reduces unnecessary checks It makes programs easier to debug and maintain It makes programs clearer and shorter Programming standards that make programs easy to recuse include - correct answer Documenting inputs, outputs and preconditions Variables should use camelCase or Pascal Case All variables should be local to that module The documentation should contain information such as who made it, what it does and when it was written. The code should be annotated where necessary The module should not be greater than one page of code [Show More]
Last updated: 1 year ago
Preview 1 out of 19 pages
Connected school, study & course
About the document
Uploaded On
Nov 19, 2022
Number of pages
19
Written in
This document has been written for:
Uploaded
Nov 19, 2022
Downloads
0
Views
35
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·