Pseudocode Flashcards
1
Q
How do you declare a data type of a variable A as an integer in pseudocode?
A
DECLARE A : INTEGER
2
Q
How do you assign a value to variable A in pseudocode?
A
A ← 34
3
Q
How to implement an If-ElseIf-Else loop in pseudocode?
A
IF A > B THEN … ELSE IF …. ELSE … ENDIF
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