The second document.write() statement in the accompanying figure prints out ____.

A. 101
B. 102
C. 103
D. 104

Answer: B

Computer Science & Information Technology

You might also like to view...

Which of the following statements is true?

``` Segment 1 Segment 2 int i = 0; for (int i=0; i <= 20; ++i) while (i < 20) { { Console.WriteLine (i); ++i; } Console.WriteLine (i); } ``` a) The output from these segments is not the same. b) The scope of the control variable i is different for the two segments. c) Both (a) and (b) are true. d) Neither (a) nor (b) is true.

Computer Science & Information Technology

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 Read Creatures, Name, Number Write TempFile, Name, Number Close Creatures, TempFile``` a. “Duck”,2 b. “Duck”,2, c. “Duck”,2, d. “Duc”Duck”,2”Dog”,4”Octopus”,8

Computer Science & Information Technology