AP Computer Science A Quiz
17 questions · no time limit
0:00
Finish quiz
USING OBJECTS AND METHODS
Question 1
of 17
Flag for review
No time limit
Current
Answered
Flagged
Not seen
Consider this method call:
Math.pow(Math.abs(-3.7), Math.floor(2.9))
. What value does this expression evaluate to?
A
9.0, because Math.abs(-3.7) returns 3.7 and Math.floor(2.9) returns 2.0, so 3.7² equals 13.69
B
13.69, because Math.abs(-3.7) returns 3.7 and Math.floor(2.9) returns 2.0, giving 3.7 raised to the 2nd power
C
10.24, because Math.abs(-3.7) returns 3.2 and Math.floor(2.9) returns 3.0, so 3.2³ equals 32.768
D
16.0, because Math.abs(-3.7) returns 4.0 and Math.floor(2.9) returns 2.0, giving 4.0 raised to the 2nd power
YOUR PROGRESS
17
QUESTIONS
Ready when you are
Answer in any order. Your progress shows here as you go.
QUESTIONS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
KEYBOARD
Pick an answer
A
B
C
D
Next question
↵
→
Previous
←
Flag for review
F