levo

Programming Paradigms and Computer Languages

Procedural programming

  • 3 things to know
  • Component 1

Overview

Distinguishing features of procedural programming, three basic constructs from which any procedural program is built and structured programming.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Describe the distinguishing features of procedural programming.

Key term

Name the three basic constructs from which any procedural program is built.

Key term

What is meant by structured programming?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    Describe the distinguishing features of procedural programming.

    Model answer

    A procedural program is a sequence of instructions grouped into procedures and functions. Data is held separately from the code that acts on it.

  2. 2

    Name the three basic constructs from which any procedural program is built.

    Model answer

    Sequence, selection and iteration are the three constructs. Any algorithm can be expressed using only those three.

  3. 3

    What is meant by structured programming?

    Model answer

    Structured programming builds a program only from the three basic constructs and named subroutines. Unrestricted jumps between parts of the code are avoided.

  4. 4

    Explain how top-down design is used in a procedural program.

    Model answer

    The overall task is broken into smaller sub-tasks, and each sub-task into smaller ones again. Each of the lowest level tasks becomes a procedure or function.

  5. 5

    State one advantage of dividing a procedural program into subroutines.

    Model answer

    A subroutine can be written, tested and corrected independently of the rest of the program. Several programmers can then work on one project at the same time.

  6. 6

    State one disadvantage of the procedural paradigm on very large projects.

    Model answer

    Data and the operations on it are kept apart, so a change to a data structure affects many procedures. Dependencies of that kind grow harder to track as the program grows.

Other ways to work this

The same content, four other ways.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

Data Structures: Arrays, Records and Hash Tables
Stacks, Queues, Linked Lists and Trees
Boolean Logic and Simplification
Algorithms, Pseudo-Code and Programming Constructs

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

KDW to HAT.
decryptsencryptscompresses

Blank Blitz makes facts automatic

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

AThe two are not the same.
BOpen source refers to the availability of the code.
CMuch open source software is free of charge.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

Backup means the copy of the data.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

721941163128510

Brain Breaks between sessions

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

Every question in Programming Paradigms and Computer Languages, on a schedule.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

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