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


c. large

Computer Science & Information Technology

You might also like to view...

All software projects are guaranteed to have one artifact in common: _____________.

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

Computer Science & Information Technology

________ are displayed as dotted horizontal and vertical lines and indicate the pointer's position

A) Headers B) Rotation handles C) Ruler guides D) Sizing handles

Computer Science & Information Technology

What is the return type of the ReadLine() method call?

A. int B. Object C. bool D. string

Computer Science & Information Technology

A ________ is a website specially designed to allow visitors to use their browser to add, edit, or delete the site's content.

A. blog B. social network C. webcast D. wiki

Computer Science & Information Technology