Pseudocode Flashcards
1
Q
(PSEUDOCODE) Open a file named Activefile.txt for read/write/append
A
OPENFILE “ActiveFile.txt” FOR READ/WRITE/APPEND
2
Q
(PSEUDOCODE)Close a file named Activefile.txt
A
CLOSEFILE “ActiveFile.txt”
3
Q
(PSEUDOCODE)How to iterate through a file
A
WHILE NOT EOF(“File.txt”) DO
4
Q
(PSEUDOCODE)Write to a file or read from a file
A
WRITEFILE “File.txt”, Line
READFILE “File.txt”, Line
5
Q
(PSEUDOCODE) Declare constant, “MaxSize”, that is equal to 60.
A
CONSTANT MaxSize = 60
6
Q
(PSEUDOCODE) Declare variable, “Length”, type integer(date, string, char, real, boolean).
A
DECLARE Length : INTEGER
7
Q
(PSEUDOCODE)Declare an array named Queue of type integer that can have up to 60 items.
A
DECLARE Queue : ARRAY[1:60] OF INTEGER