What is output in the GUI by the following Visual Basic code segment?

Dim temp As Integer
temp = 180

While temp <> 80

If temp > 90 Then
resultLabel.Text = "This porridge is too hot! "

' cool down
If temp > 150 Then
temp = temp - 100
Else
temp = temp - 20
End If

ElseIf temp < 70 Then
resultLabel.Text = "This porridge is too cold! "

' warm up
If temp > 150 Then
temp = temp + 30
Else
temp = temp + 20
End If

End If

End While

If (temp = 80) Then
resultLabel.Text = "This porridge is just right! "
End If

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...

A(n) ________ cloud provider offers services, selling those services to customers to other companies

A) Public B) Private C) Services D) Internet

Computer Science & Information Technology

Match the hacking terminology with its meaning

1. Wetware a. a subspecies of logic bomb that is triggered by reaching some predetermined time or is set to go off in the event that a programmer is fired and not available to suppress action 2. Time bomb b. a term traditionally used to refer to the method of cracking passwords by manually entering all possible key combinations 3. Bit bucket c. an individual hired by a company to test its security systems by attempting to violate them 4. Brute force d. the final destination of discarded, lost, or destroyed data 5. Sneaker e. a term used to refer to humans operating computers (as opposed to hardware and software)

Computer Science & Information Technology