1 Given Following Pseudocode Internal Name Used Work File Disk Declare String Item Declare Q37109665

1.

Given the following pseudocode, what is the internal name usedto work with the file on disk?

Declare String item
Declare Integer numOrdered
Declare InputFile stuffBought
Open stuffBought “inventory.dat”
Display “Your orders:”
While NOT eof(stuffBought)
Read stuffBought item, numOrdered
Display item, “: ” , numOrdered
End While
Close stuffBought

Question options:

A)

item

B)

inventory.dat

C)

stuffBought

D)

numOrdered

2.

In order to process the data in a file, first you must ________the file and then ________ the data into memory.

Question options:

A)

Declare, Read

B)

Open, loop

C)

Open, Read

D)

Input, Write

3.

Which of the following expressions is equivalent to thepseudocode shown here?

NOT eof(myStuff)

Question options:

A)

not eof == myStuff

B)

eof(myStuff) == True

C)

eof(myStuff) = True

D)

eof(myStuff) == False

4.

The eof function ________.

Question options:

A)

accepts a file’s internal name as anargument and returns True if the

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.