10. Pseudocode and flowcharts Flashcards

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

What symbol is used for assignments?

A

An arrow

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

What symbol is used for assignments?

A

An arrow

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

How does a conditional work in pseudocode?

A

IF Age

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

How does case work in pseudocode?

A
CASE Grade OF:
   'A' : PRINT 'Excellent'
   'B' : PRINT 'Good'
   'C' : PRINT 'Average'
   OTHERWISE PRINT 'Improvement is needed'
ENDCASE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Not equal symbol in pseudocode

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

Why use a FOR … TO…NEXT loop?

A

A set number of repetitions.

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

Why use a REPEAT…UNTIL loop

A

A repetition where the number of repeats is not known but must be completed at least once.

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

Why use a WHILE…DO…ENDWHILE loop?

A

A repetition where the number of repeats is not known but may not need to be used at all.

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

How does a conditional work in pseudocode?

A

IF Age

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

How does case work in pseudocode?

A
CASE Grade OF:
   'A' : PRINT 'Excellent'
   'B' : PRINT 'Good'
   'C' : PRINT 'Average'
   OTHERWISE PRINT 'Improvement is needed'
ENDCASE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Not equal symbol in pseudocode

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

Why use a FOR … TO…NEXT loop?

A

A set number of repetitions.

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

Why use a REPEAT…UNTIL loop

A

A repetition where the number of repeats is not known but must be completed at least once.

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

Why use a WHILE…DO…ENDWHILE loop?

A

A repetition where the number of repeats is not known but may not need to be used at all.

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