Top 100 C# Interview Questions and Answers, interview questions and answers.#Interview #questions


Top 100 C# Interview Questions and Answers

Top 100 Basic and Advanced C# Interview Questions and Answers for Freshers and 2 – 4 years Experienced Dot Net developers and Testers with sample code and best answers.

C# is a type-safe, managed and object oriented language, which is compiled by .Net framework for generating intermediate language (IL).

  • Constructors and Destructors
  • Properties
  • Passing Parameters
  • Arrays
  • Main
  • XML Documentation and
  • Indexers
  • Easy to learn
  • Object oriented
  • Component oriented
  • Part of .NET framework
  • Visual Studio Express (VCE)
  • Visual Studio (VS)
  • Visual Web Developer

5) Explain the types of comments in C#?

Below are the types of comments in C# –

6) Explain sealed class in C#?

Sealed class is used to prevent the class from being inherited from other classes. So “sealed” modifier also can be used with methods to avoid the methods to override in the child classes.

7) Give an example of using sealed class in C#?

Below is the sample code of sealed class in C# –

If any class inherits from class “B” then method – “First” will not be overridable as this method is sealed in class B.

8) List out the differences between Array and ArrayList in C#?

  • Array stores the values or elements of same data type but arraylist stores values of different datatypes.
  • Arrays will use the fixed length but arraylist does not uses fixed length like array.

“Using” statement calls – “dispose” method internally, whenever any exception occurred in any method call and in “Using” statement objects are read only and cannot be reassignable or modifiable.

Namespaces are containers for the classes. We will use namespaces for grouping the related classes in C#. “Using” keyword can be used for using the namespace in other namespace.

11) Why to use keyword “const” in C#? Give an example.

“Const” keyword is used for making an entity constant. We can’t reassign the value to constant.

12) What is the difference between “constant” and “readonly” variables in C#?

  • “Const” keyword is used for making an entity constant. We cannot modify the value later in the code. Value assigning is mandatory to constant variables.
  • “readonly” variable value can be changed during runtime and value to readonly variables can be assigned in the constructor or at the time of declaration.

13) Explain “static” keyword in C#?

“Static” keyword can be used for declaring a static member. If the class is made static then all the members of the class are also made static. If the variable is made static then it will have a single instance and the value change is updated in this instance.

14) What is the difference between “dispose” and “finalize” variables in C#?

  • Dispose – This method uses interface – “IDisposable” interface and it will free up both managed and unmanaged codes like – database connection, files etc.
  • Finalize – This method is called internally unlike Dispose method which is called explicitly. It is called by garbage collector and can’t be called from the code.

15) How the exception handling is done in C#?

In C# there is a “try… catch” block to handle the error.


Management Interview Questions and Answers, interview questions and answers.#Interview #questions #and #answers


Management Interview Questions and Answers

in Brief:” Management interview questions are questions that focus on evoking a reaction from a candidate for a certain purpose to provide a general image of the manager (i.e. the candidate).

How is that? Because the answers that the candidate provides present his way of thinking and demonstrate if he can disentangle himself from a given situation with a good lesson learned – to see how skilled and experienced he is”

Why would the employer want to ask these management questions?

The employer wants to know how this particular manager will perform if hired, verifying his ability to think about a complex problem and the way he may solve it is he a follower or a natural leader?

This article provides manager interview questions and suggests how to handle these tough manager interview questions.

Senior Management: Interview Questions for Management Positions

As opposed to any other interview questions, when answering these management questions, you should organize your answer (the way you construct your answer through the required elements of an answer) for the interviewer to assess your managing skills.

Manager Interview Questions Answers Leadership

• Examples of strategic thinking in past situations

• Have you ever challenged, shaken old work methods.

• How do you make your decisions in general?

• How do you reach a decision if you don’t have all the facts?

• How do you usually solve problems?

• Examples of situations when your initiative ideas for improvement have made a significant difference.

