1.

If x, and y are positive numbers both are less than one, then maximum value of floor(x + y) is?(a) 0(b) 1(c) 2(d) -1The question was asked at a job interview.My doubt stems from Floor and Ceiling Function topic in division Basic Structures: Sets, Functions, Sequences, Sums and Matrices of Discrete Mathematics

Answer» RIGHT answer is (b) 1

Explanation: SINCE X < 1 and y < 1 this implies x + y < 2 which means maximium VALUE of floor(x + y) is 1.


Discussion

No Comment Found

Related InterviewSolutions