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. Funny interview question

Funny interview question

Scheduled Pinned Locked Moved The Lounge
questioncsharpc++htmlcom
39 Posts 19 Posters 7 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.
  • U Uwe Keim

    You should rather ask him whether he knows CodeProject.com. If he/she doesn't, I would recommend NOT taking him. If he answers "YES of course", ask him whether he is a member, and only take him if his member ID is less than 50000. -- Scanned MSDN Mag ad with YOUR name: www.magerquark.de/misc/CodeProject.html See me: www.magerquark.de

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

    Uwe Keim wrote: You should rather ask him whether he knows CodeProject.com. If he/she doesn't, I would recommend NOT taking him. The problem is that only an elite minority have regular internet access in Trivandrum. Forget regular, I wonder how many people even manage to chk mail at least once a week! This is the "3rd" word Uwe and Trivandrum is a rather 3rd worldish 3rd world city. Nish


    Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

    1 Reply Last reply
    0
    • V Vagif Abilov

      The interview result might be quite funny: a developer A is given a job because his program did not compile. Developer's program compiled unfortuntely, so he's not got a job. An exceptional case where you have to show your skills in writing a program that does not compile. :) Vagif Abilov MCP (Visual C++) Oslo, Norway Hex is for sissies. Real men use binary. And the most hardcore types use only zeros - uppercase zeros and lowercase zeros. Tomasz Sowinski

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

      Well, most people I interviewed today wouldn't write a 15 line program (C or C++) without making 20 errors. I was horrified by the lack of quality in the candidates :-( Things are really bad now I guess! Everyone is doing Java and C# nowadays. Too few C++ coders left on this planet! Nish


      Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

      V 1 Reply Last reply
      0
      • N Nish Nishant

        Hi guys Today we were interviewing some candidates for some programmer jobs. My boss suggested a few interview questions to us and one of them was this :- Write a valid C program that would not comopile under C++ Hmmmm, now what kinda question is that? Would it be a proper test of a candidate? As for me I was confused for a while till I thought of type safety in C++. I haven't tried it out but I presume that if we do some unsafe type casting it'll be valid in C but invalid in C++. What do ya guys think? Nish


        Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

        J Offline
        J Offline
        Jim A Johnson
        wrote on last edited by
        #22

        Trivia should not be included in interview questions.

        1 Reply Last reply
        0
        • V Vagif Abilov

          The task was opposite: to write a valid C program that will not compile in C++. "this" is not a valid "C" keyword. Vagif Abilov MCP (Visual C++) Oslo, Norway Hex is for sissies. Real men use binary. And the most hardcore types use only zeros - uppercase zeros and lowercase zeros. Tomasz Sowinski

          E Offline
          E Offline
          Eddie Velasquez
          wrote on last edited by
          #23

          Vagif Abilov wrote: "this" is not a valid "C" keyword. Exactly the point. Because "this" is not a C keyword it can be used as an identifier so his prog will compile as a C program and not as a C++ program


          1 Reply Last reply
          0
          • U Uwe Keim

            You should rather ask him whether he knows CodeProject.com. If he/she doesn't, I would recommend NOT taking him. If he answers "YES of course", ask him whether he is a member, and only take him if his member ID is less than 50000. -- Scanned MSDN Mag ad with YOUR name: www.magerquark.de/misc/CodeProject.html See me: www.magerquark.de

            E Offline
            E Offline
            Eddie Velasquez
            wrote on last edited by
            #24

            If his/her/its member ID is under 100 then he/she/it must be a genius then! ;P


            C 1 Reply Last reply
            0
            • N Nish Nishant

              Well, most people I interviewed today wouldn't write a 15 line program (C or C++) without making 20 errors. I was horrified by the lack of quality in the candidates :-( Things are really bad now I guess! Everyone is doing Java and C# nowadays. Too few C++ coders left on this planet! Nish


              Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

              V Offline
              V Offline
              Vagif Abilov
              wrote on last edited by
              #25

              Nishant S wrote: Everyone is doing Java and C# nowadays. Too few C++ coders left on this planet! I'm pretty sure there are more C++ programmers than C# guys. And probably more C/C++ programmers than Java/C# together. Could it be that it was just C++ guys making 20 errors? :) Vagif Abilov MCP (Visual C++) Oslo, Norway Hex is for sissies. Real men use binary. And the most hardcore types use only zeros - uppercase zeros and lowercase zeros. Tomasz Sowinski

              N 1 Reply Last reply
              0
              • V Vagif Abilov

                Nishant S wrote: Everyone is doing Java and C# nowadays. Too few C++ coders left on this planet! I'm pretty sure there are more C++ programmers than C# guys. And probably more C/C++ programmers than Java/C# together. Could it be that it was just C++ guys making 20 errors? :) Vagif Abilov MCP (Visual C++) Oslo, Norway Hex is for sissies. Real men use binary. And the most hardcore types use only zeros - uppercase zeros and lowercase zeros. Tomasz Sowinski

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

                Vagif Abilov wrote: Could it be that it was just C++ guys making 20 errors? Hmmmm, could be true. I guess it'd be better for everyone if fellows like that took up C# or Java Nish :)


                Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

                P 1 Reply Last reply
                0
                • N Nish Nishant

                  Hi guys Today we were interviewing some candidates for some programmer jobs. My boss suggested a few interview questions to us and one of them was this :- Write a valid C program that would not comopile under C++ Hmmmm, now what kinda question is that? Would it be a proper test of a candidate? As for me I was confused for a while till I thought of type safety in C++. I haven't tried it out but I presume that if we do some unsafe type casting it'll be valid in C but invalid in C++. What do ya guys think? Nish


                  Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

                  V Offline
                  V Offline
                  Vivek Rajan
                  wrote on last edited by
                  #27

                  I agree it is a really stupid question, BUT if someone can answer it on the spot , you've got a winner !! IMO, the *main* thing to check in an interview is attitude. BTW: How about this ? file a.c -------- // This trivial program has no statements // C cant deal with '//' style comments

                  E 1 Reply Last reply
                  0
                  • M Michael Dunn

                    Just use a C++ keyword that is not in C, such as: main() { int this=1; } ;) Seems rather silly as an interview question, though. --Mike-- Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm

                    B Offline
                    B Offline
                    Brian Delahunty
                    wrote on last edited by
                    #28

                    Quick and easy :-D Regards, Brian Dela :suss:

                    1 Reply Last reply
                    0
                    • N Nish Nishant

                      Vagif Abilov wrote: Could it be that it was just C++ guys making 20 errors? Hmmmm, could be true. I guess it'd be better for everyone if fellows like that took up C# or Java Nish :)


                      Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

                      P Offline
                      P Offline
                      Paul Riley
                      wrote on last edited by
                      #29

                      Nishant S wrote: I guess it'd be better for everyone if fellows like that took up C# or Java No, it'd be better for everyone if guys like that went back to work at MacDonalds instead of thinking "anyone can be a programmer". Someone who writes bad C++ is likely to write bad C# and bad Java as well. Paul

                      1 Reply Last reply
                      0
                      • N Nish Nishant

                        Hi guys Today we were interviewing some candidates for some programmer jobs. My boss suggested a few interview questions to us and one of them was this :- Write a valid C program that would not comopile under C++ Hmmmm, now what kinda question is that? Would it be a proper test of a candidate? As for me I was confused for a while till I thought of type safety in C++. I haven't tried it out but I presume that if we do some unsafe type casting it'll be valid in C but invalid in C++. What do ya guys think? Nish


                        Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

                        _ Offline
                        _ Offline
                        _Magnus_
                        wrote on last edited by
                        #30

                        If i write a program that does not compile under C OR C++, will i get the job then? :confused: /Magnus


                        - I don't necessarily agree with everything I say

                        1 Reply Last reply
                        0
                        • N Nish Nishant

                          Michael Martin wrote: ...and if you wondering it's 1 months tomorrow. 11 rather :-( Nish


                          Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

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

                          Nishant S wrote: 11 rather :( Yep, but us poor unemployed types can't just be giving away repetitive numbers when we type now can we? :-D Michael Martin Australia mjm68@tpg.com.au "I personally love it because I can get as down and dirty as I want on the backend, while also being able to dabble with fun scripting and presentation games on the front end." - Chris Maunder 15/07/2002

                          B 1 Reply Last reply
                          0
                          • V Vivek Rajan

                            I agree it is a really stupid question, BUT if someone can answer it on the spot , you've got a winner !! IMO, the *main* thing to check in an interview is attitude. BTW: How about this ? file a.c -------- // This trivial program has no statements // C cant deal with '//' style comments

                            E Offline
                            E Offline
                            Eddie Velasquez
                            wrote on last edited by
                            #32

                            Vivek Rajan wrote: // This trivial program has no statements // C cant deal with '//' style comments C99 can.


                            T 1 Reply Last reply
                            0
                            • L Lost User

                              Nishant S wrote: 11 rather :( Yep, but us poor unemployed types can't just be giving away repetitive numbers when we type now can we? :-D Michael Martin Australia mjm68@tpg.com.au "I personally love it because I can get as down and dirty as I want on the backend, while also being able to dabble with fun scripting and presentation games on the front end." - Chris Maunder 15/07/2002

                              B Offline
                              B Offline
                              Brian Delahunty
                              wrote on last edited by
                              #33

                              Michael Martin wrote: Yep, but us poor unemployed types can't just be giving away repetitive numbers when we type now can we? :rolleyes: Regards, Brian Dela :suss:

                              1 Reply Last reply
                              0
                              • E Eddie Velasquez

                                If his/her/its member ID is under 100 then he/she/it must be a genius then! ;P


                                C Offline
                                C Offline
                                ColinDavies
                                wrote on last edited by
                                #34

                                Eddie Velasquez wrote: If his/her/its member ID is under 100 then he/she/it must be a genius then! Agreed. And under 50 is super genius. Regardz Colin J Davies

                                Sonork ID 100.9197:Colin

                                You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining. Said by Roger Wright about me.

                                P E 2 Replies Last reply
                                0
                                • C ColinDavies

                                  Eddie Velasquez wrote: If his/her/its member ID is under 100 then he/she/it must be a genius then! Agreed. And under 50 is super genius. Regardz Colin J Davies

                                  Sonork ID 100.9197:Colin

                                  You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining. Said by Roger Wright about me.

                                  P Offline
                                  P Offline
                                  Paul Ingles
                                  wrote on last edited by
                                  #35

                                  Colin^Davies wrote: under 50 is super genius Haha, and what's your member ID number? ;) -- Paul "I need the secure packaging of Jockeys. My boys need a house!" - Kramer, in "The Chinese Woman" episode of Seinfeld MS Messenger: paul@oobaloo.co.uk Sonork: 100.22446

                                  1 Reply Last reply
                                  0
                                  • C ColinDavies

                                    Eddie Velasquez wrote: If his/her/its member ID is under 100 then he/she/it must be a genius then! Agreed. And under 50 is super genius. Regardz Colin J Davies

                                    Sonork ID 100.9197:Colin

                                    You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining. Said by Roger Wright about me.

                                    E Offline
                                    E Offline
                                    Eddie Velasquez
                                    wrote on last edited by
                                    #36

                                    Colin^Davies wrote: And under 50 is super genius So... you're barely a super genius? ;)


                                    C 1 Reply Last reply
                                    0
                                    • E Eddie Velasquez

                                      Colin^Davies wrote: And under 50 is super genius So... you're barely a super genius? ;)


                                      C Offline
                                      C Offline
                                      ColinDavies
                                      wrote on last edited by
                                      #37

                                      Eddie Velasquez wrote: So... you're barely a super genius? I guess so. :-) Regardz Colin J Davies

                                      Sonork ID 100.9197:Colin

                                      You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining. Said by Roger Wright about me.

                                      1 Reply Last reply
                                      0
                                      • U Uwe Keim

                                        You should rather ask him whether he knows CodeProject.com. If he/she doesn't, I would recommend NOT taking him. If he answers "YES of course", ask him whether he is a member, and only take him if his member ID is less than 50000. -- Scanned MSDN Mag ad with YOUR name: www.magerquark.de/misc/CodeProject.html See me: www.magerquark.de

                                        T Offline
                                        T Offline
                                        Todd Smith
                                        wrote on last edited by
                                        #38

                                        Uwe Keim wrote: If he answers "YES of course", ask him whether he is a member, and only take him if his member ID is less than 50000. He might end up hiring the name which should not be spoken. Nish could become the CodeProject King! Todd Smith

                                        1 Reply Last reply
                                        0
                                        • E Eddie Velasquez

                                          Vivek Rajan wrote: // This trivial program has no statements // C cant deal with '//' style comments C99 can.


                                          T Offline
                                          T Offline
                                          Todd Smith
                                          wrote on last edited by
                                          #39

                                          Eddie Velasquez wrote: C99 can. I was gonna say. Most modern C compilers will accept either style comments now. VC++ does. Todd Smith

                                          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