• How have you coordinated the work of your team to achieve target goals?

• Example of adaptation to changes and the difficulties.

• When did you last update your business management education? What are your professional development needs?

• How do you handle a heavy workload? How do you prioritize day to day tasks?

• How do you handle failures? Provide examples.

• How do you define your key team members?

How to answer these questions?

The above group of questions may be put forward to identify your leadership and management style and the methods you take to achieve your objectives as a key leader in an organization. The employer would want to see your initial reaction to these questions, how you analyze before answering and the quality of your answers a good story with a value added lesson learned.

I won t give examples, as you probably know your achievements better than anyone else.

Management interview questions: Communication skills

• How do you build and maintain a relationship with co-workers, key managers and customers?

• How do you start a working relationship with a new customer?

• What are your influencing tactics? Which people are hard to persuade?

• How do you satisfy customers? What is a good product for customers? How do customers choose a product?

How to answer these questions?

The above group of questions is designed to define your communication skills and see how open you are to forging new contacts – your networking abilities. These questions also aim to evaluate your sales skills and marketing experience. The employer wishes to observe how you behave when you meet new people. He also wants to know if people like working with you and how you influence people. When answering, you may want to provide past examples and recent scenarios.

Take a few seconds before answering

In summing up these management questions, the main thing is to evaluate the quality of the answers. If one has already prepared his answers and “thought it through” (or “blurts them out”) without presenting his “thought process”, he hasn’t really shown the interviewer his analytic mind which was the whole point of these questions.

Therefore, think before answering.

• The article refers to both men and women as candidates.


SQL Queries Interview Questions and Answers – Crack an interview, interview questions


SQL Queries Interview Questions and Answers

Structured Query Language (SQL) is a standard computer language for relational database management and data manipulation. SQL is used to query, insert, update and modify data. This section contains some of the very important SQL Queries Interview Questions.

Interview questions and answers

SQL Interview Questions and Answers

Write SQL Query to display current date.

Ans: SQL has built in function called GetDate () which returns current timestamp.

Mention the difference between clustered and a non-clustered index?

  1. A clustered index is a special type of index that reorders the way records in the table are physically stored. Therefore table can have only one clustered index.
  2. A non clustered index is a special type of index in which the logical order of the index does not match the physical stored order of the rows on disk. The leaf node of a non clustered index does not consist of the data pages. Instead, the leaf nodes contain index rows.

Write an SQL Query to find names of employee start with ‘S’.

Ans: SELECT * FROM Employees WHERE EmpName like ‘S%’.

When do you use UPDATE_STATISTICS command?

Ans: This command is used when a large processing of data has occurred. If any large amount of deletions, any modifications, or Bulk Copy into the tables has occurred, it has to update the indexes to take these changes into account. UPDATE_STATISTICS updates the indexes on these tables accordingly.

Interview Questions on SQL for Experienced : The sole purpose of these questions is elimination. Often you will find the questions are not loyal to any particular right answer but there is always scope for further improvement in your reply.

What type of Joins have you used?

Ans: The knowledge of Joins is a MUST for every interviewee. Most SQL programmers have used inner join and (left/right) outer join; but the catch point here is to also mention cross join and self-join.

How will you find the 3 rd max salary in the employment table?

Ans: Select distinct salary from employment e1 where 3= (select count (distinct salary) from employment e2 where e1.salary =e2.salary)

How would apply date range filter?

Ans: One can use simple conditions like = and =, or use between/and but the trick here is to know your exact data type.

  • Sometimes date fields contain time and that is where the query can go wrong so it is recommended to use some date related functions to remove the time issue. In SQL Server common function for accomplishing the task datediff () function.
  • Interviewees also have to be aware of different time zones and server time zone.
  • To increase query performance you may still want to use between however you should be aware of proper format you should use if not it might misbehave during filtering.

How will I retrieve all records of employment 1 those should not be present n employment 2?

Ans: (Select * from employment 2)-(Select * from employment 1).

