 51. When we pass an array as an argument to a function, what actually gets passed ? a. Address of the array b. Values of the elements of the array c. Base address of the array d. Number of elements of the array

 52. While (87) printf("computer");The above C statement will a. print "computer" 87 times b. print "computer" 0 times c. print "computer" 1 times d. print "computer" infinite times

 53. A friend function can be used to a. avoid arguments between classes b. allow access to classes whose source code is unavailable c. allow one class to access an unrelated class d. None of the above
 Answer: (c).allow one class to access an unrelated class

 54. What is the size of the following Union ? Assume that the size of int = 2, size of float = 4, size of char = 1union tag {int a;float b;char c;}; a. 2 b. 4 c. 1 d. 7

 55. What is the output of the following program segment?sum(n){if ( n < 1 ) return n;else return (n + sum(n–1));}main(){printf(“%d”, sum(5));} a. 10 b. 16 c. 15 d. 14

 56. Assume that x and y are non-zero positive integers. What does the following program segment perform?while (x!=0){if (x>y)x = x-yelsey=y-x;printf(“%d”,x); a. Computes LCM of two numbers b. Computes GCD of two numbers c. Divides large number with small number d. Subtracts smaller number from large number
 Answer: (b).Computes GCD of two numbers

 57. Consider the following program segment:d=0;for(i=1; i<31, ++i)for(j=1; j<31, ++j)for(k=1; k<31, ++k)if ((i+j+k)%3)= = 0);d = d + 1;printf(“%d”, d);The output will be a. 9000 b. 3000 c. 90 d. None of the above