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
18 days agoEmilio
20 days agoLouisa
1 months agoCandra
3 days agoMarva
1 months agoShawna
2 months agoHarris
2 months agoShawna
2 months ago