Pseudocode Flashcards

1
Q

Analysis

A

The analysis stage uses abstraction and decomposition tools to identify the purpose of the program

Abstraction keeps the key elements used to solve the problem and discards any un necessary details

Decomposition breaks down the problem into smaller parts and then divides those parts into subparts to make each one of them very easy to solve

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Design

A

When the design stage is done, a programmer should know what is to be done (all the tasks that need to be solved , how to complete each task and how each task is connected)

It can be documented using flowcharts, pseudocodes and structured charts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Coding and Iterative Testing

A

In this step the program or programs are developed

Each module or part of the program is written using a suitable programming language and is then tested

Each module is tested and code amended until each module performs as intended

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Testing

A

In this phase the completed program or programs is tested using many sets of test data to ensure that everything is working smoothly and all tasks are being completed as mentioned in the Design phase

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Computer Systems, Sub-Systems and Decomposition

A

Computer systems are made up of software, hardware, data, communications and people

They can be divided into sub-systems and those into further sub-systems until each sub-system carries out a single condition

Computer systems can be big or small, phone alarm is an example of a very small computer system, weather forecast is an example of very large international computer system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The Computer System and its Sub-Systems

A

computer systems are often divided into sub systems, this division can be shown using top-down design to create structure diagrams that show the modular construction of the system.

Top-down design is the decomposition of a computer system into a set of subsystems, until each sub-system just performs a single action.

This structured approach works for the development of both large and small computer systems. In larger computer systems it allows for each individual component to be tested simultaneously

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Decomposing a Problem

A

inputs – the data used by the system that needs to be entered while the system is active

processes – the tasks that need to be performed using the input data and any other previously stored data

outputs – information that needs to be displayed or printed for the users of the system

storage – data that needs to be stored in files on an appropriate medium for use in the future.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Decomposing a Problem

A

inputs – the data used by the system that needs to be entered while the system is active

processes – the tasks that need to be performed using the input data and any other previously stored data

outputs – information that needs to be displayed or printed for the users of the system

storage – data that needs to be stored in files on an appropriate medium for use in the future.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Structure Diagrams

A

Structure diagrams are hierarchal and show how a computer system can be divided into sub-sections, each section giving a more detailed breakdown

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Flowchart

A

flowchart shows the steps required to complete a task and their order through a diagram

These ordered steps are called the algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Pseudocode

A

Pseudocode is a simple method of showing an algorithm and describes it using English keywords that are similar to those used in programming languages.

Data items in pseudocodes are given meaningful names like variables in coding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Validation

A

Validation is the automated checking by a program that data is reasonable before it is accepted into a computer system.

» range checks
» length checks
» type checks
» presence checks
» format checks
» check digits.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Verification

A

Verification is checking that data has been accurately copied from one source to another

» Double entry
» Screen/visual check

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Test Data

A

A set of test data is all the items of data required to work through a solution

a set of test data that a program is expected to work with is called normal data

In order to test for termination use test data that would
be rejected by the solution as not suitable if the solution is working properly. This type of test data is called abnormal test data.

Extreme data is the maximum and minimum of normal data

Boundary data is used to establish where the largest and smallest values occur

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Writing and Amending Algorithms

A
Purpose
Stepwise refinement-Input, Processing, Storage, Output
Decide on data storage and display
Structure Diagram
Pseudocode Flowchart
Use Several Data Sets
Error Detection
How well did you know this?
1
Not at all
2
3
4
5
Perfectly