Upgrade to access all content for this subject
Consider the following code.
double randNum = Math.random();
double answer = (int)(Math.pow((int)randNum*10, 2)) - Math.sqrt(Math.pow(randNum,2));
Which of the following will be the BEST approximate value of answer after this segment of code is run?
The value stored in randNum.
The value stored in randNum squared.
The negative of the value stored in randNum.
A random number between 1 (inclusive) and 16 (exclusive).