Examlex

Solved

Given the Following Code Fragment, and an Input Value of 5

question 54

Multiple Choice

Given the following code fragment, and an input value of 5, what is the output?
Int x;
If x< 3)
{
Cout << "small\n";
}
Else
{
If x < 4)
{
Cout << "medium\n";
}
Else
{
If x < 6)
{
Cout << "large\n";
}
Else
{
Cout << "giant\n";
}
}
}


Definitions:

Related Questions