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. Questions on OOP

Questions on OOP

Scheduled Pinned Locked Moved The Lounge
c++questioncareer
31 Posts 18 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.
  • J Offline
    J Offline
    Juan Carlos Cobas
    wrote on last edited by
    #1

    The company of a friend of mine is looking for a C/C++ programmer and he’s trying to collect some C/C++ questions for the interview. In addition to simple, plain C questions (he already has plenty of them), he is interested in questions dealing with basic OOP concepts Any suggestion? Thanks :-)

    I _ A G 4 Replies Last reply
    0
    • J Juan Carlos Cobas

      The company of a friend of mine is looking for a C/C++ programmer and he’s trying to collect some C/C++ questions for the interview. In addition to simple, plain C questions (he already has plenty of them), he is interested in questions dealing with basic OOP concepts Any suggestion? Thanks :-)

      I Offline
      I Offline
      Ian Darling
      wrote on last edited by
      #2

      Juan Carlos Cobas wrote: Any suggestion? Well, as for C++ questions, you might ask about the 4 C++ casts, single/multiple/virtual and public/protected/private inheritance, probably some stuff about the standard library. As for OO and related stuff, talk about Design Patterns, UML, ask the candidates about has-a and is-a and how you might implement them (Liskov Substitution Principle? I think that's what it's called), encapsulation, information hiding, object heirarchies, generic/template programming (orthoganal to OO). Note that not knowing some of this stuff isn't fatal - as long as the candidate shows an interest in learning it. -- Ian Darling "The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky

      B J J 3 Replies Last reply
      0
      • J Juan Carlos Cobas

        The company of a friend of mine is looking for a C/C++ programmer and he’s trying to collect some C/C++ questions for the interview. In addition to simple, plain C questions (he already has plenty of them), he is interested in questions dealing with basic OOP concepts Any suggestion? Thanks :-)

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

        He could put out an add like this, will filter out those who have no clue. :) Add[^] /Magnus


        - I don't necessarily agree with everything I say

        D R I 3 Replies Last reply
        0
        • _ _Magnus_

          He could put out an add like this, will filter out those who have no clue. :) Add[^] /Magnus


          - I don't necessarily agree with everything I say

          D Offline
          D Offline
          David Parrott
          wrote on last edited by
          #4

          Ooh, fantastic ad. David Parrott

          1 Reply Last reply
          0
          • I Ian Darling

            Juan Carlos Cobas wrote: Any suggestion? Well, as for C++ questions, you might ask about the 4 C++ casts, single/multiple/virtual and public/protected/private inheritance, probably some stuff about the standard library. As for OO and related stuff, talk about Design Patterns, UML, ask the candidates about has-a and is-a and how you might implement them (Liskov Substitution Principle? I think that's what it's called), encapsulation, information hiding, object heirarchies, generic/template programming (orthoganal to OO). Note that not knowing some of this stuff isn't fatal - as long as the candidate shows an interest in learning it. -- Ian Darling "The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky

            B Offline
            B Offline
            BadJerry
            wrote on last edited by
            #5

            Gosh! I am not going to get that job! ;)

            A 1 Reply Last reply
            0
            • _ _Magnus_

              He could put out an add like this, will filter out those who have no clue. :) Add[^] /Magnus


              - I don't necessarily agree with everything I say

              I Offline
              I Offline
              Ian Darling
              wrote on last edited by
              #6

              That would have been much cooler in hex :-) char msg[] = {0x4E, 0x6F, 0x77, 0x20, 0x48, 0x69, 0x72, 0x69, 0x6E, 0x67, 0x00}; -- Ian Darling "The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky

              1 Reply Last reply
              0
              • _ _Magnus_

                He could put out an add like this, will filter out those who have no clue. :) Add[^] /Magnus


                - I don't necessarily agree with everything I say

                R Offline
                R Offline
                Roger Allen
                wrote on last edited by
                #7

                Whats sad is I translated all the ASCII codes from memory :-D:omg::sigh: Roger Allen - Sonork 100.10016 If your dead and reading this, then you have no life!

                C J 2 Replies Last reply
                0
                • B BadJerry

                  Gosh! I am not going to get that job! ;)

                  A Offline
                  A Offline
                  Anders Molin
                  wrote on last edited by
                  #8

                  Same here, and I have maked a living from programming C++ in quite a few years now... - Anders Money talks, but all mine ever says is "Goodbye!" My Photos[^] nsms@spyf.dk <- Spam Collecting ;)

                  1 Reply Last reply
                  0
                  • I Ian Darling

                    Juan Carlos Cobas wrote: Any suggestion? Well, as for C++ questions, you might ask about the 4 C++ casts, single/multiple/virtual and public/protected/private inheritance, probably some stuff about the standard library. As for OO and related stuff, talk about Design Patterns, UML, ask the candidates about has-a and is-a and how you might implement them (Liskov Substitution Principle? I think that's what it's called), encapsulation, information hiding, object heirarchies, generic/template programming (orthoganal to OO). Note that not knowing some of this stuff isn't fatal - as long as the candidate shows an interest in learning it. -- Ian Darling "The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky

                    J Offline
                    J Offline
                    Juan Carlos Cobas
                    wrote on last edited by
                    #9

                    Thanks Ian, though I'm afraid they'll never find a programmer that will be able to answer those OOP questions :-)

                    I M D 3 Replies Last reply
                    0
                    • J Juan Carlos Cobas

                      Thanks Ian, though I'm afraid they'll never find a programmer that will be able to answer those OOP questions :-)

                      I Offline
                      I Offline
                      Ian Darling
                      wrote on last edited by
                      #10

                      Juan Carlos Cobas wrote: Thanks Ian, though I'm afraid they'll never find a programmer that will be able to answer those OOP questions Well like I said, they don't have to know the specifics, just be interested in knowing about them. I think that's really the key thing. Get someone who: a) Is keen to learn stuff. b) Looks like they can get stuff done. The questions are window dressing for determining these two points. -- Ian Darling "The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky

                      L 1 Reply Last reply
                      0
                      • R Roger Allen

                        Whats sad is I translated all the ASCII codes from memory :-D:omg::sigh: Roger Allen - Sonork 100.10016 If your dead and reading this, then you have no life!

                        C Offline
                        C Offline
                        Colin Angus Mackay
                        wrote on last edited by
                        #11

                        So, did you get the job then? --Colin Mackay--

                        "In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown) Enumerators in .NET: See how to customise foreach loops with C#

                        R 1 Reply Last reply
                        0
                        • J Juan Carlos Cobas

                          Thanks Ian, though I'm afraid they'll never find a programmer that will be able to answer those OOP questions :-)

                          M Offline
                          M Offline
                          Marc Clifton
                          wrote on last edited by
                          #12

                          Juan Carlos Cobas wrote: though I'm afraid they'll never find a programmer that will be able to answer those OOP questions You're kidding! Those were basic OOP subjects! :omg: Marc Latest AAL Article My blog Join my forum!

                          A 1 Reply Last reply
                          0
                          • J Juan Carlos Cobas

                            The company of a friend of mine is looking for a C/C++ programmer and he’s trying to collect some C/C++ questions for the interview. In addition to simple, plain C questions (he already has plenty of them), he is interested in questions dealing with basic OOP concepts Any suggestion? Thanks :-)

                            A Offline
                            A Offline
                            Amanjit Gill
                            wrote on last edited by
                            #13

                            :) Better take a look at this http://www.joelonsoftware.com/articles/fog0000000073.html[^] ______________________________ Java: The living proof Moore's law won't solve all your problems

                            M 1 Reply Last reply
                            0
                            • C Colin Angus Mackay

                              So, did you get the job then? --Colin Mackay--

                              "In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown) Enumerators in .NET: See how to customise foreach loops with C#

                              R Offline
                              R Offline
                              Roger Allen
                              wrote on last edited by
                              #14

                              I didn't realise I was applying for a job.... All the other questions look reasonable. I need to go look up all the C++ casts to be absolutley sure I would not suck if I did do the interview. The rest seemed OK. Roger Allen - Sonork 100.10016 If your dead and reading this, then you have no life!

                              1 Reply Last reply
                              0
                              • J Juan Carlos Cobas

                                Thanks Ian, though I'm afraid they'll never find a programmer that will be able to answer those OOP questions :-)

                                D Offline
                                D Offline
                                Daniel Wilson
                                wrote on last edited by
                                #15

                                Those are questions I would expect a medium level developer skilled in OOP to know fairly well or at least enough to talk about them a little. Daniel

                                A 1 Reply Last reply
                                0
                                • R Roger Allen

                                  Whats sad is I translated all the ASCII codes from memory :-D:omg::sigh: Roger Allen - Sonork 100.10016 If your dead and reading this, then you have no life!

                                  J Offline
                                  J Offline
                                  jhwurmbach
                                  wrote on last edited by
                                  #16

                                  At least you know that you're a geek! :laugh: :rolleyes:


                                  Who is 'General Failure'? And why is he reading my harddisk?!?

                                  1 Reply Last reply
                                  0
                                  • M Marc Clifton

                                    Juan Carlos Cobas wrote: though I'm afraid they'll never find a programmer that will be able to answer those OOP questions You're kidding! Those were basic OOP subjects! :omg: Marc Latest AAL Article My blog Join my forum!

                                    A Offline
                                    A Offline
                                    Anders Molin
                                    wrote on last edited by
                                    #17

                                    Marc Clifton wrote: You're kidding! Those were basic OOP subjects! Really? I would not be able to answar a lot of them... Are you by that saying that I'm a bad programmer, and that I know nothing about OOP? - Anders Money talks, but all mine ever says is "Goodbye!" My Photos[^] nsms@spyf.dk <- Spam Collecting ;)

                                    M D 2 Replies Last reply
                                    0
                                    • A Amanjit Gill

                                      :) Better take a look at this http://www.joelonsoftware.com/articles/fog0000000073.html[^] ______________________________ Java: The living proof Moore's law won't solve all your problems

                                      M Offline
                                      M Offline
                                      Mister_Cordell
                                      wrote on last edited by
                                      #18

                                      An illuminating post from Amanjit Gill . . . I figure I must be a half-wit who gets things halfway done, and while it has not been an obstacle on the job, it has been an impediment to getting one. Guerrilla interview techniques should probably be left to gang warfare. I think the original post on OOP techniques and interview questions, as well as the original suggestion have been misunderstood. The request was for areas of questionning that might be helpful in discovering potential in candidates, and the helpful reply was a set of topics. Posing a whole topic as a question would probably not yield meaningful results for two reasons: (1) It is not difficult to learn the definitions to these terms, but as the Amanjit Gill points out to us, asking for definitions won't find you a candidate who gets things done; (2) While rote recitation of canned definitions may indicate an interest, a programmers rendition of what a concept represents in terms of the way s/he has used it will be rambling and vague -- you wind up eliminating the very people whom you wish to choose. To make these helpful suggestions into solutions (a problem-solving exercise in itself), it would be good to take each topic supplied and create a question from it that relates directly to the job (or kind of job) that needs to be done. This may not be a brilliant suggestion, but at least I have summarized all the suggestions into an actionable synthesis of the solution . . . Ernie ---------------------------------- Ernest Clayton Cordell, II E-mail: ernie_cordell@hotmail.com Web page redirect at: http://come.to/ernie Resumee at http://www.perfectagent.com/seeme/ec77394

                                      A 1 Reply Last reply
                                      0
                                      • D Daniel Wilson

                                        Those are questions I would expect a medium level developer skilled in OOP to know fairly well or at least enough to talk about them a little. Daniel

                                        A Offline
                                        A Offline
                                        Anders Molin
                                        wrote on last edited by
                                        #19

                                        Daniel Wilson wrote: Those are questions I would expect a medium level developer skilled in OOP to know fairly well or at least enough to talk about them a little. Yes, the stuff about templates, private/public/protected stuff and virtual and abstract functions... But... not always the design patterns and uml stuff, i know several really good programmers that know nothing about that part... - Anders Money talks, but all mine ever says is "Goodbye!" My Photos[^] nsms@spyf.dk <- Spam Collecting ;)

                                        1 Reply Last reply
                                        0
                                        • A Anders Molin

                                          Marc Clifton wrote: You're kidding! Those were basic OOP subjects! Really? I would not be able to answar a lot of them... Are you by that saying that I'm a bad programmer, and that I know nothing about OOP? - Anders Money talks, but all mine ever says is "Goodbye!" My Photos[^] nsms@spyf.dk <- Spam Collecting ;)

                                          M Offline
                                          M Offline
                                          Marc Clifton
                                          wrote on last edited by
                                          #20

                                          UML you can throw out the window, IMHO. It's big, bloated, and to get real functionality, like reverse engineering, you have to pay big bucks. I think there's a couple good freeware exceptions, however. As for design patterns, you probably already use them. The biggest thing about DP's is that it formalizes certain common OO architectures and gives them nerdy sounding names so that geeks can talk and sound like they're getting something done. Marc Latest AAL Article My blog Join my forum!

                                          A 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