Pseudocode Flashcards

1
Q

How do you declare a data type of a variable A as an integer in pseudocode?

A

DECLARE A : INTEGER

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

How do you assign a value to variable A in pseudocode?

A

A ← 34

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

How to implement an If-ElseIf-Else loop in pseudocode?

A

IF A > B THEN … ELSE IF …. ELSE … ENDIF

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

What data types can be written in pseudocode?

A

INTEGER, STRING, BOOLEAN, ARRAY, FLOAT

note that dicts, sets, tuples are not allowed in pseudocode

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