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";
}
}
}


A) small
B) medium
C) large
D) giant

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions