Menu

(Solved) : 1 Wrong Statement Int Number Mathpow 9 9 Mathpow Needs Cast Double B Mathpow Mathpower C M Q30033277 . . .

1.What is wrong with this statement?

int number = Math.pow(9, 9);

aMath.pow needs to be cast to doublebMath.pow should be Math.powercMath.pow needs to be cast to (int)d

There is nothing wrong with the statement

2.

for (int a = 0; a < 60; a++) {

array[a] = (int)(Math.random()*(500-1+1)+1);

}

What will be the range of numbers in this array?

arandom integers from 1 to 500brandom integers from 0 to 501crandom integers from 1 to 501drandom integers from 0 to 500

3.

What is essential in making sure that your loop is not infinite?

aNone of the abovebThat your Boolean statement will at some point be truecThat there is a Boolean statement somewhere in your coded

That your Boolean statement will at some point be false

4.How many elements are in the following array?

      double[][][] catLadysCats= newdouble [4][8][2];

a64b32c14dNone of thesee

48

5.What is the conditional required to check whether the lengthof a string s1 is odd?

aif ((s1.length() % 2) == 0)bIt is impossible to find that with given datacif ((s1.length() * 2))dif ((s1.length() / 2))e

if ((s1.length() % 2) != 0)

6.Which of the following means that in order for the conditionalto happen, either x must be less than 3 or y must be greater thanor equal to 4 ?

aif ((x < 3) || (y > = 4))bif ((x < 3) && (y > 4))cif (x < 3 y >= 4)dif ((x > 3) || (y < = 4))

Expert Answer


Answer to 1 Wrong Statement Int Number Mathpow 9 9 Mathpow Needs Cast Double B Mathpow Mathpower C M Q30033277 . . .

OR