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

what is the slope of the line described by this equation. 3y+2x=12
Numbers 1 - 10 are written on cards and placed in a bag. Find the probability of choosing a number greater than 5 or choosing an odd number. ...?
_this___ cat in my arms is my very good friend. Select the correct pronoun
Astronomers estimate that a 2 - km wide asteroid collides with the Earth once every million years. The collision could pose a threat to life on Earth. (a) Ass
one step equations, y-16=2
what is the question to the qin dynasty
In an atom of barium, how many electrons have: ℓ = 0 mℓ = 1
What characteristic makes osmosis different from diffusion?
If a jogger runs 2 miles and burns 185 calories, how many calories would he burn jogging 3 miles
An explorer in the dense jungles of equatorial Africa leaves his hut. He takes 40 steps northeast, then 80 steps 60 degrees north of west, then 50 steps due sou