Pseudocode Flashcards

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

(PSEUDOCODE) Open a file named Activefile.txt for read/write/append

A

OPENFILE “ActiveFile.txt” FOR READ/WRITE/APPEND

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

(PSEUDOCODE)Close a file named Activefile.txt

A

CLOSEFILE “ActiveFile.txt”

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

(PSEUDOCODE)How to iterate through a file

A

WHILE NOT EOF(“File.txt”) DO

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

(PSEUDOCODE)Write to a file or read from a file

A

WRITEFILE “File.txt”, Line
READFILE “File.txt”, Line

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

(PSEUDOCODE) Declare constant, “MaxSize”, that is equal to 60.

A

CONSTANT MaxSize = 60

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

(PSEUDOCODE) Declare variable, “Length”, type integer(date, string, char, real, boolean).

A

DECLARE Length : INTEGER

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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