Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
AP Computer Science A/Unit 2: Using Objects
Start Practice TestPractice Test
About Exam
medium Solved by 11 students

Java Math Library Expression

Mark
< Prev
Next >

Consider the following code segment. What is the value of result after the code segment is executed?

double a = 16.0;
double b = -9.0;
double result = Math.sqrt(Math.abs(b)) + Math.pow(a, 0.5);
A

1.0

B

7.0

C

25.0

D

NaN

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Total Time
Score
#1kaisuki11 0m 00s 100
#2liuwilliam07241011 0m 43s 57
#3Potter1612 0m 39s 51
#4jeonsaw172311 1m 03s 37
#5y.seong202712 1m 35s -5
#6pandasiteitei11 2m 08s -28
#7chunxiangxu.cxu22 5m 05s -105
#8richa.tuli12 4m 06s -156
#9lsj0803092211 4m 46s -186
Items per page:
10
1 – 9 of 9

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Privacy Policy|