Saturday, April 24, 2010

CPP Subjective Type.....

1 Explan what is meant by Protected. When a class is being inherited when the base class constructor and destructor called.

2 Illustrate the concept of polymorphism with example.

3 Explain the concept of data hiding in class.

4 What is meant by Virtual base class.

5 Difference between "C structure" and "C++ structure".

6 Diffrence between a "assignment operator" and a "copy constructor"

8 What is the difference between "overloading" and "overridding"?

9 Explain the need for "Virtual Destructor".

10 Can we have "Virtual Constructors"?

; ;

11 What are the different types of polymorphism?

12 What are Virtual Functions? How to implement virtual functions in "C".

13 What are the different types of Storage classes?

‘ ‘

14 What is Namespace?

15 What are the types of STL containers?.

16 Difference between "vector" and "array"?

17 How to write a program such that it will delete itself after exectution?

18 Can we generate a C++ source code from the binary file?

19 What are inline functions?

20 What is "strstream" ?

21 Explain "passing by value", "passing by pointer" and "passing by reference"

22 Have you heard of "mutable" keyword?

23 Is there something that I can do in C and not in C++?

24 What is the difference between "calloc" and "malloc"?

25 What will happen if I allocate memory using "new" and free it using "free" or allocate using "calloc" and free it using "delete"?

; ;

26 Difference between "printf" and "sprintf".

27 What is "map" in STL?

28 When shall I use Multiple Inheritance?

29 Explain working of printf.

30 Talk sometiming about profiling?

31 How to write Multithreaded applications using C++?

32 Write any small program that will compile in "C" but not in "C++"

33 What is Memory Alignment?

34 Why preincrement operator is faster than postincrement?

35 What are the techniques you use for debugging?

36 How to reduce a final size of executable?

37 Give 2 examples of a code optimization.

No comments:

Post a Comment