Category Archives: C++

C and C++ questions for the interview

What is the output of printf(”%d”)
What will happen if I say delete this
Difference between “C structure” and “C++ structure”.
Diffrence between a “assignment operator” and a “copy constructor”
What is the difference between “overloading” and “overridding”?
Explain the need for “Virtual Destructor”.

Posted in C++ | 123 Comments

Microsoft college recruitment questions

Reader Vinay Solanki faced these questions from Microsoft recruiter, who apparently was hiring straight out of college.

How did you first get interested in Computer Science?
What do you like to do best related to computers now (programming, administration, testing, manage projects, etc)? What is it about that area that you specifically enjoy?
What is your strongest [...]

Also posted in General, Windows | 9 Comments

Windows programming interview questions

What are kernel objects? - - Several types of kernel objects, such as access token objects, event objects, file objects, file-mapping objects, I/O completion port objects, job objects, mailslot objects, mutex objects, pipe objects, process objects, semaphore objects, thread objects, and waitable timer objects.
What is a kernel object? - Each kernel object is simply a [...]

Also posted in Windows | 2 Comments

Large list of Intel interview questions

Insights of an inverter. Explain the working?
Insights of a 2 input NOR gate. Explain the working?
Insights of a 2 input NAND gate. Explain the working?
Implement F= not (AB+CD) using CMOS gates?
Insights of a pass gate. Explain the working?

Also posted in Hardware | 4 Comments

Interview questions on C/C++

A reader submitted the interview questions he was asked. More C/C++ questions will be added here, as people keep sending us a set of 2-3 questions they got on their job itnerview.
Q1: Tell how to check whether a linked list is circular.
A: Create two pointers, each set to the start of the list. Update each [...]

Posted in C++ | 77 Comments

Interview at IBM

A reader interviewed with IBM and sent the following questions in:

I have a scale and 7 balls. 1 ball is heavier than all the rest. How do I determine the heaviest ball with only 3 possible weighing attempts?
What is a linked list?
Name an advantage of linked list over array?

Also posted in General, Java | 102 Comments

Programming interview questions

A recruiter sent this simple set of interview questions for a programming position.

How can you defined OOP?
How can you use OOP in your projects/products/applications?
What is copy constructor?
How many types of copy constructor are there?
What shallow copy constructor does/behaves?
Does C++ support copy constructor?
Does Java support copy constructor?
(If the answer to the previous question was correct) Why [...]

Also posted in General, Java | 17 Comments

C++ object-oriented questions

What is a modifier? A modifier, also called a modifying function is a member function that
changes the value of at least one data member. In other words, an
operation that modifies the state of an object. Modifiers are also
known as ‘mutators’. Example: The function mod is a modifier in the
following code snippet:

class test
{
[...]

Posted in C++ | 24 Comments

COM interview questions

What is IUnknown? What methods are provided by IUnknown? It is a generally good idea to have an answer for this question if you claim you know COM in your resume. Otherwise, you may consider your interview failed at this point. IUnknown is the base interface of COM. All other interfaces must derive directly or [...]

Also posted in VB, Windows | 6 Comments

Intel interview questions and answers

The following questions are used for screening the candidates during the first interview. The questions apply mostly to fresh college grads pursuing an engineering career at Intel.

Have you studied buses? What types?
Have you studied pipelining? List the 5 stages of a 5 stage pipeline. Assuming 1 clock per stage, what is the latency of an [...]

Also posted in Hardware | 4 Comments

Software tester interview questions

The questions were asked by Lucent Technologies for Software Tester (in some companies SQA - Software Quality Assurance) position.

What programming language are you using?
What C++ libraries are you proficient with?

Also posted in General | 43 Comments

C interview questions

A frequent reader of this site sent this in. No answers, but a nice set of questions. Consider getting Kernighan and Ritchie title if you find many things puzzling here.

What does static variable mean?
What is a pointer?
What is a structure?

Posted in C++ | 159 Comments