Choose the correct answer
3 When a function receives a copy of the value stored in an argument used in the function call, it means the variable was _____.
a. pass by address
b. passed by value
c. passed by reference
d. assigned its original value when it was declared
Study the following function call in an algorithm:
Display “The results are”, getArea(len, wid)
2.4 Which of the following statements is also a valid function call?
a. if getArea (len, wid) = true then
b. if getArea (valLen, valWid) == true then
c. getrea (len, wid)
d. r = getArea(valLen, valWid )
Comments
Leave a comment