C++ Interview Questions
Questions Answers Views Company eMail

In C++ cout is: a) object b) class c) something else

Infosys, Lehman Brothers,

11 25820

What is the output of: String a1 = "Hello"; String a2 = "world!"; String* s1 = &a2; String& s2 = a1; s1 = &a1; s2 = a2; std::cout << *s1 << " " << s2 << std::endl;

Lehman Brothers,

4 7841

Why would you make a destructor virtual?

Lehman Brothers,

3 7902

what is the difference between and "stdio.h"?

5 8800


Is there any difference between dlearations int* x and int *x? If so tell me the difference?

Lason,

16 25171

Explain the concept of abstracion and encapsulation with one example. What is the difference between them?

PCS,

3 11157

What are the different forms of polymorphism??

Mantaq, NUC, PCS,

8 13683

all about pointers

2 5180

what is diff between .net 1.1 and .net 2.0

4 9161

What C++ libraries are you proficient with?

Google,

1 8329

Which algorithm do you like the most? Why?

Google,

2 7507

Have you used MSVC? What do you think of it?

Google,

2 7652

What is design pattern?

Samsung,

2 7823

What are advantages and disadvantages of Design patterns?

IBM, Vodafone,

7 107044


Un-Answered Questions { C++ }

Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].

953


In C++ what is the meaning of data hiding?

608


Why do we use polymorphism in oops?

575


Why is polymorphism needed?

591


What two types of containers does the stl provide?

566






Explain the difference between c & c++?

579


What are the 4 types of library?

591


What is fixed in c++?

582


Write a note about the virtual member function?

597


Is c++ used anymore?

585


What are the syntactic rules to be avoid ambiguity in multiple inheritance?

629


What is c++ programming language?

573


What is an advantage of polymorphism?

589


What is encapsulation example?

545


What are files in c++?

587