top oops interview questions and answers job interview tips

47
Top 20 oops interview questions and answers If you need top 7 free ebooks below for your job interview, please visit: 4career.net • Free ebook: 75 interview questions and answers • Top 12 secrets to win every job interviews • 13 types of interview quesitons and how to face them • Top 8 interview thank you letter samples Interview questions and answers – free pdf download Page 1 of 47

Upload: oopstutorial

Post on 29-Jan-2015

76 views

Category:

Education


4 download

DESCRIPTION

You'll likely be asked difficult questions during the interview. Preparing the list of likely questions in advance will help you easily transition from question to question.

TRANSCRIPT

Page 1: Top oops interview questions and answers job interview tips

Top 20 oops interview questions and answers

If you need top 7 free ebooks below for your job interview, please visit: 4career.net

• Free ebook: 75 interview questions and answers• Top 12 secrets to win every job interviews• 13 types of interview quesitons and how to face them• Top 8 interview thank you letter samples• Top 7 cover letter samples• Top 8 resume samples• Top 15 ways to search new jobs

Interview questions and answers – free pdf download Page 1 of 30

Page 2: Top oops interview questions and answers job interview tips

Tell me about yourself?

This is probably the most asked question in oops interview. It breaks the ice and gets you to talk about something you should be fairly comfortable with. Have something prepared that doesn't sound rehearsed. It's not about you telling your life story and quite frankly, the interviewer just isn't interested. Unless asked to do so, stick to your education, career and current situation. Work through it chronologically from the furthest back to the present.

Interview questions and answers – free pdf download Page 2 of 30

Page 3: Top oops interview questions and answers job interview tips

What is OOPS? OOPS is abbreviated as Object Oriented Programming system in which programs are considered as a collection of objects. Each object is nothing but an instance of a class.

Interview questions and answers – free pdf download Page 3 of 30

Page 4: Top oops interview questions and answers job interview tips

What Can You Do for Us That Other Candidates Can't?

What makes you unique? This will take an assessment of your experiences, skills and traits. Summarize concisely: "I have a unique combination of strong technical skills, and the ability to build strong customer relationships. This allows me to use my knowledge and break down information to be more user-friendly."

Interview questions and answers – free pdf download Page 4 of 30

Page 5: Top oops interview questions and answers job interview tips

What is avirtual function?

Virtual function is a member function ofclass and its functionality can be overridden in its derived class. This function can be implemented by using a keyword called virtual, and it can be given during function declaration.Virtual function can be achieved in C++, and it can be achieved in C Languageby using function pointers or pointers to function.

Interview questions and answers – free pdf download Page 5 of 30

Page 6: Top oops interview questions and answers job interview tips

What is function overloading? Function overloading is defined as a normal function, but it has the ability to perform different tasks. It allowscreation of several methods with the same name which differ from each other by type of input and output of the function.Examplevoid add(int& a, int& b);void add(double& a, double& b);void add(struct bob& a, struct bob& b);

Interview questions and answers – free pdf download Page 6 of 30

Page 7: Top oops interview questions and answers job interview tips

What is operator overloading? Operator overloading is a function where different operators are applied and depends on the arguments. Operator,-,* can be used to pass through the function , and it has their own precedence to execute.Example:class complex {double real, imag;public:complex(double r, double i) :real(r), imag(i) {}complex operator+(complex a, complex b);complex operator*(complex a, complex b);complex& operator=(complex a, complex b);}a=1.2, b=6

Interview questions and answers – free pdf download Page 7 of 30

Page 8: Top oops interview questions and answers job interview tips

What are different types of arguments?A parameter is a variable used during the declaration of the function or subroutine and arguments are passed to the function , and it should match with the parameter defined. There are two types of Arguments.Call by Value – Value passed will get modified only inside the function , and it returns the same value whatever it is passed it into the function.Call by Reference – Value passed will get modified in both inside and outside the functions and it returns the same or different value.

Interview questions and answers – free pdf download Page 8 of 30

Page 9: Top oops interview questions and answers job interview tips

What is method overriding?Method overriding is a feature that allows sub class to provide implementation of a method that is already defined in the main class. This will overrides the implementation in the superclass by providing the same method name, same parameter and same return type.

Interview questions and answers – free pdf download Page 9 of 30

Page 10: Top oops interview questions and answers job interview tips

