What will be displayed after the following code snippet runs?

```
function itLoops()
{
var m = 0; var k = 0; var p = 0;
while (m < 3)
{
k = m;
for (p = 1; p < 6; p+=3)
{
k = k + p;
document.write(k + " ");
}
document.write("
");
m++;
}
}

```

a. 1 5
2 6
3 7

b. 0 4
1 5
2 6

c. 1 5
2 6
3 7
4 8

d. 2 6
3 7


a. 1 5
2 6
3 7

Computer Science & Information Technology

You might also like to view...

An encryption scheme is said to be __________ if the cost of breaking the cipher exceeds the value of the encrypted information and the time required to break the cipher exceeds the useful lifetime of the information.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The element used to add an inline frame to a Web page is the ________ element

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which of the following acts as a transceiver to interconnect a wireless and wired LAN?

A) Attachment unit interface B) Access point C) Ad hoc interface D) Ethernet unit

Computer Science & Information Technology

What characteristic should the values used to populate an array and the array variables have in common?

A. position B. subscript C. data type D. equivalence

Computer Science & Information Technology