SQL Server Interview Questions and Answers

Which TCP/IP port does SQL Server run on? How can it be changed?

Ans: SQL Server runs on port 1433. It can be changed from the Network Utility TCP/IP properties.

What is SQL Server Agent?

Ans: SQL Server agent plays an important role in the day-to-day tasks of a database administrator (DBA). Its purpose is to ease the implementation of tasks for the DBA, with its full- function scheduling engine, which allows you to schedule your own jobs and scripts.

Which command using Query Analyzer will give you the version of SQL server and operating system?

Ans: SELECT SERVERPROPERTY (‘productversion’), SERVERPROPERTY (‘productlevel’) and SERVERPROPERTY (‘edition’).

Define Trigger.

Ans: Trigger allows us to execute a batch of SQL code when an insert, update or delete command is executed against a specific table.

Triggers are special types of stored procedures that are defined to execute automatically in place of or after data modifications. They can be executed automatically on the insert, delete and update operation.

SQL Server Interview Questions and Answers for Experienced

Define a temp table.

Ans: In a nutshell, a temp table is a temporary storage structure. It means you can use a temp table to store data temporarily so you can manipulate and change it before it reaches its destination format.

In table_user.gender column change ‘male to female’ and ‘female to male’ in one SQL statement.

Ans: UPDATE table_user

WHEN ‘male’ THEN ‘female’

WHEN ‘female’ THEN ‘male’

How to create recursive query in SQL Server?

Ans: Recursive query can be create in SQL using stored procedure but you can also use CTE (Common table expression). It might be also worth asking about performance as CTE is not always very fast.

How will you find out 7th highest salary in a table?

Ans: SELECT * FROM

