Consider the following code segment containing an if-else statement:

```
if (x > y) {
y = x;
}
else if (x == y) {
x = 100;
}
alert('x = ' + x + ', y = ' + y);
```
Given the following assignments, predict the output that the preceding code would produce:


Computer Science & Information Technology

You might also like to view...

An array's items are automatically initialized to the "default value" of their type when they are allocated.

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

Computer Science & Information Technology

Data __________ is used to adjust number of bits of transmitted characters in order to reduced number of data in the frame and consequently use the transmission bandwidth efficiently

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

Computer Science & Information Technology

When the placeholder is selected, the border surrounding the placeholder is a:

A) red line. B) green line. C) dashed line. D) solid line.

Computer Science & Information Technology

If your computer is connected to a network, then the Task Manager will display a Networking tab

Indicate whether the statement is true or false

Computer Science & Information Technology