Structure_Diagrams Flashcards

1
Q

What is a structure diagram…?

A

Graphical representation of logic using industry recognized symbols, Pseudo Code Instructions (statements), and where necessary, selected mathematical symbols.

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

The………. all have relevance to the meaning of the problem solution and therefore are important to the reader.

A

Order of the symbols
The Pseudo Code instructions inside them
The way in which the symbols are joined by lines

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

Structure diagrams do NOT…?

A

represent any particular programming language, but rather a standard method of showing logic.

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

Structure diagrams do….?

A

show the solution to a given problem in a step by step sequence using symbols and Pseudo Code instructions.

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

When the drawing of the Structure Diagram is complete then…?

A

the Structure Diagram and accompanying Pseudo Code instructions are converted to the chosen programming language.

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

Naming a Problem Solution:

The name must…?

A

describe the problem and be expressed in Camel Case format e.g areaOfCircle

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

Instructions: The symbols

Draw only one….?

A

subprogram on each physical page.

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

Instructions: The Symbols

The subprogram can not spread over more than…?

A

one physical page.

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

Page Numbering:

Identify each page at the…?

A

top right hand corner. e.g. Page n (where n is the page number)

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

Symbols:

Use no more than…?

A

7 shapes (symbols) on any line across the page.

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

Symbols:

The solution can continue on the same page at…?

A

a position further down the page.

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

Symbols:

The on-page connection symbol must…?

A

be used when this happens.

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

Symbols:

The use of a max of ____ symbols on any line is a physical paper size limitation.

A

The use of a maximum of 7 symbols on any line is a physical paper size limitation.

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

Naming the Variables:

The name must describe the purpose of the variable and be expressed…?

A

in Camel Case format and be underlined e.g. circleRadius, valueOfGst

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

Names of Subprograms:

The name must describe the purpose of the subprogram and be expressed…?

A

in Camel Case format e.g setTheVariables, displayResults.

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

Each Pseudo Code instruction (statement) is written inside…?

A

the relevant Structure Diagram symbol adhering to the Pseudo Code syntax rules.

17
Q

Do not write…?

A

more than 1 instruction in any symbol.

18
Q

Statement Operators:

Arithmetic…?

A

add, subtract, multiply, divide

19
Q

Statement Operators: Arithmetic:

Add and subtract have….?

A

two possible formats.

20
Q

Statement Operators: Arithmetic:

Multiply and divide…?

A

have only one format.

21
Q

Statement Operators: Arithmetic:

In all cases, the “answer” ends up in…?

A

ends up in the variable at the right hand end.

22
Q

Statement Operators: Arithmetic:

Other Variables retain their….?

A

original value.

23
Q

Statement Operators: Arithmetic:

Add and subtract operators can have…?

A

multiple operands provided
they are comma separated e.g.
add apples, peaches, pears, grapes giving fruitSalad
subtract buildings, trees, grass from property giving wasteLand

24
Q

Statement Operators: Show:

Each show implies…?

A

a new “line” of output.

25
Q

Statement Operators: Show:

Show operators can have…?

A

multiple operands provided they are comma separated

eg. show “Totals are” , tax, gross, nett

26
Q

Statement Operators: If:

Structure diagram symbol for selection implies if so the…?

A

‘if’ is removed from the relevant Pseudocode statement.
eg
if counter = 25 in Pseudo Code becomes
counter = 25 in the Structure Diagram symbol

27
Q

Statement Operators: Repeat:

Structure Diagram Symbol for iteration implies ‘repeat’ so the…?

A

‘repeat’ is removed from the relevant Pseudo Code statement.
eg repeat while counter < 25 in Pseudocode becomes
while counter < 25 in the Structure Diagram symbol

28
Q

Conditional Operators:

May be used in a Pseudo Code instruction (statement) inside a…?

A

Structure Diagram Symbol.

29
Q

Conditional Operators:

Conditional Operators allowed…?

A
Relational: =  or equal to or equals
	      >  or greater than
	      <  or less than
 	      >= or greater than or equal to
                     <= or less than or equal to

Negation: not
Relational & Negation operators can be combined e.g. not =

30
Q

Structure Diagram Symbols:

Rectangle used for…?

A

Program (Solution) Name
Subprograms single call
Subprograms multi call
Simple instructions examples in notes

31
Q

Structure Diagram Symbols:

Hexagon used for…?

A

Selection-two alternatives-true path only
Selection-two alternatives-truth/false path
examples in notes

32
Q

Structure Diagram Symbols:

Polygon used for…?

A

Input messages
Data entry
Output messages
examples in notes

33
Q

Structure Diagram Symbols:

Rectangle (Rounded) used for…?

A

Repetition

examples on slide

34
Q

Structure Diagrams Symbols:

Bullet used for…?

A

on page connection.

examples on slides