(SELECT ROW_NUMBER () OVER (ORDER BY sal_amount DESC) row_number, emp_id,

WHERE row_number = 7

HIGHLY RECOMMENDED IF YOU SERIOUSLY WANT TO JOIN A GOOD COMPANY: TO GET ALL THE QUESTIONS WITH ANSWERS, BUY ANY OF THESE BOOK FROM FLIPKART

В SQL Server Interview Questions Answers, Offer Price- Rs. 318 Interview questions and answers

В SQL Server Interview Questions You ll Most Likely be Asked , Offer Price- Rs. 1238В Interview questions and answers

More from my site

Share and Enjoy

  • Interview questions and answers
  • Interview questions and answers
  • Interview questions and answers
  • Interview questions and answers
  • Interview questions and answers
  • Interview questions and answers
  • Interview questions and answers
  • Interview questions and answers

Common interview questions and answers, interview questions and answers.#Interview #questions #and #answers


Common interview questions and answers

One of the most popular ‘ice breakers’.

This question may be used to assess your ability to think on your feet. An ideal response would briefly state your career history and what skills you have been able to develop. Explain how these skills could easily transfer to this new position.

Be sure to stay focused on qualities that are career related unless specifically instructed by the interviewer.

An ideal response for this question should be 1 to 2 minutes.

example interview response:

I have been in the customer service industry for the past four years. My most recent experience has been face to face consulting in the IT industry. One reason I particularly enjoy this business is the opportunity to connect with people. In my last job I formed some significant customer relationships resulting in a 20 percent increase in sales in a matter of months.

What I am looking for now is a company that values customer relations where I can join a strong team and have a positive impact on customer retention and sales.

Tell me about your ability to work under pressure

To assist with your response give an example of a time in which you were able to achieve a desired outcome under constraints such as time or budget.

example interview response:

Throughout my career in the IT industry I have always been able to demonstrate a high level of control even when placed under pressure.

For example when employed by ABC Computer Help there were instances in which I received numerous requests for IT support. During these busy times was able categorize requests as either ‘urgent’ or ‘non-urgent’ and action them accordingly.

I have been able to develop a means of prioritizing tasks so that my workload remains manageable.

What is your greatest strength?

Mention a skill or behaviour that is transferable. You may want to consider: your ability to work under pressure, ability to prioritize, problem solve, ability to focus on the big picture, leadership skills, etc.

example interview response:

My ability to get along with people has always been a great strength. It is something the I am proud of personally and professionally.

Tell me about a problem you had with a supervisor

Danger – Don’t fall for this type of question.

Develop a sudden loss of memory. This is a test to see if you will speak ill of your former employer. Stay positive and spend little time here. Answer the question which indicates a level respect and loyalty.

example interview response:

In the entire time I have been in the workforce I cant recall a time in which I have had a misunderstanding with an employer.

I have been very lucky to have worked under such great people in my working life. If I have ever had a concern I have always been able to confine in my one up manager.

Do you have any questions for me?

Your answer should always be yes.

You may be perceived as disinterested otherwise. Remember that an interview is a two way process. It is a chance for you to see if this prospective company will live up to your expectations as an employer.

Think of the interview as conversation. As with any type of conversation timing is important. You yourself will need to decipher when to ask what type questions along the way and not only when prompted with this question.

Asking questions about the interviewer on a semi personal level can can be a great chance to also build rapport. This wont be applicable for every interview. Most interviewers like to talk about themselves. Consider: What do you yourself like most about working for ‘ABC Consulting’?

example interview responses:

How did this position become available?

What do you consider to be the company’s strengths and weaknesses?

Can you describe a typical day for someone in this position

Do you consider yourself successful?

Your answer should always be yes.

Always aim to provide examples of your past and current career, family, social or community achievements which you feel comfortable sharing.

No one would ever consider hiring someone who considers them self as unsuccessful.

Answering this type of question promptly will also reinforce to your interviewer that you are confident and capable individual.

Remember, factual examples that you can provide of your past will be an indicator of future for success.

Your resume suggests that you’re over qualified for this role. What’s your opinion?

Your interviewer is wanting to asses weather or not you are here for the long term. Give assurance that you will be committed to the bigger picture and that the company can only benefit with well qualified staff.

example interview response:

I am looking for a fertile company in which I can see myself in the bigger picture.

I can tell you that I believe I am well qualified for this position and I believe that a strong company needs strong staff.

A growing energetic company can never have too much talent.


Interview Questions, Job Interview Questions – Answers, Free Sample Interview Questions, Java,


interview questions and answers

Interview questions and answers

Interview questions and answers

CoolInterview.com India’s Largest Interview Questions & Answers Website

CoolInterview.com is world’s Largest Collection of Free Interview Questions. Feel free to browse, read, comment and contribute on world’s largest Free Interview Questions website.

Best Collection of Quality Free Accounts, Business Management, C, C++, Computer Hardware, Data Warehousing, Database, DOT NET, Insurance, Investment, Java, J2EE, Latest Technologies like Big Data, Business Analytics, Cloud Computing, Internet of Things, Loans, Mainframe, Marketing, Microsoft, Multimedia, Networking, Open Source Applications, Operating System, Oracle, Peoplesoft, Programming Languages, Protocols, SAP, Science, Servers, Siebel, Tax, Testing, Web, MBBS, IAS, GRE, GMAT Interview Questions and Answers, FAQs, Queries, Tips & Tricks, Articles, Projects, Placement Papers, Jobs, Companies, News, Updates etc.

CoolInterview.com Interview Questions & Answers, FAQs, Queries Categories

This site is the most amazing and knowledgeable site that I have visited in my lifetime for HR fraternity (Indian Representation). I have been thru most of the stuff on this site and was very pleased to read it. I hope this keeps going and updating on timely basis for all to learn new things thru it.

Sr Executive – HR

Keystone Solutions Pvt.Ltd., New Delhi

One of the most useful, well categorized and exhaustive website for any Job interview preparations. Its a must before any interview, walk-ins, technical as well as HR rounds of interview for both freshers as well as experienced professionals. I cracked my SAPLabs interview with your help. Thanx a lot. Keep doing the good job guys.

Sap Labs, Hyderabad

Being a placement officer is a huge responsibility and I need to make sure most of my students get good job Offers. This website has been of immense help for all my students in preparing for their college exams, certifications, interviews etc. Its highly recommended for all students as well as teachers too. It helped me increase the placements in my college by almost 30%.

BIT Meshra, Ranchi

I was preparing for government jobs and have faced lots of Bank Exams, PO Exams, Govt. Exams, and finally I got selected as Service Tax Inspector, in Central Excise Department and got my posting in Bangalore. Thanx to CoolInterview.com, I learnt how to reply to most general questions as well as technical and current affairs questions too. Very useful website for all.

Service Tax Inspector

Central Excise Department, Bangalore

I have always topped in my class and am currently persuing my B Com. I want to be a CA and am working hard for the same. This website helped me a lot as I can find all the assignment and exam questions and answers here provided in well categorized manner. It also helps me during my exam revisions and gets me very good marks. A must free website for all students and job seekers.


Job Interview Questions and Answers, Bluesky Interviews, interview questions and answers.#Interview #questions


Job Interview Questions, Answers, Tips, Techniques

Welcome to the BlueSky Interviews site giving you lots of sample interview questions for a whole range of jobs along with expert interview answers. You will learn about the different types of questions you may be asked and you will find articles and advice helping you to excel in any job interview.

The site is brought to you by Anson Reed the interview coaching and training specialists and is packed with lots of free information and some great interview skills training products all designed to help you make a powerful impression at any job interview and get the job you want.

A job interview can be daunting even for the most experienced candidates and our extensive selection of articles and advice will help make interviews easy. Not only will you find information about the types of interview questions and how to answer them you will also discover some top Interview Tips along with powerful Interview Techniques from top recruiters. We also provide interview coaching and online interview training, great services which can really help you get hired faster. We hope you enjoy using the site and we are sure it will help boost your confidence and ensure you arrive at your interview fully prepared, confident you can win the job offer.

Latest Posts

Interview questions and answers

How to Prepare for a Job Interview

There is no doubt that first impressions count for a lot, and a job interview is no different in this respect. The job m .

By Annette Lewis

Posted: February 17

Interview questions and answers

Top Interview Techniques for Jobseekers

This section is all about Interview Techniques; those key actions, behaviours and attitudes which can make all the diffe .

By Joe McDermott

Posted: February 5

Interview questions and answers

13 Best Job Interview Tips For Success

These articles contains top tips to help you arrive at your interview fully prepared and confident of success. These rel .

By Joe McDermott

Posted: December 3

In the site we also include interview questions specific to a whole range of different jobs and sectors. From Accounting to Medicine and Nursing right through to Sales we have got content which will help you anticipate what they will ask and we provide help with being able to give strong and successful answers.

Going to an interview for a job in Customer Services or in a Call Centre? Then read this article which tells you what to expect and provides some typical interview questions for you to prepare for.

A really useful article with great advice for any candidate looking for a job in the Administration and Clerical sector.

Going for an interview in Project Management? Then check out this article with some sample interview questions and tips on how to answer them.

More sample questions for specific jobs:

A Competency Interview is a technique used by recruiters and employers to determine how well matched a job applicant is to a particular position. The core concept involves each applicant being asked the same questions in order to determine how skilled they are.

Have you ever been asked a Behavioural interview question? Perhaps you have but didn’t realise. These can be called situational interview questions and can be difficult for many people to answer correctly. The key is to give a strong example using the right structure.

So why is it so difficult to give a good answer in an interview? For some it is a breeze and yet for others it is a challenge. You know that answering job interview questions is a skill that can be learned by anyone. It really is a matter of anticipating the questions you will be asked and preparing and practicing effective and relevant answers.

Want to be able to create a winning Competency Answer? Read this article which outline two great techniques you can use when bringing structure to your interview answers.

Nothing lasts forever and especially in the current job market nothing is permanent. If you perhaps have been made redundant you will know how important up to date interview skills are. This article will tell you more about that and how you can develop winning interview skills.

Annette Lewis is an accredited interviewer and has recruited for many organisations within Healthcare, Education, Customer Services and Banking. Google+


Interview Questions, Job Interview Questions – Answers, Free Sample Interview Questions, Java,


job interview questions and answers

Job interview questions and answers

Job interview questions and answers

CoolInterview.com India’s Largest Interview Questions & Answers Website

CoolInterview.com is world’s Largest Collection of Free Interview Questions. Feel free to browse, read, comment and contribute on world’s largest Free Interview Questions website.

Best Collection of Quality Free Accounts, Business Management, C, C++, Computer Hardware, Data Warehousing, Database, DOT NET, Insurance, Investment, Java, J2EE, Latest Technologies like Big Data, Business Analytics, Cloud Computing, Internet of Things, Loans, Mainframe, Marketing, Microsoft, Multimedia, Networking, Open Source Applications, Operating System, Oracle, Peoplesoft, Programming Languages, Protocols, SAP, Science, Servers, Siebel, Tax, Testing, Web, MBBS, IAS, GRE, GMAT Interview Questions and Answers, FAQs, Queries, Tips & Tricks, Articles, Projects, Placement Papers, Jobs, Companies, News, Updates etc.

CoolInterview.com Interview Questions & Answers, FAQs, Queries Categories

This site is the most amazing and knowledgeable site that I have visited in my lifetime for HR fraternity (Indian Representation). I have been thru most of the stuff on this site and was very pleased to read it. I hope this keeps going and updating on timely basis for all to learn new things thru it.

Sr Executive – HR

Keystone Solutions Pvt.Ltd., New Delhi

One of the most useful, well categorized and exhaustive website for any Job interview preparations. Its a must before any interview, walk-ins, technical as well as HR rounds of interview for both freshers as well as experienced professionals. I cracked my SAPLabs interview with your help. Thanx a lot. Keep doing the good job guys.

Sap Labs, Hyderabad

Being a placement officer is a huge responsibility and I need to make sure most of my students get good job Offers. This website has been of immense help for all my students in preparing for their college exams, certifications, interviews etc. Its highly recommended for all students as well as teachers too. It helped me increase the placements in my college by almost 30%.

BIT Meshra, Ranchi

I was preparing for government jobs and have faced lots of Bank Exams, PO Exams, Govt. Exams, and finally I got selected as Service Tax Inspector, in Central Excise Department and got my posting in Bangalore. Thanx to CoolInterview.com, I learnt how to reply to most general questions as well as technical and current affairs questions too. Very useful website for all.

Service Tax Inspector

Central Excise Department, Bangalore

I have always topped in my class and am currently persuing my B Com. I want to be a CA and am working hard for the same. This website helped me a lot as I can find all the assignment and exam questions and answers here provided in well categorized manner. It also helps me during my exam revisions and gets me very good marks. A must free website for all students and job seekers.


Job Interview Questions and Answers, interview questions and answers.#Interview #questions #and #answers


Job Interview Questions and Answers

Interview questions and answers

Interview questions and answers

Do you have a job interview coming up? The best way to get ready for an interview is to take the time to review the most common interview questions you will most likely be asked. Knowing what you re going to say can eliminate a lot of interview stress.

You don t need to memorize an answer, but do take the time to consider how you ll respond. The more you prepare, the more confident you ll feel during a job interview.

When you re not sure what to expect during an interview, also review this refresher on how job interviews work.

Job Interview Questions and Best Answers

Review examples of the best answers for the most frequently asked interview questions in several different categories, and advice on how to answer.

Most Frequently Asked Interview Questions

Interview Questions About You

Interviewers will ask questions about you to gain insight into your personality, and to determine whether you re a fit for both the job and the company.

Questions About Leaving Your Job

Employers almost always ask about why you left, or are leaving, your job. Be prepared with an explanation for why you re moving on.

Interview Questions About Salary

Some of the hardest questions to answer during a job interview are about compensation.

Here s what you will be asked and examples of the best answers.

Questions About Qualifications

The most important thing for interviewers to determine is whether you re qualified for the job. Here s what they will ask to find out.

Questions About Job Performance

How you performed in previous roles can indicate how you will perform in the job for which you re applying. Be prepared to answer questions about what you did well – and what you didn t.

Interview Questions About Your Work History

Is your work history stable, has it prepared you for the job you re interviewing for, and do you have any gaps in your employment history that the company should be concerned about? Here s what you ll be asked about.

Questions About Management and Teamwork

How you get along with others, including both co-workers and managers, is important to all employers. Here are some of the questions employers ask about getting along at work.

Questions About Why You Should Be Hired

Why should you be hired over the other candidates? Here s when you ll have the opportunity to make the case for getting a job offer.

Interview Questions About the New Job and the Company

What do you know about the company, why do you want the job, and what would you do if you were to be hired, are just some of the questions you ll be asked about the position and employer.

Interview Questions About the Future

Are you going to stick around if you re hired is something most employers want to know. All these questions will gauge your interest in making a commitment.

The Final Question

The last question you ll most likely be asked is whether you have any questions. Here s how to respond.

In addition to being ready to answer these standard questions, prepare for behavior-based interview questions. This is based on the premise that a candidate s past performance is the best predictor of future performance. You will need to be prepared to provide detailed responses including specific examples of your work experiences.

There are some interview questions, typically known as illegal interview questions, that employers should not ask during a job interview. Here are questions that shouldn t be asked during a job interview and how to best respond.

Have a phone interview on the agenda? Here are common questions asked during a telephone interview, plus tips on how best to answer so you can move to the next stage of the interview process.

The last job interview question you may be asked is What can I answer for you? Have an interview question or two of your own ready to ask. You aren t simply trying to get this job – you are also interviewing the employer to assess whether this company and the position are a good fit for you.


C Interview Questions and Answers for Freshers, Experienced, interview questions and answers.#Interview


C++ Interview Questions and Answers for Freshers, Experienced

We are providing comprehensive set of C++ Interview Questions and Answers for Freshers and Experienced who wants to get into software industry. It’s regardless of which domain or language you would like to pursue your career in, because 90% of campus placement interviews include questions from C or C++. The main reason being a candidate who is fresh out of college is not expected to be a master of widely used languages like Java, Python, Perl etc. and most of the universities have C or C++ as a part of their curriculum. For example, in most institutions C language is being taught along with data structure course and C++ as part of Object oriented programming. So always expect questions on C/C++ in the technical interviews for fresher.

One advantage with fresher interviews is that there are only limited number of concepts and questions and the same has been repeatedly being asked over years. If you want to pursue your career in system level programming like driver development, needless to say, you should show your mastery in C/C++ interviews. Here we have identified and collected a set of frequently asked C++ interview questions and answers for experienced and freshers as well. It’s a continuously updated list, go through them, understand the concepts and excel in the interviews.

1. What is difference between C and C++ ?

  1. C++ is Multi-Paradigm ( not pure OOP, supports both procedural and object oriented) while C follows procedural style programming.
  2. In C data security is less, but in C++ you can use modifiers for your class members to make it inaccessible from outside.
  3. C follows top-down approach ( solution is created in step by step manner, like each step is processed into details as we proceed ) but C++ follows a bottom-up approach ( where base elements are established first and are linked to make complex solutions ).
  4. C++ supports function overloading while C does not support it.
  5. C++ allows use of functions in structures, but C does not permit that.
  6. C++ supports reference variables ( two variables can point to same memory location ). C does not support this.
  7. C does not have a built in exception handling framework, though we can emulate it with other mechanism. C++ directly supports exception handling, which makes life of developer easy.

3. What is an Object/Instance?

4. What do you mean by C++ access specifiers ?

Members declared as private are accessible only with in the same class and they cannot be accessed outside the class they are declared.

  • public:

    Members declared as public are accessible from any where.

  • protected:

    Members declared as protected can not be accessed from outside the class except a child class. This access specifier has significance in the context of inheritance.

  • 5. What are the basics concepts of OOP?

    • Classes and Objects
    • Encapsulation
    • Data abstraction
    • Inheritance

    6. What is the use of volatile keyword in c++? Give an example.

    Volatile keyword is used to tell compiler that the variable declared using volatile may be used from outside the current scope so that compiler wont apply any optimization. This matters only in case of multi-threaded applications.

    In the above example if variable ‘a’ was declared using volatile, compiler will not optimize it. In shot, value of the volatile variables will be read from the memory location directly.


    Top 10 Interview Questions and Best Answers, interview questions and answers.#Interview #questions


    Top 10 Interview Questions and Best Answers

    Interview questions and answers

    It s important to be prepared to respond effectively to the interview questions that employers typically ask at job interviews. Since these questions are so common, hiring managers will expect you to be able to answer them smoothly and without hesitation.

    You don t need to memorize an answer, but do think about what you re going to say so you re not put on the spot during the job interview. Your responses will be stronger if you prepare in advance, know what to expect during the interview, and have a sense of what you want to play up during your interview.

    Top 10 Interview Questions and Best Answers

    Review the top 10 interview questions you ll most likely be asked at a job interview, plus the best answers. Also, review the other questions you may be asked, so you re prepared to ace the interview.

    This is one of the questions that employers almost always ask. When you are asked about your greatest strengths, it s important to discuss the attributes that will qualify you for the specific job and set you apart from the other candidates.

    Another typical question interviewers will ask is about your weaknesses. Do your best to frame your answers around positive aspects of your skills and abilities as an employee.

    Here’s how to answer questions about you without giving out too much – or too little – personal information.

    Start by sharing some of your personal interests which don t relate directly to work.

    Are you the best candidate for the job? Be prepared to say why. Make your response a concise sales pitch that explains what you have to offer the employer, and why you should get the job.

    What are you looking for in terms of salary? It seems like a simple question, but your answer can knock you out of content for the job if you overprice yourself. Here s the best way to answer questions about salary.

    6. Why are you leaving or have left your job? – Best Answers

    When asked about why you are moving on, stick with the facts, be direct and focus your interview answer on the future, especially if your leaving wasn t under the best of circumstances.

    This question gives you an opportunity to show the interviewer what you know about the job and the company. Be specific about what makes you a good fit for this role, and mention aspects of the company and position that appeal to you.

    What do you do when things don’t go smoothly at work? The best way to respond to this question is to give an example of how you have handled stress in a previous job.

    9. Describe a difficult work situation / project and how you overcame it. – Best Answers

    The interviewer wants to know what you do when you face a difficult decision. As with the question about stress, be prepared to share an example of what you did in a tough situation.

    This question is designed to find out if you’re going to stick around or move on as soon as you find a better opportunity. Keep your answer focused on the job and the company you’re interviewing with.

    Do You Have Any Questions?

    At the close of the interview, most interviewers ask whether you have any questions about the job or company. It s always a good idea to have a list ready and to be prepared to respond.

    Bonus Questions

    Here are some related questions that you may be asked during a job interview that will require some thought to answer. Consider how you d respond, so you re as prepared as possible to answer the hiring manager s questions.

    Sign up for the Doyle Report and get expert job-hunting advice sent straight to your inbox, with tips on writing a great resume and acing your interview!

    More Interview Questions

    Review more common job interview questions, plus see sample answers you can use to practice for a job interview.

    Here s a list of the top ten behavioral interview questions you may be asked during a job interview.

    There are some interview questions that hiring managers should not ask during a job interview for legal reasons. Here are questions that shouldn t be asked during a job interview and how to respond.