Test: Computer Science

double square(double n){

return n*n;

}

1.

What MUST be true immediately after the above code snippet has run?

The value of the input parameter changes.

The result will be stored in a new variable.

The result will be a negative number.

The result will be a positive number.

It is impossible to tell.

1/1 questions

0%
Learning Tools by Varsity Tutors