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
1 months agoEmilio
1 months agoHelaine
15 days agoLouisa
2 months agoSherell
4 days agoRhea
14 days agoCandra
18 days agoMarva
2 months agoShawna
2 months agoHarris
2 months agoShawna
2 months ago