Chapter 7 Algorithm Design And Problem Solving: Unit 7.2: Computer Systems, Sub-systems And Decomposition Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Describe a computer system.

A

Made up of software, data, hardware, communications and people; each computer system can be divided up into a set of sub-systems. Each sub-system can be further divided into sub-systems and so on until each sub-system just performs a single action.

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

Describe top-down design.

A

The decomposition of a computer system into a set of sub-systems, then breaking down each sub-system into a set of smaller sub-systems, until each sub-system just performs a single action.

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

How can a problem be decomposed?

A

By dividing the problem into 4 different components:
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 in an appropriate medium for use in the future

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

What are the 3 methods used to design and construct a solution to a problem?

A

Structure diagrams
Flowcharts
Pseudocode

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

Describe structure diagrams.

A

Can be used to show top-down design in a diagrammatic form
Are hierarchical, showing how a computer system solution can be divided into sub-systems with each level giving a more detailed breakdown

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

Describe flowcharts.

A

Shows diagrammatically the steps required to complete a task and the order that they are to be performed. These steps, together with the order, are called an algorithm.

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

Describe Pseudocode as a method used to design a solution to a problem.

A

Simple method of showing an algorithm
Uses English key words similar to those used in a high level programming language
Pseudocode is not bound by the strict syntax rules of a programming language
Non-proportional font is used throughout
All keywords are written in capital letters
All names given to data items and subroutines start with a capital letter
Where conditional and loop statement are used, repeated or selected statements are indented by two spaces

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

What are the six operators of Pseudocode?

A

+ Add
- Subtract
* Multiply
/ Divide
^ Raise to the power
( ) Group

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

How are Pseudocode statements assigned?

A

With an arrow pointing to the left

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

Describe the two types of conditional statements.

A

IF… THEN… ELSE… ENDIF
A condition which can be true or false.
Can be set up with the use of a boolean variable (true or false) or by using comparison operators

CASE OF… OTHERWISE… ENDCASE
A choice between several different values.

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

What are the nine comparison operators in Pseudocode?

A

> Greater than
< Less than
= Equal
= Greater than or equal
<= Less than or equal
<> Not equal
AND Both
OR Either
NOT Not

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

Describe the three types of Pseudocode for iteration (looping).

A

FOR… TO… NEXT
A set number of repetitions.

REPEAT… UNTIL
A repetition, where the number of repeats is not known, that is completed at least once. Also known as a post-condition loop.

WHILE… DO… ENDWHILE
A repetition, where the number of repeats is not known, that may never be completed. Also known as a pre-condition loop.

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

Describe the Pseudocode used for input and output statements.

A

INPUT is used for data entry; usually followed by a variable where the data input is stored
OUTPUT is used to display information either on a screen or printed on paper; usually followed by a single value that is a string or a variable, or a list of values separated by commas

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