Binary

  • Happy New Year to all of you......

  • Happy New Year, Everybody!

    Hope you are all able to keep your resolutions; I'll try my best to complete mine. One of which is to be more active in the Sql Server community.

    ---------------
    Mel. 😎

  • Sad that 9%, er 1001%, selected answers that ended in 1!

    Thanks for the question.

    [font="Verdana"]Please don't go. The drones need you. They look up to you.[/font]
    Connect to me on LinkedIn

  • Great question and happy new year!



    Everything is awesome!

  • Thomas Abraham (1/2/2014)


    Sad that 9%, er 1001%, selected answers that ended in 1!

    Thanks for the question.

    +1010:-D

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • Thanks Steve, Kind of like back to the very basics! Very Cool!

    M.

    Not all gray hairs are Dinosaurs!

  • IgorMi (1/1/2014)


    Cool, in

    11111011110

    it was essential to spot that the first two bits (1) and the last one (0) are constructing the right answer.

    Regards,

    IgorMi

    That's pretty much how I did it. Since the last bit had to be a zero since it's an even number, that narrowed it down to 2 answers. Since they differed on the second bit, I only calculated that far.

    Love multiple choice.

  • Nice question.

    But although the explanation is correct adding up the 1 bits is doing it the hard way. 2014 is 2047 - 33, so the bits with are 0 must be the bit that represents 1 and teh bit that represents 32 - that's much easier. Or doing it by elimination as suggested by Igor and Marcia - 2014 is oddeven so the last bit is zero; it's bigger that 1536, so the 2nd bit (from the significant end) is not zero. That eliminates 3 of the 4 options, and is a lot easier than adding up the powers of two indicated by 10 bits to see if they come to 2014 even if you start by testing the correct value: if you did it that way and came to the correct value last you would end up adding up 3 sets of 10 numbers - no need to ad up teh 4th set once you know the others are all wrong - really a lot of work compared with the not-so-hard ways of doing it.

    Tom

  • Thanks for the fun question Steve. Haven't converted anything from binary since school. Happy 2014 all.

  • twin.devil (1/1/2014)


    Bill (DBAOnTheGo) (12/31/2013)


    There are only 10 types of people in this world.

    +10 🙂

    +10 🙂

    Happy 2014...

  • Great question.

    Happy 11111011110 to you all!

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • easy one this year on my blog, my happy new year wishes were in binary format 🙂

  • Excellent Question. Reducing things to Binary should remind Computer people of our origins.

  • Indeed. Back to basic.

    There are 10 kind of people.

    Those who understand binary counting and those who don't.

    Before I went to school I thought

    1 + 1 = 3

    On elementary school I find out it was less

    1 + 1 = 2

    Computer science reduced this again

    1 + 1 = 1

Viewing 14 posts - 16 through 28 (of 28 total)

You must be logged in to reply to this topic. Login to reply