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. Does it really gauge one's ability to code ?

Does it really gauge one's ability to code ?

Scheduled Pinned Locked Moved The Lounge
questioncsharphelp
43 Posts 23 Posters 0 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.
  • V Offline
    V Offline
    virang_21
    wrote on last edited by
    #1

    I did an IKM assessment for C# and some of the questions are so odd it makes one wonder does it really gauge one's ability to code ? You are given a program and 5 outputs and you have to choose right one. One of the question was what is the value of x after running this code ?

        int x=0x0000FFFF;
    	x=x>>4;
    	x=x<<4;
    	x=x|0x0000000F;
    	x=x^0x55555555;
    

    Where in real world application am I going to use this ? I scored 76 out of 100. Last time I took .NET 4.5 test I scored 88. How does it help someone understand my ability to write code for actual application ?

    Zen and the art of software maintenance : rm -rf * Maths is like love : a simple idea but it can get complicated.

    D K P R U 12 Replies Last reply
    0
    • V virang_21

      I did an IKM assessment for C# and some of the questions are so odd it makes one wonder does it really gauge one's ability to code ? You are given a program and 5 outputs and you have to choose right one. One of the question was what is the value of x after running this code ?

          int x=0x0000FFFF;
      	x=x>>4;
      	x=x<<4;
      	x=x|0x0000000F;
      	x=x^0x55555555;
      

      Where in real world application am I going to use this ? I scored 76 out of 100. Last time I took .NET 4.5 test I scored 88. How does it help someone understand my ability to write code for actual application ?

      Zen and the art of software maintenance : rm -rf * Maths is like love : a simple idea but it can get complicated.

      D Offline
      D Offline
      den2k88
      wrote on last edited by
      #2

      In a lot of communication protocols. My Modbus class is basically composed of these, as all the classes that dialog with hardware - I had to write the driver for a I/O board with variable configurations that had to interface with a single falt array of values and these operations are the norm. Non-standard checksums are so standard (pun intended) that it is fairly common having to write code like this... preparing data for SIMD processing also may involve maskings and shifts, as the normalization of data from analog or digital transducers. Many transducers have offsets to be weeded out as fast as possible, others are scrambled in strange ways (as first 4 bit of first channel, first four of second channel, fuirst foru of nth channel ... second four bits of first channel and so on) so to have a flat model you may need to perform these kind of operations. Not the usual Web UI or accounting program of course.

      DURA LEX, SED LEX GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani

      1 Reply Last reply
      0
      • V virang_21

        I did an IKM assessment for C# and some of the questions are so odd it makes one wonder does it really gauge one's ability to code ? You are given a program and 5 outputs and you have to choose right one. One of the question was what is the value of x after running this code ?

            int x=0x0000FFFF;
        	x=x>>4;
        	x=x<<4;
        	x=x|0x0000000F;
        	x=x^0x55555555;
        

        Where in real world application am I going to use this ? I scored 76 out of 100. Last time I took .NET 4.5 test I scored 88. How does it help someone understand my ability to write code for actual application ?

        Zen and the art of software maintenance : rm -rf * Maths is like love : a simple idea but it can get complicated.

        K Offline
        K Offline
        KarstenK
        wrote on last edited by
        #3

        Somebody who is good in bit-shifting isnt long-term qualified for the stupidity and annoyance C# and XAML. :~

        Press F1 for help or google it. Greetings from Germany

        D M A 3 Replies Last reply
        0
        • K KarstenK

          Somebody who is good in bit-shifting isnt long-term qualified for the stupidity and annoyance C# and XAML. :~

          Press F1 for help or google it. Greetings from Germany

          D Offline
          D Offline
          den2k88
          wrote on last edited by
          #4

          If you were a woman I'd asked you out after this.

          DURA LEX, SED LEX GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani

          M 1 Reply Last reply
          0
          • K KarstenK

            Somebody who is good in bit-shifting isnt long-term qualified for the stupidity and annoyance C# and XAML. :~

            Press F1 for help or google it. Greetings from Germany

            M Offline
            M Offline
            megaadam
            wrote on last edited by
            #5

            :thumbsup::thumbsup::thumbsup: You saved my morning dude!

            ... such stuff as dreams are made on

            1 Reply Last reply
            0
            • D den2k88

              If you were a woman I'd asked you out after this.

              DURA LEX, SED LEX GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani

              M Offline
              M Offline
              megaadam
              wrote on last edited by
              #6

              den2k88 wrote:

              If you were a woman

              How do you know she is not? Never trust a user name.

              ... such stuff as dreams are made on

              D F 2 Replies Last reply
              0
              • V virang_21

                I did an IKM assessment for C# and some of the questions are so odd it makes one wonder does it really gauge one's ability to code ? You are given a program and 5 outputs and you have to choose right one. One of the question was what is the value of x after running this code ?

                    int x=0x0000FFFF;
                	x=x>>4;
                	x=x<<4;
                	x=x|0x0000000F;
                	x=x^0x55555555;
                

                Where in real world application am I going to use this ? I scored 76 out of 100. Last time I took .NET 4.5 test I scored 88. How does it help someone understand my ability to write code for actual application ?

                Zen and the art of software maintenance : rm -rf * Maths is like love : a simple idea but it can get complicated.

                P Offline
                P Offline
                PeejayAdams
                wrote on last edited by
                #7

                Who tests the testers? There are two really easy ways to find out whether or not someone can code - either look at their code and/or talk to them about code. Tests like this are really silly as you might do stuff like this all the time (unlikely as it is that you'd do it in C#) or it's going to be totally alien to you.

                Slogans aren't solutions.

                1 Reply Last reply
                0
                • M megaadam

                  den2k88 wrote:

                  If you were a woman

                  How do you know she is not? Never trust a user name.

                  ... such stuff as dreams are made on

                  D Offline
                  D Offline
                  den2k88
                  wrote on last edited by
                  #8

                  It's a conditional tense so it is still open to debate. Conditionals are quite tough in every language so I may have used not the most proper grammatical form :) That, and "on the Internet nobody knows you're a dog".

                  DURA LEX, SED LEX GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani

                  1 Reply Last reply
                  0
                  • M megaadam

                    den2k88 wrote:

                    If you were a woman

                    How do you know she is not? Never trust a user name.

                    ... such stuff as dreams are made on

                    F Offline
                    F Offline
                    F ES Sitecore
                    wrote on last edited by
                    #9

                    *woof*

                    1 Reply Last reply
                    0
                    • V virang_21

                      I did an IKM assessment for C# and some of the questions are so odd it makes one wonder does it really gauge one's ability to code ? You are given a program and 5 outputs and you have to choose right one. One of the question was what is the value of x after running this code ?

                          int x=0x0000FFFF;
                      	x=x>>4;
                      	x=x<<4;
                      	x=x|0x0000000F;
                      	x=x^0x55555555;
                      

                      Where in real world application am I going to use this ? I scored 76 out of 100. Last time I took .NET 4.5 test I scored 88. How does it help someone understand my ability to write code for actual application ?

                      Zen and the art of software maintenance : rm -rf * Maths is like love : a simple idea but it can get complicated.

                      R Offline
                      R Offline
                      realJSOP
                      wrote on last edited by
                      #10

                      This is basic programming stuff. They want to see if you can do the math. Do you know what the answer is?

                      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                      -----
                      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                      -----
                      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                      M P V L A 6 Replies Last reply
                      0
                      • R realJSOP

                        This is basic programming stuff. They want to see if you can do the math. Do you know what the answer is?

                        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                        -----
                        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                        -----
                        When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                        M Offline
                        M Offline
                        Mark_Wallace
                        wrote on last edited by
                        #11

                        I could see at a glance that it wasn't 42, so I lost interest.

                        I wanna be a eunuchs developer! Pass me a bread knife!

                        1 Reply Last reply
                        0
                        • R realJSOP

                          This is basic programming stuff. They want to see if you can do the math. Do you know what the answer is?

                          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                          -----
                          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                          -----
                          When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

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

                          There are probably about 1,431,677,610 things I can think of that are more basic than that!

                          Slogans aren't solutions.

                          1 Reply Last reply
                          0
                          • R realJSOP

                            This is basic programming stuff. They want to see if you can do the math. Do you know what the answer is?

                            ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                            -----
                            You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                            -----
                            When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                            V Offline
                            V Offline
                            virang_21
                            wrote on last edited by
                            #13

                            I know it is shifting value and what the flags are but in a limited time test I am not going to do a math on paper just to answer one correct answer and leave the rest of questions which has higher penalty if not completed. After coming home I did it first just to make sure what I selected was OK. Home | .NET Fiddle[^] I am happy that I passed the test but hard to tell if one really know all the concepts just by looking at score.

                            Zen and the art of software maintenance : rm -rf * Maths is like love : a simple idea but it can get complicated.

                            1 Reply Last reply
                            0
                            • V virang_21

                              I did an IKM assessment for C# and some of the questions are so odd it makes one wonder does it really gauge one's ability to code ? You are given a program and 5 outputs and you have to choose right one. One of the question was what is the value of x after running this code ?

                                  int x=0x0000FFFF;
                              	x=x>>4;
                              	x=x<<4;
                              	x=x|0x0000000F;
                              	x=x^0x55555555;
                              

                              Where in real world application am I going to use this ? I scored 76 out of 100. Last time I took .NET 4.5 test I scored 88. How does it help someone understand my ability to write code for actual application ?

                              Zen and the art of software maintenance : rm -rf * Maths is like love : a simple idea but it can get complicated.

                              U Offline
                              U Offline
                              User 12831244
                              wrote on last edited by
                              #14

                              What is this supposed to be testing? Programming ability or knowledge of C# / C++ / whatever other language share this syntax? It looks like this is trying to testing the latter and is not hugely usefull. If you can get the correct answer then that is great, if not then that does not mean anything. If this is testing for programming language knowledge then this is potentially usefull. (and yes, I can work this out - assuming the correct answer is 0x5555AAAA.)

                              1 Reply Last reply
                              0
                              • V virang_21

                                I did an IKM assessment for C# and some of the questions are so odd it makes one wonder does it really gauge one's ability to code ? You are given a program and 5 outputs and you have to choose right one. One of the question was what is the value of x after running this code ?

                                    int x=0x0000FFFF;
                                	x=x>>4;
                                	x=x<<4;
                                	x=x|0x0000000F;
                                	x=x^0x55555555;
                                

                                Where in real world application am I going to use this ? I scored 76 out of 100. Last time I took .NET 4.5 test I scored 88. How does it help someone understand my ability to write code for actual application ?

                                Zen and the art of software maintenance : rm -rf * Maths is like love : a simple idea but it can get complicated.

                                S Offline
                                S Offline
                                Slacker007
                                wrote on last edited by
                                #15

                                Knowing how to code C# syntactically, doesn't mean shit in the real world, in and of itself. I am more interested that my fellow engineers know how to solve complex problems, and you can't really take a fucking test for that, now can you. I am strongly against organized testing, as I have seen it prove nothing really, time and time again. We have fired more Engineers from our shop because they could not design, let alone implement, basic problem solving solutions, versus their ability to do basic C# fundamental tasks (you can learn this shit, duh). I don't think you can learn problem solving, I think you are born with that - true problem solving. In summary, syntax and code fundamentals you can learn (if they are not retarded), but problem solving is hereditary. I am more interested in one's ability to problem solve, then the proper way to concatenate a bloody string

                                S 1 Reply Last reply
                                0
                                • R realJSOP

                                  This is basic programming stuff. They want to see if you can do the math. Do you know what the answer is?

                                  ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                  -----
                                  You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                  -----
                                  When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

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

                                  John Simmons / outlaw programmer wrote:

                                  Do you know what the answer is?

                                  Yes. How did that code pass our code-review?

                                  Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                                  S 1 Reply Last reply
                                  0
                                  • V virang_21

                                    I did an IKM assessment for C# and some of the questions are so odd it makes one wonder does it really gauge one's ability to code ? You are given a program and 5 outputs and you have to choose right one. One of the question was what is the value of x after running this code ?

                                        int x=0x0000FFFF;
                                    	x=x>>4;
                                    	x=x<<4;
                                    	x=x|0x0000000F;
                                    	x=x^0x55555555;
                                    

                                    Where in real world application am I going to use this ? I scored 76 out of 100. Last time I took .NET 4.5 test I scored 88. How does it help someone understand my ability to write code for actual application ?

                                    Zen and the art of software maintenance : rm -rf * Maths is like love : a simple idea but it can get complicated.

                                    R Offline
                                    R Offline
                                    Rage
                                    wrote on last edited by
                                    #17

                                    Specifically: Well, you get to look at it with a bit of perspective : Rshift followed by Lshift of the same amount simply introduces as much zeroes as in the the shift on the right of your initial number. This means the first three operations neutralize in this case. So you simply XOR the last four 5 with F, which gives A (A5 pattern is commonly used to test memory, since both are made up of alternating 0 and 1's, that are swapped when XORed with F, so result of F-XORed A5 is always 5A). More generally: This is testing your logic, and how you can use your brain to solve something. You will probably never use it if you do not do low level, but sometimes it helps to solve complex situations to have a analytic mind.

                                    Do not escape reality : improve reality !

                                    1 Reply Last reply
                                    0
                                    • V virang_21

                                      I did an IKM assessment for C# and some of the questions are so odd it makes one wonder does it really gauge one's ability to code ? You are given a program and 5 outputs and you have to choose right one. One of the question was what is the value of x after running this code ?

                                          int x=0x0000FFFF;
                                      	x=x>>4;
                                      	x=x<<4;
                                      	x=x|0x0000000F;
                                      	x=x^0x55555555;
                                      

                                      Where in real world application am I going to use this ? I scored 76 out of 100. Last time I took .NET 4.5 test I scored 88. How does it help someone understand my ability to write code for actual application ?

                                      Zen and the art of software maintenance : rm -rf * Maths is like love : a simple idea but it can get complicated.

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

                                      virang_21 wrote:

                                      Where in real world application am I going to use this ?

                                      Your question, young Padawan, tells me that close to the hardware you programmed have not yet. Look at a processor's instruction set you must and such logical instructions find you will. Learn to use them and address calculations and bit masking you fear must not. :-)

                                      The language is JavaScript. that of Mordor, which I will not utter here
                                      This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                                      "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                                      S 1 Reply Last reply
                                      0
                                      • R realJSOP

                                        This is basic programming stuff. They want to see if you can do the math. Do you know what the answer is?

                                        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                        -----
                                        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                        -----
                                        When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

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

                                        John Simmons / outlaw programmer wrote:

                                        This is basic programming stuff.

                                        Only for those who have a notion what the processor actually does.

                                        The language is JavaScript. that of Mordor, which I will not utter here
                                        This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                                        "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                                        R 1 Reply Last reply
                                        0
                                        • L Lost User

                                          John Simmons / outlaw programmer wrote:

                                          This is basic programming stuff.

                                          Only for those who have a notion what the processor actually does.

                                          The language is JavaScript. that of Mordor, which I will not utter here
                                          This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                                          "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                                          R Offline
                                          R Offline
                                          realJSOP
                                          wrote on last edited by
                                          #20

                                          Which is basic knowledge for us old guys. I haven't personally seen any (production) .Net code that uses shift left/right, but its use was somewhat frequent in some unmanaged C++ code I've been involved with.

                                          ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                          -----
                                          You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                          -----
                                          When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                                          L F D G 4 Replies 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