AP® Computer Science A

Free Version

Upgrade subject to access all content

Moderate

Multiple Math Methods in a Statement

APCSA-VWVKGG

What range of values could num possibly have after this statement is executed?

Select the MOST complete answer.

double num = Math.pow(Math.random()*10,Math.sqrt(Math.pow(2, 0))*2);
System.out.println(num);
A

Any decimal number between 0 (inclusive) and 100 (exclusive): [0, 100).

B

Any decimal number between 0 (inclusive) and 100 (inclusive): [0, 100].

C

Any decimal number between 0 (exclusive) and 100 (exclusive): (0, 100).

D

Any decimal number between 0 (inclusive) and 10 (exclusive): [0, 10).

E

Any decimal number between 0 (inclusive) and 10 (inclusive): [0, 10].