Ask your own question, for FREE!
Computer Science 15 Online
kekeman:

Which of the following has the same output as 27//8? 17//5 2**3 10.0-7 23%9

Vocaloid:

go through each operation and see which two are the same some reminders: - the double division // operator rounds down to the nearest whole number. for the two division problems, do the division and round down to the nearest whole number. both of the division expressions are int only so the results should both be ints. - ** means exponent. 2 ** 3 means 2^3 - for the 10.0 - 7, remember that float and int operations result in floats. since the result of this will be a float, you can actually eliminate this one off the bat. - for the % operator, calculate the remainder of division. (what is the remainder after 23 is divided by 9?) lmk what you get

kekeman:

@vocaloid wrote:
go through each operation and see which two are the same some reminders: - the double division // operator rounds down to the nearest whole number. for the two division problems, do the division and round down to the nearest whole number. both of the division expressions are int only so the results should both be ints. - ** means exponent. 2 ** 3 means 2^3 - for the 10.0 - 7, remember that float and int operations result in floats. since the result of this will be a float, you can actually eliminate this one off the bat. - for the % operator, calculate the remainder of division. (what is the remainder after 23 is divided by 9?) lmk what you get
I was thinking A.)

Vocaloid:

Good, they’re both int 3

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!