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.


b) This porridge is too hot! This porridge is just right!

Computer Science & Information Technology

You might also like to view...

Local variables can be initialized with __________.

a. constants b. parameter values c. the result of an arithmetic operation d. Any of these.

Computer Science & Information Technology

Which memory packaging is most commonly used for today's workstation memory modules?

A) SO-DIMM B) RIMM C) DIMM D) microDIMM E) SDIMM

Computer Science & Information Technology

?Storage devices, printers, servers, and communications hardware are ____.

A. ?data B. ?input C. ?resources D. ?programs

Computer Science & Information Technology

Explain how the Table Analyzer tool makes you more productive.

What will be an ideal response?

Computer Science & Information Technology