mahaleyrenee5711 mahaleyrenee5711
  • 25-11-2020
  • Computers and Technology
contestada

When you pass a double variable to a method, the method receives ______.a) a copy of the memory addressb) the reference of the variablec) the length of the variabled) a copy of the variablee) the binary memory address

Respuesta :

codiepienagoya codiepienagoya
  • 27-11-2020

Answer:

The answer is "Option d".

Explanation:

In this question the choice d, that is "a copy of the variable" is correct because the method takes a reference value or a copy of the variable in its parameter, the example of this question can be defined as follows:

void me2(double x)//defining a method me2 with a double parameter

{

//method body

 }

double x = 35.655;//defining a double variable x

me2(x);//calling a method with passing the copy of th e variable

Answer Link

Otras preguntas

Why do you think the processes of photosynthesis and respiration are interrelated?
A spaceship starting from a resting position accelerates at a constant rate of 9.8 meters per second per second. How long and how far will it take the spaceshi
The interior paint color, Melon Madness,is 30% yellow. Raul used 72 ounces of yellow paint to mix the last batch. How many ounces of Melon Madness did he make i
25,000(4+3x) =125,000
Which decimal is equal to one-fifth? 0.6 0.15 0.2 0.3 0.4
how did napoleon become a hero. in. france
A ______ is a written statement that promises a product will work for a set amount of time.
What would be the projectile's initial speed?
write the subraction fact 10-3 two ways
This is a number obtained by raising a base to an exponent