sample interview questions with suggested ways of answering

Download Sample Interview Questions With Suggested Ways of Answering

Post on 06-Apr-2018

214 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

  • 8/3/2019 Sample Interview Questions With Suggested Ways of Answering

    1/31

    Sample Interview Questions with Suggested Ways of AnsweringQ. Tell me about yourself.A. This is the dreaded, classic, open-ended interview question and likely to be among the first. It's

    your chance to introduce your qualifications, good work habits, etc. Keep it mostly work and

    career related.Q. Why do you want to leave your current job? (Why did you leave your last job?)

    A. Be careful with this. Avoid trashing other employers and making statements like, "I need moremoney." Instead, make generic statements such as, "It's a career move."

    Q. What are your strengths?A. Point out your positive attributes related to the job.

    Q. What are your weaknesses?

    A. Everybody has weaknesses, but don't spend too much time on this one and keep it work related.

    Along with a minor weakness or two, try to point out a couple of weaknesses that the interviewermight see as strengths, such as sometimes being a little too meticulous about the quality of yourwork. (Avoid saying "I work too hard." It's a predictable, common answer.) For every weakness,offer a strength that compensates for it.

    Q. Which adjectives would you use to describe yourself?A. Answer with positive, work-oriented adjectives, such as conscientious, hard-working, honest and

    courteous, plus a brief description or example of why each fits you well.

    Q. What do you know about our company?

    A. To answer this one, research the company before you interview.

    Q. Why do you want to work for us?

    A. Same as above. Research the company before you interview. Avoid the predictable, such as,"Because it's a great company." Say why you think it's a great company.

    Q. Why should I hire you?A. Point out your positive attributes related to the job, and the good job you've done in the past.

    Include any compliments you've received from management.

    Q. What past accomplishments gave you satisfaction?A. Briefly describe one to three work projects that made you proud or earned you pats on the back,promotions, raises, etc. Focus more on achievement than reward.

    Q. What makes you want to work hard?

    A.Naturally, material rewards such as perks, salary and benefits come into play. But again, focus

    more on achievement and the satisfaction you derive from it.Q. What type of work environment do you like best?

    A. Tailor your answer to the job. For example, if in doing your job you're required to lock the labdoors and work alone, then indicate that you enjoy being a team player when needed, but also

  • 8/3/2019 Sample Interview Questions With Suggested Ways of Answering

    2/31

    enjoy working independently. If you're required to attend regular project planning and statusmeetings, then indicate that you're a strong team player and like being part of a team.

    Q. Why do you want this job?

    A. To help you answer this and related questions, study the job ad in advance. But a job ad alone maynot be enough, so it's okay to ask questions about the job while you're answering. Say whatattracts you to the job. Avoid the obvious and meaningless, such as, "I need a job."

    Q. How do you handle pressure and stress?

    A. This is sort of a double whammy, because you're likely already stressed from the interview and

    the interviewer can see if you're handling it well or not. Everybody feels stress, but the degreevaries. Saying that you whine to your shrink, kick your dog or slam down a fifth of Jack Danielsare not good answers. Exercising, relaxing with a good book, socializing with friends or turningstress into productive energy are more along the lines of the "correct" answers.

    Q. Explain how you overcame a major obstacle.A. The interviewer is likely looking for a particular example of your problem-solving skills and the

    pride you show for solving it.

    Q. Where do you see yourself five (ten or fifteen) years from now?

    A. Explain your career-advancement goals that are in line with the job for which you are

    interviewing. Your interviewer is likely more interested in how he, she or the company willbenefit from you achieving your goals than what you'll get from it, but it goes hand in hand to alarge degree. It's not a good idea to tell your potential new boss that you'll be going after his or

    her job, but it's okay to mention that you'd like to earn a senior or management position.Q. What qualifies you for this job?

    A. Tout your skills, experience, education and other qualifications, especially those that match the

    job description well. Avoid just regurgitating your resume. Explain why.Q. Why did you choose your college major?

    A. The interviewer is likely fishing to see if you are interested in your field of work or just doing a

    job to get paid. Explain why you like it. Besides your personal interests, include some rock-solidbusiness reasons that show you have vision and business sense.

    http://TechPreparation.com

    2008

    C Interview QuestionsAnd AnswersV i s i t T e c h P r e p a r a t i o n . c o m f o r m o r e i n t e r v i e w q u e s t i o n s a n da n s w e r s

    C Interview Questions and AnswersWhat is C language?The C programming language is a standardized programming languagedeveloped in the early 1970s by Ken Thompson and Dennis Ritchie foruse on the UNIX operating system. It has since spread to many otheroperating systems, and is one of the most widely used programminglanguages. C is prized for its efficiency, and is the most popularprogramming language for writing system software, though it is also

  • 8/3/2019 Sample Interview Questions With Suggested Ways of Answering

    3/31

    used for writing applications.printf() FunctionWhat is the output ofprintf("%d")?

    1. When we write printf("%d",x); this means compiler will print thevalue of x. But as here, there is nothing after %d so compiler will showin output window garbage value.

    2. When we use %d the compiler internally uses it to access theargument in the stack (argument stack). Ideally compiler determinesthe offset of the data variable depending on the format specificationstring. Now when we write printf("%d",a) then compiler first accessesthe top most element in the argument stack of the printf which is %dand depending on the format string it calculated to offset to the actualdata variable in the memory which is to be printed. Now when only %dwill be present in the printf then compiler will calculate the correctoffset (which will be the offset to access the integer variable) but asthe actual data object is to be printed is not present at that memorylocation so it will print what ever will be the contents of that memory

    location.3. Some compilers check the format string and will generate an errorwithout the proper number and type of arguments for things likeprintf(...) and scanf(...).Visit http://TechPreparation.comfor more Interview Questions with Answers Page 2malloc() Function- What is the difference between "calloc(...)" and"malloc(...)"?

    1. calloc(...) allocates a block of memory for an array of elements of acertain size. By default the block is initialized to 0. The total number ofmemory allocated will be (number_of_elements * size).malloc(...) takes in only a single argument which is the memory

    required in bytes. malloc(...) allocated bytes of memory and not blocksof memory like calloc(...).2. malloc(...) allocates memory blocks and returns a void pointer to theallocated space, or NULL if there is insufficient memory available.calloc(...) allocates an array in memory with elements initialized to 0and returns a pointer to the allocated space. calloc(...) calls malloc(...)in order to use the C++ _set_new_mode function to set the newhandler mode.printf() Function- What is the difference between "printf(...)" and"sprintf(...)"?

    sprintf(...) writes data to the character array whereas printf(...) writes data to thestandard output device.

    Compilation How to reduce a final size of executable?Size of the final executable can be reduced using dynamic linking forlibraries.Linked Lists -- Can you tell me how to check whether a linked list is circular?

    Create two pointers, and set both to the start of the list. Update eachas follows:while (pointer1) {pointer1 = pointer1->next;

  • 8/3/2019 Sample Interview Questions With Suggested Ways of Answering

    4/31

    pointer2 = pointer2->next;if (pointer2) pointer2=pointer2->next;if (pointer1 == pointer2) {print ("circular");}}Visit http://TechPreparation.comfor more Interview Questions with Answers Page 3

    If a list is circular, at some point pointer2 will wrap around and beeither at the item just before pointer1, or the item before that. Eitherway, its either 1 or 2 jumps until they meet."union" Data Type What is the output of the following program? Why?

    #includemain() {typedef union {int a;char b[10];float c;}

    Union;Union x,y = {100};x.a = 50;strcpy(x.b,"hello");x.c = 21.50;printf("Union x : %d %s %f n",x.a,x.b,x.c);printf("Union y : %d %s %f n",y.a,y.b,y.c);}What does static variable mean?

    there are 3 main uses for the static.1. If you declare within a function:

    It retains the value between function calls2.If it is declared for a function name:By default function is extern..so it will be visible from other files if thefunction declaration is as static..it is invisible for the outer files3. Static for global variables:By default we can use the global variables from outside files If it isstatic global..that variable is limited to with in the fileAdvantages of a macro over a function?

    Macro gets to see the Compilation environment, so it can expand ____TIME__ __FILE__ #defines. It is expanded by the preprocessor.Visit http://TechPreparation.comfor more Interview

View more