Computer Science 101 Quiz L Name ______________________ 1. The number of ints created by the following declaration int twod[3][6]; a. 9 b. 10 c. 18 d. 36 2. Which of the following is the correct way to pass the address of row 2 of the array to a function declared as fun(int *vals); a. fun(twod) b. fun(twod[2][0]) c. fun(&twod[2]) d. fun(twod[2]) 3. Which of the following array elements lies nearest in memory to twod[0][0] a. twod[0][5] b. twod[1][1] c. twod[1][0] d. twod[2][5] 4. Suppose three adjacent pixels have the values 10, 15, 20 What is the inner product of these three values with a row of a filter which has the values 0.1 0.2 and 0.1. 5. Suppose the inner_product function has the following header: unsigned char inner_prod( struct pix_type *pix, float *filt) the proper way to compute a single element of the inner product is: a. sum = sum + pix.g * filt; b. sum = sum + pix->g * filt; c. sum = sum + pix->g * (*filt); d. sum = sum + pix.g * (*filt);