Difference between overloading and overriding? Overloading is static binding whereas Overriding is dynamic binding. Overloading is nothing but the same method with different arguments , and it may or may not return the same value in the same class itself.Overriding is the same method names with same arguments and return types associates with the class and its child class.

Interview questions and answers – free pdf download Page 10 of 30

Page 11: Top oops interview questions and answers job interview tips

What is an abstraction? Abstraction is a good feature of OOPS , and it shows only the necessary details to the client of an object. Means, it shows only necessary details for an object, not the inner details of an object. Example – When you want to switch On television, it not necessary to show all the functions of TV. Whatever is required to switch on TV will be showed by using abstract class.

Interview questions and answers – free pdf download Page 11 of 30

Page 12: Top oops interview questions and answers job interview tips

What is the difference betweenstructure and a class?

Structure default access type is public , but class access type is private. A structure is used for grouping data whereas class can be used for grouping data and methods. Structures are exclusively used for dataand it doesn’t require strict validation , but classes are used to encapsulates and inherit data which requires strict validation.

Interview questions and answers – free pdf download Page 12 of 30

Page 13: Top oops interview questions and answers job interview tips

What is dynamic or run time polymorphism? Dynamic or Run time polymorphism is also known as method overriding in which call to an overridden function is resolved during run time, not at the compile time. It means having two or more methods with the same name,same signature but with different implementation.

Interview questions and answers – free pdf download Page 13 of 30

Page 14: Top oops interview questions and answers job interview tips

What is static and dynamic binding? Binding is nothing but the association of a name with the class. Static binding is a binding in which name can be associated with the class during compilation time , and it is also called as early Binding.Dynamic binding is a binding in which name can be associated with the class during execution time , and it is also called as Late Binding.

Interview questions and answers – free pdf download Page 14 of 30

Page 15: Top oops interview questions and answers job interview tips

What is pure virtual function? A pure virtual function is a function which can be overridden in the derived classbut cannot be defined. A virtual function can be declared as Pure by using the operator =0.Example -.Virtual void function1() // Virtual, Not pureVirtual void function2() = 0 //Pure virtual

Interview questions and answers – free pdf download Page 15 of 30

Page 16: Top oops interview questions and answers job interview tips

What is exception handling?Exception is an event that occurs during the execution of a program. Exceptions can be of any type – Run time exception, Error exceptions. Those exceptions are handled properly through exception handling mechanism like try, catch and throw keywords.

Interview questions and answers – free pdf download Page 16 of 30

Page 17: Top oops interview questions and answers job interview tips

What are tokens?Token is recognized by a compiler and it cannot be broken down into component elements. Keywords, identifiers, constants, string literals and operators are examples of tokens. Even punctuation characters are also considered as tokens – Brackets, Commas, Braces and Parentheses.

Interview questions and answers – free pdf download Page 17 of 30

Page 18: Top oops interview questions and answers job interview tips

Difference between class and an object?An object is an instance of a class. Objects hold any information , but classes don’t have any information. Definition of properties and functions can be done at class and can be used by the object.Class can have sub-classes, and an object doesn’t have sub-objects.

Interview questions and answers – free pdf download Page 18 of 30

Page 19: Top oops interview questions and answers job interview tips

What are access modifiers?Access modifiers determine the scope of the method or variables that can be accessed from other various objects or classes. There are 5 types of access modifiers , and they are as follows:. Private.Protected.Public.Friend.Protected Friend.

Interview questions and answers – free pdf download Page 19 of 30

Page 20: Top oops interview questions and answers job interview tips

What are the various types of constructors?There are three various types of constructors , and they are as follows:.-          Default Constructor – With no parameters.-          Parametric Constructor – With Parameters. Create a new instance of a class and also passing arguments simultaneously.-          Copy Constructor – Which creates a new object as a copy of an existing object.

Interview questions and answers – free pdf download Page 20 of 30

Page 21: Top oops interview questions and answers job interview tips

What is Encapsulation?

Encapsulation is an attribute of an object, and it contains all data which is hidden. That hidden data can be restricted to the members of that class.Levels are Public,Protected, Private, Internal and Protected Internal.

Interview questions and answers – free pdf download Page 21 of 30

Page 22: Top oops interview questions and answers job interview tips

Useful job interview materials:

If you need top free ebooks below for your job interview, please visit: 4career.net

