Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Friday programming quiz

Friday programming quiz

Scheduled Pinned Locked Moved The Lounge
20 Posts 11 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P PIEBALDconsult

    Given an enum (e.g. MyEnum) with a member (e.g. SomeValue = 42), what do you get when you execute: System.Console.WriteLine ( MyEnum.SomeValue )

    S Offline
    S Offline
    singh iz king
    wrote on last edited by
    #2

    SomeValue

    P N 2 Replies Last reply
    0
    • P PIEBALDconsult

      Given an enum (e.g. MyEnum) with a member (e.g. SomeValue = 42), what do you get when you execute: System.Console.WriteLine ( MyEnum.SomeValue )

      P Offline
      P Offline
      Peter_in_2780
      wrote on last edited by
      #3

      new Exception("Programming Question in Lounge") ;P ;P

      Software rusts. Simon Stephenson, ca 1994.

      1 Reply Last reply
      0
      • S singh iz king

        SomeValue

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #4

        Partial credit.

        1 Reply Last reply
        0
        • P PIEBALDconsult

          Given an enum (e.g. MyEnum) with a member (e.g. SomeValue = 42), what do you get when you execute: System.Console.WriteLine ( MyEnum.SomeValue )

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #5

          :confused: Is this a joke?

          Regards, Nish


          Are you addicted to CP? If so, check this out: The Code Project Forum Analyzer : Find out how much of a life you don't have! My technology blog: voidnish.wordpress.com

          P 1 Reply Last reply
          0
          • S singh iz king

            SomeValue

            N Offline
            N Offline
            Nish Nishant
            wrote on last edited by
            #6

            The OP's quite possibly joking here! It's almost Apr 1st. So maybe something to do with that!

            Regards, Nish


            Are you addicted to CP? If so, check this out: The Code Project Forum Analyzer : Find out how much of a life you don't have! My technology blog: voidnish.wordpress.com

            D 1 Reply Last reply
            0
            • P PIEBALDconsult

              Given an enum (e.g. MyEnum) with a member (e.g. SomeValue = 42), what do you get when you execute: System.Console.WriteLine ( MyEnum.SomeValue )

              N Offline
              N Offline
              Nithin Sundar
              wrote on last edited by
              #7

              42. :| Probably a joke. >.My Blog *cough* My Achievements: *cough* * Posted 25,000th message in GIT O_O * Official supporter of the "thatraja's GIT Meet Sponsor Foundation" :D What you do, when you don't know what to do is what you do when you don't want to do what you do.

              P 1 Reply Last reply
              0
              • P PIEBALDconsult

                Given an enum (e.g. MyEnum) with a member (e.g. SomeValue = 42), what do you get when you execute: System.Console.WriteLine ( MyEnum.SomeValue )

                D Offline
                D Offline
                dan sh
                wrote on last edited by
                #8

                Hop on hitchhiker! :)

                "Your code will never work, Luc's always will.", Richard MacCutchan[^]

                1 Reply Last reply
                0
                • N Nish Nishant

                  The OP's quite possibly joking here! It's almost Apr 1st. So maybe something to do with that!

                  Regards, Nish


                  Are you addicted to CP? If so, check this out: The Code Project Forum Analyzer : Find out how much of a life you don't have! My technology blog: voidnish.wordpress.com

                  D Offline
                  D Offline
                  dan sh
                  wrote on last edited by
                  #9

                  Nishant Sivakumar wrote:

                  It's almost Apr 1st.

                  Looks like you've been fooled, it's 01-Apr-2011 9.46 AM already. ;P

                  "Your code will never work, Luc's always will.", Richard MacCutchan[^]

                  1 Reply Last reply
                  0
                  • N Nithin Sundar

                    42. :| Probably a joke. >.My Blog *cough* My Achievements: *cough* * Posted 25,000th message in GIT O_O * Official supporter of the "thatraja's GIT Meet Sponsor Foundation" :D What you do, when you don't know what to do is what you do when you don't want to do what you do.

                    P Offline
                    P Offline
                    PIEBALDconsult
                    wrote on last edited by
                    #10

                    Partial credit.

                    1 Reply Last reply
                    0
                    • P PIEBALDconsult

                      Given an enum (e.g. MyEnum) with a member (e.g. SomeValue = 42), what do you get when you execute: System.Console.WriteLine ( MyEnum.SomeValue )

                      A Offline
                      A Offline
                      Abhinav S
                      wrote on last edited by
                      #11

                      Depends on the programming language.

                      The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.

                      P 1 Reply Last reply
                      0
                      • A Abhinav S

                        Depends on the programming language.

                        The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.

                        P Offline
                        P Offline
                        PIEBALDconsult
                        wrote on last edited by
                        #12

                        Ding! Ding! Ding!

                        L 1 Reply Last reply
                        0
                        • P PIEBALDconsult

                          Given an enum (e.g. MyEnum) with a member (e.g. SomeValue = 42), what do you get when you execute: System.Console.WriteLine ( MyEnum.SomeValue )

                          S Offline
                          S Offline
                          Saurabh Garg
                          wrote on last edited by
                          #13

                          Answer to the Ultimate Question of Life, the Universe, and Everything. -Saurabh

                          P 1 Reply Last reply
                          0
                          • N Nish Nishant

                            :confused: Is this a joke?

                            Regards, Nish


                            Are you addicted to CP? If so, check this out: The Code Project Forum Analyzer : Find out how much of a life you don't have! My technology blog: voidnish.wordpress.com

                            P Offline
                            P Offline
                            PIEBALDconsult
                            wrote on last edited by
                            #14

                            No

                            1 Reply Last reply
                            0
                            • S Saurabh Garg

                              Answer to the Ultimate Question of Life, the Universe, and Everything. -Saurabh

                              P Offline
                              P Offline
                              PIEBALDconsult
                              wrote on last edited by
                              #15

                              Partial credit plus bonus points.

                              1 Reply Last reply
                              0
                              • P PIEBALDconsult

                                Ding! Ding! Ding!

                                L Offline
                                L Offline
                                Lost User
                                wrote on last edited by
                                #16

                                No - that's what you get when you execute Write chr$(7), chr$(7), chr$(7) on a teletype machine.

                                MVVM# - See how I did MVVM my way ___________________________________________ .\\axxx (That's an 'M')

                                1 Reply Last reply
                                0
                                • P PIEBALDconsult

                                  Given an enum (e.g. MyEnum) with a member (e.g. SomeValue = 42), what do you get when you execute: System.Console.WriteLine ( MyEnum.SomeValue )

                                  R Offline
                                  R Offline
                                  Roger Wright
                                  wrote on last edited by
                                  #17

                                  Nothing. The target printer will inexplicably turn into a potted petunia embedded in a whale falling from orbit into a planet it has never seen before. Then your phone will ring, and I'll invite you to lunch at a most improbable restaurant.

                                  Will Rogers never met me.

                                  P 1 Reply Last reply
                                  0
                                  • R Roger Wright

                                    Nothing. The target printer will inexplicably turn into a potted petunia embedded in a whale falling from orbit into a planet it has never seen before. Then your phone will ring, and I'll invite you to lunch at a most improbable restaurant.

                                    Will Rogers never met me.

                                    P Offline
                                    P Offline
                                    PIEBALDconsult
                                    wrote on last edited by
                                    #18

                                    This must be Thursday.

                                    R 1 Reply Last reply
                                    0
                                    • P PIEBALDconsult

                                      This must be Thursday.

                                      R Offline
                                      R Offline
                                      Roger Wright
                                      wrote on last edited by
                                      #19

                                      Hmmmm... [checks clock] Yup, still Thursday for another hour and 40 minutes. After midnite, everything could change.

                                      Will Rogers never met me.

                                      1 Reply Last reply
                                      0
                                      • P PIEBALDconsult

                                        Given an enum (e.g. MyEnum) with a member (e.g. SomeValue = 42), what do you get when you execute: System.Console.WriteLine ( MyEnum.SomeValue )

                                        J Offline
                                        J Offline
                                        Joan M
                                        wrote on last edited by
                                        #20

                                        You've just put the meaning of universe, life and everything else in a single enum! Now... where do we have that Nobel Prize? :rolleyes:

                                        [www.tamelectromecanica.com] Robots, CNC and PLC machines for grinding and polishing.

                                        1 Reply Last reply
                                        0
                                        Reply
                                        • Reply as topic
                                        Log in to reply
                                        • Oldest to Newest
                                        • Newest to Oldest
                                        • Most Votes


                                        • Login

                                        • Don't have an account? Register

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular
                                        • World
                                        • Users
                                        • Groups