IST - Software Development Control Structures Flashcards

1
Q

What are the 2 types of loop

A

Pre-test loop

Post-test loop

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

Show a Pre-test loop

A

WHILE test condition is TRUE
do process
END WHILE

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

Show a Post-Test Loop

A
statement before loop
REPEAT
process statements 
UNTIL condition is TRUE
statement after loop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the 7 datatypes

A

Character Data- Holds one character eg. H - as
String Data- Holds multiple characters eg. bird
Integer Data- Holds whole numbers- as int
Real numbers- Holds decimals- As double, As single
Boolean- True/False
Date and Time- Holds dates and time
Binary Data- holds large data such as movies

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

What form do you write an algorithm

A

Pseudo code or Flowchart

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

What are the 3 types of control structure

A

Sequence- one event after the other
Selection- casewhere - binary selection
Repetition- Post test loop - pre test loop

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

Show a pseudo code example of a sequence control structure

A

BEGIN
process 1
process 2
END

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

Show a pseudo code example of a binary selection control structure

A
IF  = True THEN
      do process 1
ELSE 
      do process 2
END IF
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Show a pseudo code example of a casewhere control structure

A

CASEWHERE
choice 1: process 1
choice 2: process 2
otherwise: Default process

ENDCASE

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