About

I am a software developer in Seattle, building a new AI software company.

Ads

May 2012

Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Ads


« Google - Extension of the Brain | Main | Math Quiz II »

January 09, 2005

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8345242f069e200d8342283fd53ef

Listed below are links to weblogs that reference .NET Math Quiz:

» .NET Math Quiz from Dan McKinley
[Read More]

» .NET Math Quiz from Dan McKinley
[Read More]

» .NET Math Quiz from Dan McKinley
[Read More]

» RE: .NET Math Quiz from IImplement
[Read More]

Comments

Brad Wilson

Subtitled: Know Your Edge Cases

:)

Chris Nahr

Nice test, let's see...

int 1 and 2 are true.
int 3 and 6 should be true, unless there's some nasty trick that I don't grasp right now.
int 4 is false because of possible overflow.
int 5 is false because of possible overflow or rounding errors.

I'm not even going to touch the double section until you tell us that there can be no NaN or Inf values. :)

PS: SharpReader doesn't display any comments for your blog. No idea why that might be so.

Jeroen Frijters

Only the two 5s are true, all the others are false.

Jeroen Frijters

Uhhmm.. The int 5 is also false. I still think the double 5 is true though.

James Curran

int 5 is false as well. (Think: Digits)

aminah

If x>y, x-y >0, andd if x

The comments to this entry are closed.