What are the contents of the file named legs after the given program segment is executed? Assume the content of the file named Animals originally contains the following:

```Animals: “Duck”,2”Dog”,4”Octopus”,8
pseudocode: Open “Animals” For Input As Creatures
Open “legs” For Output As TempFile
While NOT EOF(creatures)
Read Creatures, Name, Number
If Name != “Octopus” Then
Write TempFile, Name, Number
End If
End While
Close Creatures, TempFile
```
a. “Duck”,2”Dog”,4
b. “Duck”,2”Dog”,4
c. “Octopus”,8,
d. “Duc”Octopus”,8

B

Computer Science & Information Technology

You might also like to view...

Which IGP routing protocol has traditionally been Cisco proprietary?

A) EIGRP B) OSPF C) RIP D) IS-IS

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1) The document type for an HTML document is optional. 2) The use of the em and strong elements is deprecated. 3) The name of your site’s home page should always be homepage.html. 4) It is a good programming practice to insert comments into your HTML document that explain what you are doing. 5) A hyperlink is inserted around text with the link element.

Computer Science & Information Technology