1- what is the output of this program? int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } main() { for fn(7); } a) 10 b) 11 c) 12 d) 9 b) ____________________________________ 2- How long does this loop run: for(int x=0; x=3; x++) a) Never b) once c) Three times d) Forever d) _____________________________________ 3- What does the following do: void afunction(int *x) { x=new int; *x=12; } int main() { int v=10; afunction(&v); cout< void function(); int y=4; main() { y=5; printf("%d",y); function(); } void function() { int y=5; y=6; printf("-%d",y); } a) 4-4 b) 4-6 c) 5-4 d) 5-6 d) ________________________________________________________ 17- Evaluate as true or false: !( 1&&0 || !1) a) True b) False c) Invalid statement a) __________________________________________________________ 18- True or false, if you keep incrementing an integer, it may become negative? a) True b) False a) __________________________________________________________ 19- What does strcat(an_array, "This"); do? a) Copies "This" into an_array b) Adds "This" to the end of an_array c) Compares an_array and "This" d) there is no such function b) ___________________________________________________________ 20- What is the final value of x when the code int x; for(x=0; x<10; x++) {} is run? a) 10 b) 9 c) 0 d) 1 a) ____________________________________________________________