levo

Fundamentals of Programming

Programming paradigms and the procedural approach

  • 1 thing to know
  • Paper 1
Start revising · £5/month

Overview

Recall questions on the procedural and object-oriented paradigms, stepwise refinement, single entry and exit points, and how a hierarchy chart is drawn.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Process

Describe the characteristics of the object-oriented programming paradigm.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is a programming paradigm?

    Model answer

    A style or approach to organising a program, defining how a problem is broken down and how code and data are arranged. The same problem can be solved in different paradigms, and many languages support more than one.

  2. 2

    Describe the characteristics of the procedural programming paradigm.

    Model answer

    The program is written as a sequence of instructions that tell the computer what to do step by step, using sequence, selection and iteration, and it is organised into procedures and functions that are called in a defined order. Data is held in variables and data structures that are separate from the subroutines that act on them, and it is passed to them as parameters or held globally. The program is designed top-down, by breaking the overall task into subtasks.

  3. 3

    Describe the characteristics of the object-oriented programming paradigm.

    Model answer

    The program is organised as a collection of objects that interact by calling one another's methods. Each object bundles its own data with the operations that act on that data, and the data is normally kept private so it can only be reached through the object's methods. Objects are created from classes, which may be built from other classes by inheritance, and code is designed by identifying the things in the problem and their relationships rather than the steps to be carried out.

  4. 4

    State the essential difference between how the procedural and object-oriented paradigms treat data and code.

    Model answer

    In the procedural paradigm data and the subroutines that process it are separate, and data is handed to subroutines that any part of the program may call. In the object-oriented paradigm they are bundled together in objects, so the data belongs to the object and is normally reachable only through that object's own methods.

  5. 5

    What is the structured approach to program design and construction?

    Model answer

    A disciplined way of building programs in which the problem is broken down into a hierarchy of clearly defined modules or subroutines, each with a single well-defined task, one entry point and one exit point. Only sequence, selection and iteration are used to control the flow, with unconditional jumps such as GOTO avoided, and data is passed between modules through defined interfaces.

  6. 6

    What is stepwise refinement?

    Model answer

    The top-down technique of starting with a statement of the whole problem and repeatedly breaking each part into smaller subtasks, until every subtask is simple enough to be written directly as a subroutine. It produces the structure of the program before any detailed code is written.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Fundamentals of Programming
Fundamentals of Data Structures
Fundamentals of Algorithms
Theory of Computation

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

A driver is .
softwarehardwarestorage

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

Head means the first single element of a non-empty list.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Fundamentals of Programming, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.