## .NET Math Quiz

I have decided to test how numerate (mathematically literate) my readership is. These are questions that one might find in a high school test... except I substituted the set of *int*s or *long*s for that of integers and the set of *double*s for that of reals.

For each statement, answer true or false.

If x, y, z are ints, ...

- If x < 0, then -x > 0.
- If x = -x, then x = 0.
- If x -y > 0, then x > y.
- If x and y are positive , then x + y > x.
- If x and y are positive, then (double)x * (double)y = (long)x * (long)y.
- If x-y>0 and y-z>0, then x-z>0.

If x, y, z are doubles, ...

- x = x.
- If x>y is false, then x<=y is true.
- If x > 0, then x - x = 0.
- If x and y are positive integers, then x + y > x.
- If x and y are positive integers, then the statement "x + y = x for all y" is false for all x.
- If x <= 0 is false, then x > 0.
- If x and y are longs, then (double)(x + y) = (long)(x + y).
- if x.Equals(y), then x = y.
- If x.Equals(-x), then x = 0.
- if x.ComparesTo(y) < 0, then x < y.