Programming Techniques and Logical Methods (F452 OCR)

Here are 21 pages of extensive notes on the not-so-obvious bits of the OCR F452 syllabus (for the May 2010 exam).

As always, these notes were written for me to revise from, and so there may be bits that are not covered as much as you need to learn them in, or there may be bits that are covered in nauseating detail for you because you are already 100% familiar with them.

Original document is a Word 2007 (.docx) which if you want, email me and I will send you a copy.

These notes cover all six topics within Unit 2:

  1. Designing Solutions to problems
  2. The Structure of Procedural Programs
  3. Data Types and Structures
  4. Common Facilities of Programming Languages
  5. Writing Maintainable Programs
  6. Testing and Running a Solution
HideShow resource information
  • Created by: Jackarias
  • Created on: 03-04-10 16:32

Pages in this set

Page 1

Preview of page 1
Programming Techniques and Logical Methods
OCR F452 Written Exam (May 2010)
:: Jack Bennett, 12F


Designing Solutions to Problems (3.2.1)
Programs aim to ensure that the...
o User can input data easily
o Output is clear and understandable

Aim is to be user friendly, i.e. effective, efficient and satisfying for…

Page 2

Preview of page 2
Programming Techniques and Logical Methods
OCR F452 Written Exam (May 2010)
:: Jack Bennett, 12F


When designing other types of interface, such as touch screen interfaces, other
factors must be considered. For example, the contact areas must be large enough on
the touch screen to be used effectively.

People with…

Page 3

Preview of page 3
Programming Techniques and Logical Methods
OCR F452 Written Exam (May 2010)
:: Jack Bennett, 12F


There are many advantages to modular design:
1. Program is easier to write and test.
Each module is small and can be written independently.
2. Design clearly shows how different parts of program relate.
Reduces…

Page 4

Preview of page 4
Programming Techniques and Logical Methods
OCR F452 Written Exam (May 2010)
:: Jack Bennett, 12F


o Use lowercase letters with code close to English.
o Indent as appropriate.

Rapid Application Development is a method for designing and writing software.
It produces successive prototype versions of the software.
This continues to…

Page 5

Preview of page 5
Programming Techniques and Logical Methods
OCR F452 Written Exam (May 2010)
:: Jack Bennett, 12F


Disadvantages of RAD include:
1. Not efficient when dealing with large-scale projects.
Initial prototypes dynamically different from final product.
2. Focuses on end result rather than on the processing.
Can produce solutions that are inefficient…

Page 6

Preview of page 6
Programming Techniques and Logical Methods
OCR F452 Written Exam (May 2010)
:: Jack Bennett, 12F


WHILE REPEAT UNTIL
Condition is tested before each cycle. Condition is tested after each cycle.
Instructions may never be executed. Instructions will always be executed once.

In both cases, it repeats if the condition is…

Page 7

Preview of page 7
Programming Techniques and Logical Methods
OCR F452 Written Exam (May 2010)
:: Jack Bennett, 12F


Instructions are then executed using the actual values substituting parameters.
This is referred to as `passing parameters' to the procedure.

Recursion is when a subroutine calls itself.
The subroutine is executed as normal until it…

Page 8

Preview of page 8
Programming Techniques and Logical Methods
OCR F452 Written Exam (May 2010)
:: Jack Bennett, 12F


Iteration Recursion
Uses a loop to repeat instructions. Repeats by calling itself with
simplified arguments.
End condition to the loop decides
when to stop looping. Stopping condition causes subroutine
to terminate without calling itself.
Must…

Page 9

Preview of page 9
Programming Techniques and Logical Methods
OCR F452 Written Exam (May 2010)
:: Jack Bennett, 12F


Data structures allow us to store more than one item of data together.
o Under one identifier (name).
Can be used to access individual items of data.
Two data structures ­ arrays and records.

Arrays…

Page 10

Preview of page 10
Programming Techniques and Logical Methods
OCR F452 Written Exam (May 2010)
:: Jack Bennett, 12F


New data is simply added to the end of the file.
This is known as appending the data.
To search for data you need to start from the first item.
By then searching each item…

Comments

Sean Keegan

Report

Thank you very much!  I have used both of the resources you have made for AS and they have been more than useful. Thanks again buddy.

Pink198

Report

Thank you so much. My college has a resources area that is normally stacked with information, but on this unit it had nothing at all, only excercises "write a program that outputs..." with no revision notes at all, this saved me :)

Chloe

Report


Thankyou thankyou thankyou! Both resources helped me understand it so much better. Its so much friendlier when its written by a yr12 :) THANKYOU! :D

Kaya Katana

Report

My teacher always told us to use this before I even found this site. Thanks a lot for uploading it for others though xDD. It's really pretty~

Rebecca Fields

Report

Thank you! 

Similar Computing resources:

See all Computing resources »