Multiple Choice
What is output by the following C# code segment
Int temp = 180;
While (temp != 80)
{
If (temp > 90)
{
Console.Write("This porridge is too hot! ") ;
// cool down
Temp = temp - (temp > 150
100 : 20) ;
}
Else
{
If (temp < 70)
{
Console.Write("This porridge is too cold! ") ;
// warm up
Temp = temp + (temp < 50
30 : 20) ;
}
}
}
If (temp == 80)
{
Console.WriteLine("This porridge is just right!") ;
}
A) This porridge is too cold! This porridge is just right!
B) This porridge is too hot! This porridge is just right!
C) This porridge is just right!
D) None of the above.
Correct Answer:

Verified
Correct Answer:
Verified
Q5: What does the expression x %= 10
Q61: A can be used in repetition structures
Q62: Which of the following is not an
Q63: Postincrementing a variable will delay the incrementing
Q64: Which statement is false<br>A) Unless directed otherwise,
Q65: The sentinel value must be chosen so
Q67: During the 1960s,it became clear that the
Q69: Which of the following decrements the variable
Q70: Pseudocode is most comparable to which of
Q71: The three types of selection structures are:<br>A)