• Free ebook: 75 interview questions and answers• Top 12 secrets to win every job interviews• Top 36 situational interview questions• 440 behavioral interview questions• 95 management interview questions and answers• 30 phone interview questions• Top 8 interview thank you letter samples• 290 competency based interview questions• 45 internship interview questions• Top 7 cover letter samples• Top 8 resume samples• Top 15 ways to search new jobs

Interview questions and answers – free pdf download Page 22 of 30

Page 23: Top oops interview questions and answers job interview tips

Top 6 tips for job interview

Interview questions and answers – free pdf download Page 23 of 30

Page 24: Top oops interview questions and answers job interview tips

Tip 1: Do your homeworkYou'll likely be asked difficult questions during the interview. Preparing the list of likely questions in advance will help you easily transition from question to question.

Spend time researching the company. Look at its site to understand its mission statement, product offerings, and management team. A few hours spent researching before your interview can impress the hiring manager greatly. Read the company's annual report (often posted on the site), review the employee's LinkedIn profiles, and search the company on Google News, to see if they've been mentioned in the media lately. The more you know about a company, the more you'll know how you'll fit in to it.

Ref material: 4career.net/job-interview-checklist-40-points

Interview questions and answers – free pdf download Page 24 of 30

Page 25: Top oops interview questions and answers job interview tips

Tip 2: First impressionsWhen meeting someone for the first time, we instantaneously make our minds about various aspects of their personality.Prepare and plan that first impression long before you walk in the door. Continue that excellent impression in the days following, and that job could be yours.Therefore:

Never arrive late. Use positive body language and turn on your

charm right from the start. Switch off your mobile before you step into the

room. Look fabulous; dress sharp and make sure you look

your best. Start the interview with a handshake; give a nice

firm press and then some up and down movement. Determine to establish a rapport with the

interviewer right from the start. Always let the interviewer finish speaking before

giving your response. Express yourself fluently with clarity and

precision.

Useful material: 4career.net/top-10-elements-to-make-a-

Interview questions and answers – free pdf download Page 25 of 30

Page 26: Top oops interview questions and answers job interview tips

good-first-impression-at-a-job-interview

Tip 3: The “Hidden” Job MarketMany of us don’t recognize that hidden job market is a huge one and accounts for 2/3 of total job demand from enterprises. This means that if you know how to exploit a hidden job market, you can increase your chance of getting the job up to 300%.

In this section, the author shares his experience and useful tips to exploit hidden job market.

Here are some sources to get penetrating into a hidden job market: Friends; Family; Ex-coworkers; Referral; HR communities; Field communities; Social networks such as Facebook, Twitter…; Last recruitment ads from recruiters; HR emails of potential recruiters…

Interview questions and answers – free pdf download Page 26 of 30

Page 27: Top oops interview questions and answers job interview tips

Tip 4: Do-It-Yourself Interviewing PracticeThere are a number of ways to prepare for an interview at home without the help of a professional career counselor or coach or a fee-based service.

You can practice interviews all by yourself or recruit friends and family to assist you.

Useful material: 4career.net/free-ebook-75-interview-questions-and-answers

Interview questions and answers – free pdf download Page 27 of 30

Page 28: Top oops interview questions and answers job interview tips

Tip 5: Ask questionsDo not leave the interview without ensuring that you know all that you want to know about the position. Once the interview is over, your chance to have important questions answered has ended. Asking questions also can show that you are interested in the job. Be specific with your questions. Ask about the company and the industry. Avoid asking personal questions of the interviewer and avoid asking questions pertaining to politics, religion and the like.

Ref material: 4career.net/25-questions-to-ask-employers-during-your-job-interview

Interview questions and answers – free pdf download Page 28 of 30

Page 29: Top oops interview questions and answers job interview tips

Tip 6: Follow up and send a thank-you noteFollowing up after an interview can help you make a lasting impression and set you apart from the crowd.Philip Farina, CPP, a security career expert at Manta Security Management Recruiters, says: "Send both an email as well as a hard-copy thank-you note, expressing excitement, qualifications and further interest in the position. Invite the hiring manager to contact you for additional information. This is also an excellent time to send a strategic follow-up letter of interest."

Ref material: 4career.net/top-8-interview-thank-you-letter-samples

Interview questions and answers – free pdf download Page 29 of 30

Page 30: Top oops interview questions and answers job interview tips

Interview questions and answers – free pdf download Page 30 of 30