Function Question

Two functions Diff(N) and Sum(N) are defined as follows

Diff(N) takes a non-negative integer N as a parameter and returns the difference of N and the number obtained by reversing the digit/digits of N.

Sum(N) takes a non-negative integer N as a parameter and returns the sum of N and the number obtained by reversing the digit/digits of N.

For a two digit natural number Y with distinct digits, a set of five non-negative integers {A, B, C, D, E} is defined such that

A = Diff(Y);      B = Diff(A);

C = Diff(B);      D = Diff(C);

E = Diff(D);      F = Diff(E);

Q1. If E is not equal to zero, what is Y?
a. 86                   b. 76                 c. 90                        d. Cannot be determined

Q2. If Y is greater than 50, what is F?
a. 0                    b. 9                        c. 27                      d. None of these

Q3. If Sum(A) = Sum (B) = Sum(C) = K and K > Sum (D) , what could be the value of A?
a. 18                   b. 27                    c. 36                     d. 58

__________________

n/a

SOLUTION

follwing are the answer

Q1. If E is not equal to zero, what is Y?
a. 86 b. 76 c. 90 d. Cannot be determined

answer : = d. Cannot be determined

Q2. If Y is greater than 50, what is F?
a. 0 b. 9 c. 27 d. None of these

answer : = a. 0

Q3. If Sum(A) = Sum (B) = Sum(C) = K and K > Sum (D) , what could be the value of A?
a. 18 b. 27 c. 36 d. 58

answer : b. 27

plz verify this answer .............

@nilay

hey nilay yaar please explain ur answers....

Answer to Q2. is a. zeroBut
Answer to Q2. is a. zero
But I don’t understand what ‘ll happen if the number is negative

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <small> <sup> <sub> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <h1> <h2> <h3> <h4> <h5> <h6> <font> <img> <br> <br /> <p> <div> <span> <b> <i> <u>
  • Lines and paragraphs break automatically.

More information about formatting options