Frequently Asked Questions - C/C++ Questions C++ Questions - What is a class?
- What is an object?
- What is the difference between an object and a class?
- What is the difference between class and structure?
- What is public, protected, private?
- What are virtual functions?
- What is friend function?
- What is a scope resolution operator?
- What do you mean by inheritance?
- What is abstraction?
- What is polymorphism? Explain with an example.
- What is encapsulation?
- What do you mean by binding of data and functions?
- What is function overloading and operator overloading?
- What is virtual class and friend class?
- What do you mean by inline function?
- What do you mean by public, private, protected and friendly?
- When is an object created and what is its lifetime?
- What do you mean by multiple inheritance and multilevel inheritance? Differentiate between them.
- Difference between realloc() and free?
- What is a template?
- What are the main differences between procedure oriented languages and object oriented languages?
- What is R T T I ?
- What are generic functions and generic classes?
- What is namespace?
- What is the difference between pass by reference and pass by value?
- Why do we use virtual functions?
- What do you mean by pure virtual functions?
- What are virtual classes?
- Does c++ support multilevel and multiple inheritance?
- What are the advantages of inheritance?
- When is a memory allocated to a class?
- What is the difference between declaration and definition?
- What is virtual constructors/destructors?
- In c++ there is only virtual destructors, no constructors. Why?
- What is late bound function call and early bound function call? Differentiate.
- How is exception handling carried out in c++?
- When will a constructor executed?
- What is Dynamic Polymorphism?
- Write a macro for swapping integers.
Some More Questions :: - What is the output of printf("%d")
- What will happen if I say delete this
- Difference between "C structure" and "C++ structure".
- Difference between a "assignment operator" and a "copy constructor"
- What is the difference between "overloading" and "overriding"?
- Explain the need for "Virtual Destructor".
- Can we have "Virtual Constructors"?
- What are the different types of polymorphism?
- What are Virtual Functions? How to implement virtual functions in "C"
- What are the different types of Storage classes?
- What is Namespace?
- What are the types of STL containers?.
- Difference between "vector" and "array"?
- How to write a program such that it will delete itself after execution?
- Can we generate a C++ source code from the binary file?
- What are inline functions?
- Talk something about profiling?
- How many lines of code you have written for a single program?
- What is "strstream" ?
- How to write Multithreaded applications using C++?
- Explain "passing by value", "passing by pointer" and "passing by reference"
- Write any small program that will compile in "C" but not in "C++"
- Have you heard of "mutable" keyword?
- What is a "RTTI"?
- Is there something that I can do in C and not in C++?
- Why preincrement operator is faster than postincrement?
- What is the difference between "calloc" and "malloc"?
- What will happen if I allocate memory using "new" and free it using "free" or allocate sing "calloc" and free it using "delete"?
- What is Memory Alignment?
- Explain working of printf.
- Difference between "printf" and "sprintf".
- What is "map" in STL?
- When shall I use Multiple Inheritance?
- What are the techniques you use for debugging?
- How to reduce a final size of executable?
- Give 2 examples of a code optimization.
|