Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

51.

Differentiate between realloc() and free().

Answer»
52.

How does code-bloating occur in C++?

Answer»
53.

How would you find out if a linked-list is a cycle or not?

Answer»
54.

Explain Stack unwinding.

Answer»
55.

What are the different types of STL containers?

Answer»
56.

Explain STL.

Answer»
57.

You want to link a C++ program to C functions. How would you do it?

Answer»
58.

In a function declaration, what does extern mean?

Answer»
59.

Do you think the following code is fine? If not, what is the problem?

Answer»
60.

Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

Answer»
61.

What are Stacks? Give an example where they are useful.

Answer»
62.

You run a shell on UNIX system. How would you tell which shell are you running?

Answer»
63.

What is a pdb file?

Answer»
64.

How would you differentiate between a pre and post increment operators while overloading?

Answer»
65.

What is the type of “this” pointer? When does it get created?

Answer»
66.

When does a class need a virtual destructor?

Answer»
67.

In what situations do you have to use initialization list rather than assignment in constructors?

Answer»
68.

Explain dangling pointer.

Answer»
69.

Explain storage qualifiers in C++.

Answer»
70.

Name the implicit member functions of a class.

Answer»
71.

When do you call copy constructors?

Answer»
72.

Explain Copy Constructor.

Answer»
73.

Explain public, protected, private in C++?

Answer»
74.

Differentiate between late binding and early binding. What are the advantages of early binding?

Answer»
75.

Explain class invariant.

Answer»
76.

Explain explicit container.

Answer»
77.

What is namespace?

Answer»
78.

Explain container class.

Answer»
79.

Differentiate between class and structure.

Answer»
80.

What is the use of default constructor?

Answer»
81.

What are the advantages of using friend classes?

Answer»
82.

Explain One-Definition Rule (ODR).

Answer»
83.

Are there any special rules about inlining?

Answer»
84.

Where are setjmp and longjmp used in C++?

Answer»
85.

When should a function throw an exception?

Answer»
86.

How should runtime errors be handled in C++?

Answer»
87.

Does improper inheritance have a potential to wreck a project?

Answer»
88.

Explain the benefits of proper inheritance.

Answer»
89.

What things would you remember while making an interface?

Answer»
90.

What is the real purpose of class – to export data?

Answer»
91.

Explain abstraction.

Answer»