Question: Name CSC 111 Date: Quiz #5 Part I: Multiple choice: Write the one choice that best completes the statement or answers the question. MULTIPLE CHOICE.

 Name CSC 111 Date: Quiz #5 Part I: Multiple choice: Write

Name CSC 111 Date: Quiz #5 Part I: Multiple choice: Write the one choice that best completes the statement or answers the question. MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1) Arguments to functions always appear within 1) A) curly braces C) parentheses B) brackets D) quotation marks 2) When you invoke a function with a parameter, the value of the argument is passed to the 2) parameter. This is referred to as A) call by name C) call by reference B) call by value D) function invocation 3) If a parameter is a reference variable, this parameter becomes an alias for the original variable. This Is referred to as A) pass by reference C) function invocation B) pass by name D) pass by value 4) The actual parameters of a functionm A) true B) false 5) 5) What is the representation of the third element in an array called a? B) al3] A) a(2) C) a(3) D) al2] 6) When you pass an array to a function, the function receives 6) A) a copy of the array C) a copy of the first element B) the length of the array D) the reference of the array 7) The array index of the first element in an array is 0 7) A) true B) false 8) Suppose array a is int all 1,2,3), what is a[0l - al2]? ?) ? 8) A) 2 C)-1 D) -2 E) 1 declares an array of char 9) A) charlJ chars B) char charsl C) charl] char D) char charfl 10) If the address of an integer array IntArray is 32FO, what is the address of IntArray[51? A) 3304 B) 3305 C) 3220 D) 32F5 11) A call for the function with a void return type is always a statement it self, but a call for the function 11) with a non-void return type can be treated as either a statement or an expression A) true B) false

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!