Math Quiz II

1/10/2005 9:10:34 AM

Math Quiz II

Just before I give any answers, here are some more .NET math questions:

  1. If x and y are double and x = y,  then 1/x = 1/y.
  2. If x is an int, then x >> 1  = x / 2.
  3. If x and y are decimal and x = y,  then x.ToString() == y.ToString().
  4. 1 / ( 1/ x ) = x.
  5. If x is a long, (long) (double) x = x.
  6. If x is a double and an integer and y = x, then x++ causes x > y.

Comments

 

Navigation

Categories

About

Net Undocumented is a blog about the internals of .NET including Xamarin implementations. Other topics include managed and web languages (C#, C++, Javascript), computer science theory, software engineering and software entrepreneurship.

Social Media