Pythondex

Quiz

Python Math Quiz

What will this code output?

5
25
125
Error

What do ceil() and floor() do?

ceil() rounds down, floor() rounds up
ceil() rounds up, floor() rounds down
Both round to nearest integer
Both return float values

What does abs(-10) return?

-10
10
0
Error

What does math.pow(2, 3) return?

6
8
9
Error

What does math.factorial(5) return?

120
25
15
Error

What do min() and max() return?

min() returns 7, max() returns 2
min() returns 2, max() returns 7
Both return 3
Error

What will this print?

0
1
0.5
Error