= x * y < i + j || k
= 0.5 * 0.0 < 0 + 1 || -1
= 0.0 < 0 + 1 || -1
= 0.0 < 1 || -1
= 1 || -1
= 1
So, option (C) is correct.
PREVIOUS YEAR SOLVED PAPERS MCQ - JULY 2016 Paper 2
int (*f())[ ]; declares a function returning a pointer to an array of integers.
- A The member functions of the class generating friendship can access the members of the friend class.
- B All member functions of the class granted friendship have unrestricted access to the members of the class granting the friendship.
- C Class friendship is reciprocal to each other.
- D There is no such concept.
We have function:
int f (int n)
{ if (n = = 0) then return n;
else
return n + f(n-2);
}
we have to find output for n = 100 i.e int f (100) { if (n = = 0) then return n; //failure// else return 100 + f (98) { if (n = = 0) then return n; //failure// else return 98 + f (96) { if (n = = 0) then return n; //failure// else return 96 + f (94).......................f(0);// It will be a AP series of 100 , 98, 96,.........0// ; }; }; } Sum of series when we know first and last term and no of terms: Sn = n / 2 * (first term + last term) i.e. 51 / 2 * (100 + 0). = 51 * 50 = 2550. So, option (A) is correct.