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:

Verified
Correct Answer:
Verified
Related Questions
Q29: What is the value of x after
Q30: What is the output of the following
Q48: What is the value of x after
Q50: Every line in a program should have
Q51: What is the value of x after
Q52: If x has the value of 3,
Q53: What is the opposite of x <
Q55: if-else statements that are inside other if-else
Q56: Given the following code fragment, and an
Q57: Which of the following is not a