Sei sulla pagina 1di 4

1. What is C++?

C++ is an object-oriented programming language which is superset of C

2. What are the advantages of C++?

 C++ is a highly portable language which can run on any platform.

 C++ is an object-oriented programming language which includes the concepts


such as classes, objects, inheritance, polymorphism, abstraction.

 C++ has the concept of inheritance which helps to redundant code and can
reuse the existing classes.

 Data hiding helps the programmer to build secure programs

 Message passing is a technique used for communication between the objects.

 C++ contains a rich function library.

3. What is the difference between C and C++?

C C++

C++ supports both structural and object-oriented


C is a structured programming language.
programming language.

In C language, data and functions are the free In the C++ language, both data and functions are
entities. encapsulated together in the form of a project.

C does not support the data hiding. Therefore, C++ supports data hiding. Therefore, the data
the data can be used by the outside world. cannot be accessed by the outside world.

C supports neither function nor operator C++ supports both function and operator
overloading. overloading.

In C, the function cannot be implemented inside In the C++, the function can be implemented inside
the structures. the structures.

Reference variables are not supported in C


C++ supports the reference variables.
language.

C language does not support the virtual and


C++ supports both virtual and friend functions.
friend functions.

In C, scanf() and printf() are mainly used for C++ mainly uses stream cin and cout to perform
input/output. input and output operations.
4. What is the difference between reference and pointer?

5. What is a class?

Class is a blue print which reflects the entities attributes and actions. Technically defining a
class is designing an user defined data type.
1. Understanding of pointers, through sample code.

2. Understanding of run time type identification. Through examples.

3. Understanding of static/ const etc. concepts.

4. STL understanding, selecting between various containers.

5. Function pointers .

6. Calling conventions.

7. OOP concepts.

8. Concepts like copy constructor and assignment operator. These questions bring many
other concepts like shallow/ deep copy, memory allocation, shared resources.

9. Questions related to any of the performance optimization related real life problem
solved by the candidate.

10. Give assignment based on design problem.

11. Writing code for multi threading.

12. Knowledge of standard algorithms available in std algorithms library.

13. How do someone iterates over containers. What is good way to do so.

14. C++ 11/ 14.

Potrebbero piacerti anche