The second document.write() statement in the accompanying figure prints out ____.
A. 101
B. 102
C. 103
D. 104
Answer: B
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.
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