This is a simple case of rounding. The float f is 10.501, and when we cast it to an integer, it should round up to 11. Option B is the correct answer, no doubt about it.
Haha, the question mark is just there to confuse us. It's a classic trick question! I'm going to go with option D, because who doesn't love a bit of chaos in their code?
Jennifer
3 months agoEmilio
3 months agoCyndy
2 months agoEmily
2 months agoHelaine
3 months agoLouisa
4 months agoSherell
2 months agoRhea
2 months agoCandra
3 months agoMarva
4 months agoShawna
4 months agoHarris
4 months agoShawna
4 months ago