Examlex

Solved

Given the Following Code Fragment, What Is the Final Value

question 1

Multiple Choice

Given the following code fragment, what is the final value of y?
Int x, y;
X = -1;
Y = 0;
Whilex <= 3)
{
Y += 2;
X += 1;
}


Definitions:

Mesa

A broad, flat-topped and steep-sided, isolated hill or mountain.

Fracture

A break or crack in a rock; subdivided into joints and faults.

Rock Layers

Strata or sequences of rock sediment that have accumulated over time, each layer representing a specific era in geologic history.

Youngest Unit

The most recently formed or deposited geological layer or structure in a sequence.

Related Questions