Interview Questions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jatinder

    Interview Questions

    I 'm a professional looking for the job.In interview these questions
    were asked with some others which I answered.But some of them left
    unanswered.Plz help.

    Here are some questions on C/C++, OS internals?
    Q1 . What is the use of pointer to an array?
    Q2 . What is the use of array of pointers?
    Q3 . What is the use of pointer to function ?
    Q4 . How to print through serial port? What is Flow Control(Xon,Xof f)
    ?
    Q5 . What is IOCTL Explain .
    Q6 . How to create an interrupt service routine in C?
    Q7 . What are the internals of a schedular ?
    Q8 . The static variables are declared in heap or stack ?
  • Ron Natalie

    #2
    Re: Interview Questions


    "Jatinder" <jsfromynr@sanc harnet.in> wrote in message news:22b2a6b6.0 405140625.19a69 452@posting.goo gle.com...
    [color=blue]
    > Q1 . What is the use of pointer to an array?
    > Q2 . What is the use of array of pointers?
    > Q3 . What is the use of pointer to function ?[/color]

    These are almost topical, but if you can't answer them, you need to go back and read
    a C text book.
    [color=blue]
    > Q4 . How to print through serial port? What is Flow Control(Xon,Xof f)
    > Q5 . What is IOCTL Explain .[/color]

    Highly system dependent and off-topic. Ask im comp.programmin g.unix or whatever
    target system you're dealing with.
    [color=blue]
    > Q6 . How to create an interrupt service routine in C?[/color]

    Ditto.
    [color=blue]
    > Q7 . What are the internals of a schedular ?[/color]

    What scheduler? Did they mention what OS (and just saying UNIX doesn't cut it)
    they want to know about the scheduler internals of?
    [color=blue]
    > Q8 . The static variables are declared in heap or stack ?[/color]

    Neither.

    Comment

    • Thomas Matthews

      #3
      Re: Interview Questions

      Jatinder wrote:[color=blue]
      > I 'm a professional looking for the job.In interview these questions
      > were asked with some others which I answered.But some of them left
      > unanswered.Plz help.
      >
      > Here are some questions on C/C++, OS internals?
      > Q1 . What is the use of pointer to an array?[/color]
      One can iterate through the array using a pointer.
      One can pass the location of an element by just passing the pointer.
      The array can be allocated during run-time, especially when the
      size is unknown at run-time.
      [color=blue]
      > Q2 . What is the use of array of pointers?[/color]
      Multi-dimensional array.
      Allows polymorphism for families of classes.
      A convenient container for objects allocated during run-time.
      [color=blue]
      > Q3 . What is the use of pointer to function ?[/color]
      One can have an object associated with a function to process
      that object, such as factories.
      Another use is to map menu items with functions to process the
      selection.
      Allows for more generic algorithms, such as qsort (which allows
      a pointer to a comparison function).
      [color=blue]
      > Q4 . How to print through serial port? What is Flow Control(Xon,Xof f)
      > ?[/color]
      This depends on the platform and maybe the Operating System.
      The "best" way to print through a serial port is to use operating
      system functions.
      The Flow Control characters, Xon and Xoff, are one method to turn
      on (resume) or pause (stop) transmission across the serial channel.
      See also ETX, STX, Request To Send (RTS) and DTS.
      [color=blue]
      > Q5 . What is IOCTL Explain .[/color]
      I believe this is a platform specific structure containing details
      about an I/O device.
      [color=blue]
      > Q6 . How to create an interrupt service routine in C?[/color]
      This requires notifying your compiler that a function is an
      ISR.
      [color=blue]
      > Q7 . What are the internals of a schedular ?[/color]
      Depends on the platform and operating system. Fundamentally,
      a schedular dispatches processes according to a given scheme,
      schedule or algorithm.
      [color=blue]
      > Q8 . The static variables are declared in heap or stack ?[/color]
      Neither, as the _standard_ C language does not require an
      implementation to have a stack or heap. On many implementations
      that use a heap and stack, static variables are not declared
      on the stack or heap. They are allocated in the same area
      as global variables. But this depends on the implementation.


      --
      Thomas Matthews

      C++ newsgroup welcome message:

      C++ Faq: http://www.parashift.com/c++-faq-lite
      C Faq: http://www.eskimo.com/~scs/c-faq/top.html
      alt.comp.lang.l earn.c-c++ faq:

      Other sites:
      http://www.josuttis.com -- C++ STL Library book

      Comment

      • Xenos

        #4
        Re: Interview Questions


        "Jatinder" <jsfromynr@sanc harnet.in> wrote in message
        news:22b2a6b6.0 405140625.19a69 452@posting.goo gle.com...[color=blue]
        > I 'm a professional looking for the job.In interview these questions
        > were asked with some others which I answered.But some of them left
        > unanswered.Plz help.
        >
        > Here are some questions on C/C++, OS internals?
        > Q1 . What is the use of pointer to an array?
        > Q2 . What is the use of array of pointers?
        > Q3 . What is the use of pointer to function ?
        > Q4 . How to print through serial port? What is Flow Control(Xon,Xof f)
        > ?
        > Q5 . What is IOCTL Explain .
        > Q6 . How to create an interrupt service routine in C?
        > Q7 . What are the internals of a schedular ?
        > Q8 . The static variables are declared in heap or stack ?[/color]

        I find it alarming that this trend of giving ridiculous quizzes and tests to
        interviewee is increasing. When I was young and looking for a job,
        companies that did this were few. I immediately walked out of any interview
        were I was asked to take such a test. Regurgitation of facts does not prove
        knowledge or wisdom, and is certainly no indication of skill. For someone
        with an encyclopedic memory of the C or C++ standards, I would hire for a
        one-time fee of $18--the amount I would need to just purchase a copy of the
        standard (or whatever it currently costs).

        This topic has come up before, and I think I said pretty much the something.
        Someone replied with, "So how do you know they can do the job?" Well, there
        are no guarantees, but you could try *talking* to them. I never minded
        being asked questions in interviews. Isn't that a major part of the
        process? Ask about college courses taken and projects done. If you are
        interviewing an experienced professional, ask about previous work done. How
        about what problems were encountered and how they were overcome. DON'T try
        and sitting me in a room with 50 other nameless applicants and presume to
        give me a test. That's a company interested in bodies and tests scores, not
        cultivating good people. I'm also turned off by companies that call you up
        and ask for college transcripts. Unless they have taken the time to
        interview me and show an interest in hiring me, I always refused.

        As a result, I love the company I work for. They treat me very well, and
        there is always very smart, experienced people to learn from.

        DrX


        Comment

        • Derek

          #5
          Re: Interview Questions

          Xenos wrote:[color=blue]
          > I find it alarming that this trend of giving ridiculous
          > quizzes and tests to interviewee is increasing. When I
          > was young and looking for a job, companies that did this
          > were few. I immediately walked out of any interview were
          > I was asked to take such a test. Regurgitation of facts
          > does not prove knowledge or wisdom, and is certainly no
          > indication of skill. For someone with an encyclopedic
          > memory of the C or C++ standards, I would hire for a
          > one-time fee of $18--the amount I would need to just
          > purchase a copy of the standard (or whatever it currently
          > costs).[/color]

          In general I agree with you. However, the questions
          mentioned by the original poster may not be the whole
          of the interview. For all you know they are just a
          pre-screening and the answers should be no-brainers for
          qualified applicants. My current employer took a lot of
          time to get to know me, but only after I took a couple of
          short written tests to make sure I was a C++ developer and
          not a Perl hacker looking to learn C++ on the job.

          When the economy isn't so hot there may be many applicants
          for each position and some form of pre-selection may be
          justified.

          Comment

          • Victor Bazarov

            #6
            Re: Interview Questions

            Derek wrote:[color=blue]
            > Xenos wrote:[color=green]
            > > I find it alarming that this trend of giving ridiculous
            > > quizzes and tests to interviewee is increasing. When I
            > > was young and looking for a job, companies that did this
            > > were few. I immediately walked out of any interview were
            > > I was asked to take such a test. Regurgitation of facts
            > > does not prove knowledge or wisdom, and is certainly no
            > > indication of skill. For someone with an encyclopedic
            > > memory of the C or C++ standards, I would hire for a
            > > one-time fee of $18--the amount I would need to just
            > > purchase a copy of the standard (or whatever it currently
            > > costs).[/color]
            >
            > In general I agree with you. However, the questions
            > mentioned by the original poster may not be the whole
            > of the interview. For all you know they are just a
            > pre-screening and the answers should be no-brainers for
            > qualified applicants. My current employer took a lot of
            > time to get to know me, but only after I took a couple of
            > short written tests to make sure I was a C++ developer and
            > not a Perl hacker looking to learn C++ on the job.[/color]

            Shouldn't that be obvious from the resume? When employers are
            being picky about whom to interview, they should put more
            emphasis on reading the application documents and doing phone
            screenings. Well, just MHO, of course. All OT, BTW. :-)

            V

            Comment

            • Xenos

              #7
              Re: Interview Questions


              "Derek" <none@cheese.co m> wrote in message
              news:2gkfq4F417 fgU1@uni-berlin.de...[color=blue]
              > In general I agree with you. However, the questions
              > mentioned by the original poster may not be the whole
              > of the interview. For all you know they are just a
              > pre-screening and the answers should be no-brainers for
              > qualified applicants. My current employer took a lot of
              > time to get to know me, but only after I took a couple of
              > short written tests to make sure I was a C++ developer and
              > not a Perl hacker looking to learn C++ on the job.
              >[/color]
              And that's fine. I wouldn't have minded that. But I have gone to
              interviews where they didn't even interview you. *Every* applicant had the
              same "interview" time. We were herded into a class room to take a length
              test. No one every said "hello," and they only asked your name to check it
              off a list. THAT is not a company I would have liked to work for. I left
              and have never regretted it. Of course, in today economy I guess you may
              have to swallow your pride a little more and suck it up. I feel sorry for
              kids just out of college (and older folks out of work). In my day, lots of
              good companies would fight over you.

              DrX


              Comment

              • bartek

                #8
                Re: Interview Questions

                "Xenos" <dont.spam.me@s pamhate.com> wrote in
                news:c8328f$7sr 8@cui1.lmms.lmc o.com:
                [color=blue]
                >
                > "Derek" <none@cheese.co m> wrote in message
                > news:2gkfq4F417 fgU1@uni-berlin.de...[color=green]
                >> In general I agree with you. However, the questions
                >> mentioned by the original poster may not be the whole
                >> of the interview. For all you know they are just a
                >> pre-screening and the answers should be no-brainers for
                >> qualified applicants. My current employer took a lot of
                >> time to get to know me, but only after I took a couple of
                >> short written tests to make sure I was a C++ developer and
                >> not a Perl hacker looking to learn C++ on the job.
                >>[/color]
                > And that's fine. I wouldn't have minded that. But I have gone to
                > interviews where they didn't even interview you. *Every* applicant
                > had the same "interview" time. We were herded into a class room to
                > take a length test. No one every said "hello," and they only asked
                > your name to check it off a list. THAT is not a company I would have
                > liked to work for. I left and have never regretted it. Of course, in
                > today economy I guess you may have to swallow your pride a little more
                > and suck it up. I feel sorry for kids just out of college (and older
                > folks out of work). In my day, lots of good companies would fight
                > over you.[/color]

                It's the sign of the times, isn't it?
                Companies that actually care about their workforce are getting pretty
                rare. Now it's the quantity that counts, not quality. Quality is just
                such a waste of resources, just go ask the marketing people.

                I wouldn't be surprised, if they actually started charging entry fees for
                interview sessions.

                Sorry, I couldn't resist...

                --
                :: bartekd [at] o2 [dot] pl

                Comment

                • Howard

                  #9
                  Re: Interview Questions


                  Anyone else notice something strange about this post? I see it comes
                  through San Diego State University's server (newshub.sdsu.e du). Also, the
                  OP has not responded in any way, with their own opinions, follow-up, or
                  whatever. And the OP claims to be a "profession al", but asks some of the
                  most basic questions. Isn't anyone at least suspicious that this is really
                  just a student taking a test or doing homework, and trying to get free
                  answers to questions they're supposed to either know or research themselves?
                  This is at least the third time I've seen someone declare they were asking
                  "job interview" questions, yet it seemed suspiciously like schoolwork to me.
                  Am I just being paranoid, or what?

                  -Howard



                  Comment

                  • Xenos

                    #10
                    Re: Interview Questions


                    "Howard" <alicebt@hotmai l.com> wrote in message
                    news:z_8pc.5834 4$Ut1.1528510@b gtnsc05-news.ops.worldn et.att.net...[color=blue]
                    > Am I just being paranoid, or what?[/color]

                    No, you are probably on to something...


                    Comment

                    • Victor Bazarov

                      #11
                      Re: Interview Questions

                      Howard wrote:[color=blue]
                      > Anyone else notice something strange about this post? I see it comes
                      > through San Diego State University's server (newshub.sdsu.e du). Also, the
                      > OP has not responded in any way, with their own opinions, follow-up, or
                      > whatever. And the OP claims to be a "profession al", but asks some of the
                      > most basic questions. Isn't anyone at least suspicious that this is really
                      > just a student taking a test or doing homework, and trying to get free
                      > answers to questions they're supposed to either know or research themselves?
                      > This is at least the third time I've seen someone declare they were asking
                      > "job interview" questions, yet it seemed suspiciously like schoolwork to me.
                      > Am I just being paranoid, or what?[/color]

                      Yes

                      Comment

                      • Walter

                        #12
                        Re: Interview Questions


                        "Victor Bazarov" <v.Abazarov@com Acast.net> wrote in message
                        news:1_7pc.178$ ri.20401@dfw-read.news.verio .net...[color=blue][color=green]
                        > > In general I agree with you. However, the questions
                        > > mentioned by the original poster may not be the whole
                        > > of the interview. For all you know they are just a
                        > > pre-screening and the answers should be no-brainers for
                        > > qualified applicants. My current employer took a lot of
                        > > time to get to know me, but only after I took a couple of
                        > > short written tests to make sure I was a C++ developer and
                        > > not a Perl hacker looking to learn C++ on the job.[/color]
                        >
                        > Shouldn't that be obvious from the resume? When employers are
                        > being picky about whom to interview, they should put more
                        > emphasis on reading the application documents and doing phone
                        > screenings. Well, just MHO, of course. All OT, BTW. :-)[/color]

                        You can't tell much from a resume. Most resumes read like the applicant
                        walks on water. When they list 5 years of C experience, but can't answer a
                        few simple questions about C, it's an easy way to separate out the real
                        candidates from the charlatans.

                        One of the best ways to interview is ask them to bring in a sample of some
                        programming work they wrote that they're proud of. Then have them walk you
                        through it and explain it.


                        Comment

                        • Walter

                          #13
                          Re: Interview Questions


                          "Howard" <alicebt@hotmai l.com> wrote in message
                          news:z_8pc.5834 4$Ut1.1528510@b gtnsc05-news.ops.worldn et.att.net...[color=blue]
                          >
                          > Anyone else notice something strange about this post? I see it comes
                          > through San Diego State University's server (newshub.sdsu.e du). Also, the
                          > OP has not responded in any way, with their own opinions, follow-up, or
                          > whatever. And the OP claims to be a "profession al", but asks some of the
                          > most basic questions. Isn't anyone at least suspicious that this is[/color]
                          really[color=blue]
                          > just a student taking a test or doing homework, and trying to get free
                          > answers to questions they're supposed to either know or research[/color]
                          themselves?[color=blue]
                          > This is at least the third time I've seen someone declare they were asking
                          > "job interview" questions, yet it seemed suspiciously like schoolwork to[/color]
                          me.[color=blue]
                          > Am I just being paranoid, or what?[/color]

                          LOL! I recently saw a "Dateline" episode on college cheating, where students
                          would wirelessly access the internet during an exam to find answers to
                          questions.


                          Comment

                          • Gary Labowitz

                            #14
                            Re: Interview Questions

                            "Walter" <walter@digital mars.nospamm.co m> wrote in message
                            news:8cdpc.5075 1$z06.7204895@a ttbi_s01...[color=blue]
                            >
                            > "Howard" <alicebt@hotmai l.com> wrote in message
                            > news:z_8pc.5834 4$Ut1.1528510@b gtnsc05-news.ops.worldn et.att.net...[color=green]
                            > >
                            > > Anyone else notice something strange about this post? I see it comes
                            > > through San Diego State University's server (newshub.sdsu.e du). Also,[/color][/color]
                            the[color=blue][color=green]
                            > > OP has not responded in any way, with their own opinions, follow-up, or
                            > > whatever. And the OP claims to be a "profession al", but asks some of[/color][/color]
                            the[color=blue][color=green]
                            > > most basic questions. Isn't anyone at least suspicious that this is[/color]
                            > really[color=green]
                            > > just a student taking a test or doing homework, and trying to get free
                            > > answers to questions they're supposed to either know or research[/color]
                            > themselves?[color=green]
                            > > This is at least the third time I've seen someone declare they were[/color][/color]
                            asking[color=blue][color=green]
                            > > "job interview" questions, yet it seemed suspiciously like schoolwork to[/color]
                            > me.[color=green]
                            > > Am I just being paranoid, or what?[/color]
                            >
                            > LOL! I recently saw a "Dateline" episode on college cheating, where[/color]
                            students[color=blue]
                            > would wirelessly access the internet during an exam to find answers to
                            > questions.[/color]

                            In addition to it probably being a student, there is an issue of legality
                            and prudence with a potential employer using a test to qualify candidates.
                            The general thinking goes like this:
                            Are the questions on the test indicative of the type of work being done?
                            Would being able to answer the question determine that the candidate could
                            do the work that the opening is for? Can you prove that the questions are
                            normative, non-descriminatory with respect to ethnic and cultural
                            differences, sex, or race? How have you qulaified the test questions such
                            that they are predictive of success or failure of the candidate in
                            performance of the actual expected work?

                            If there is no indication of having proof of the applicability of the test
                            to the specific job, and proof that the questions are actually specific to
                            the position being screened for, the use of the test is illegal. In
                            addition, it must be shown (by actual job situations) that the information
                            required to answer the questions is necessary to be known without reference
                            to generally available materials expected to be in the workplace.

                            It is legal, for example, to require a doctor to pass exams that require the
                            candidate to know various medical terms, procedures, and techniques without
                            reference to books, notes, or collegues in order to be certified as a
                            surgeon. The elements of the exam must match what a surgeon must do in
                            performance of general surgery. It is not expected that a surgeon will know
                            everything (even if they all think they do!) and that reference may have to
                            be made prior to a specific surgery, or even during a surgery in special
                            cases.

                            In programming, it is highly unlikely that all aspects of each language that
                            might be encountered during any given project would be known without
                            references to any given programmer. That eliminates from qualifying test
                            such nonesence as "Which toolbar button do you use to change the display
                            icon in a project?" What might be more appropriate (but still a little
                            "dicey") would be to ask "Can the display icon for a project be changed?"
                            and "What is involved in changing it?"
                            It is one of the disgusting aspects of the Microsoft qualifying exams for
                            certification that many of their questions are of the extremely specific
                            type covering topics that most programmers would simply look up when needed.
                            (And I have been certified, so I know whereof I speak; MCP, MCT, MDSD, CTT.)

                            I tell my students "Never memorize what you can look up." What is important
                            is that they understand the principles, techniques, and what's available in,
                            say, a language so they know what can be done, various options, and reasons
                            for selecting one over another. What distresses me is co-workers I have had
                            who have no clear understanding of what a compiler does, how the language
                            they're using is structured, the differences in data types, etc. This is the
                            basic stuff I always wished we had a qualified test for before hiring them.

                            IBM used to use a "Programmer Apptitude Test" in the '60s which I believe
                            they dropped when they were faced with legal problems trying to justify it
                            as predictive of success or failure. I took it in 1961, thought it was dumb,
                            and got hired anyway.
                            --
                            Gary


                            Comment

                            • Walter

                              #15
                              Re: Interview Questions


                              "Gary Labowitz" <glabowitz@comc ast.net> wrote in message
                              news:g6mdnZ1U9I X87DjdRVn-hg@comcast.com. ..[color=blue]
                              > I tell my students "Never memorize what you can look up." What is[/color]
                              important[color=blue]
                              > is that they understand the principles, techniques, and what's available[/color]
                              in,[color=blue]
                              > say, a language so they know what can be done, various options, and[/color]
                              reasons[color=blue]
                              > for selecting one over another. What distresses me is co-workers I have[/color]
                              had[color=blue]
                              > who have no clear understanding of what a compiler does, how the language
                              > they're using is structured, the differences in data types, etc. This is[/color]
                              the[color=blue]
                              > basic stuff I always wished we had a qualified test for before hiring[/color]
                              them.

                              I agree. An educated man is not someone who knows a lot of things, but one
                              who knows how to find out what he needs to know. Interestingly, where I
                              attended college, the typical exam was "open book, open note". You could use
                              any books or notes you'd made as reference material. The idea was that the
                              tests were not regurgitation of knowledge, but were designed to determine if
                              you'd mastered the concepts.

                              For example, in math we had a lecture where the prof derived the fourier
                              transform from basic principles. On the final exam, one of the problems was
                              to derive the hyperbolic transforms. If you "got" how the ft was done, doing
                              the hyperbolics was straightforward . If you'd memorized formulas without
                              understanding, you were going to fail. A "cheat sheet" was useless, as well.

                              I no longer remember how to do a fourier transform or a hyperbolic one - but
                              I came out of college with the confidence and knowledge of how to solve
                              complicated problems; the subject of the problems was not relevant. And that
                              ability has served me very well throughout my professional career. The
                              cheaters on "Dateline" who justified their cheating by saying that only 3%
                              of the knowledge learned in college is ever applied in their career have
                              totally missed the point of what a college education is.


                              Comment

                              Working...