Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1) The && symbol is called the address-of operator. Select one: True False 2) Yo

ID: 3575851 • Letter: 1

Question

1) The && symbol is called the address-of operator.

Select one:

True

False

2) You pass a variable by value when you want the receiving function to change the contents of the variable.

Select one:

True

False

3) The _____ tells the computer to pass the variable's address rather than a copy of its contents.

Select one:

a. value-returning function

b. return statement

c. address-of operator

d. pass by reference operator

4) An actual argument can be a variable, named constant, or literal constant.

Select one:

True

False

5) Unless you specify otherwise, variables are passed to functions _____.

Select one:

a. by value

b. by reference

c. by address

d. by parameter

6) If you want a function to know the contents of a variable, but don't want the function to modify the value, you need to pass the variable _____.

Select one:

a. by value

b. by reference

c. by address

d. by parameter

Explanation / Answer

Please find answers below :

1) False : single & is adress of operator

2) False: You need to pass variable by reference to change the contents by its receiving function

3) d. pass by reference operator

4) True : An actual argument can be a variable, named constant, or literal constant.

5) a. by value : Reference/address is only passed if you explicitly specifies it

6) a. by value : Pass by value variables can't be modified