0%
0 / 15 answered
Variables and Assignments Practice Test
•15 QuestionsQuestion
1 / 15
Q1
A temperature converter adjusts a reading. If the input value is 50, what will be the output value stored in celsius?
fahrenheit <- 50 // input temperature
celsius <- (fahrenheit - 32) * 5 / 9 // convert
celsius <- celsius + 2 // calibration adjustment
fahrenheit <- fahrenheit + 0 // unchanged input
celsius <- celsius // keep adjusted value
A temperature converter adjusts a reading. If the input value is 50, what will be the output value stored in celsius?
fahrenheit <- 50 // input temperature
celsius <- (fahrenheit - 32) * 5 / 9 // convert
celsius <- celsius + 2 // calibration adjustment
fahrenheit <- fahrenheit + 0 // unchanged input
celsius <- celsius // keep adjusted value