http://www.techinterviews.in/top-c-interview-questions-3/18
Top C++ interview questions
C
- What is virtual constructors/destructors?
- What is pure virtual functions?
- What is namespace?
- What is RTTI?
- What is a template?
- What is inline function?
- What is virtual class and friend class?
- What is function overloading and operator overloading?
- Difference between realloc() and free()?
- What is binding of data and functions?
- What is abstraction?
- What is encapsulation?
- What is the difference between an object and a class?
- What is polymorphism? Explain with an example?
- What is inheritance?
- What is a scope resolution operator?
- What are virtual functions?
- What is friend function?
- What is the difference between class and structure?
- What is public, protected, private?
- What is an object?
- What is a class?
- What is the difference between Function and Member function?
- What is a memory leak? How can we avoid it?
- Define copy constructor? What is the use of copy constructor?
- How do you write a program which produces its own source code as its output?
- Can you allocate the memory using malloc() in C and deallocate the same memory using free() in c++
- it possible to inherit the private member in drived class?
- What are the things contains in .obj file ? ( compiled result of .cpp file )
- What is difference between followin intialization. int iVar1; int iVar2 = int(); and which one of two should we prefer always and why?
- What is the use of volatile keyword? Give me one example?
- What is the difference between Object and Instance?
- What is function overriding?
- Can we take “main function” as of type float,char etc?
- Hey anybody help me to write code for this program wap which display year,month & day presents in a year for eg. 1. no. is 14 print 2 weeks 2. no is 90 print 3 months 3. no is 365 print 1 year user can input any no
- How is static variable stored in the memory? ( if there are 2 functions in a file,and the static variable name is same (ex var) in both the function. how is it keep seperately in the memory).
- What will be output of the following code #include using namespace std; class abc { public : void main() { cout<<" Its main function "< } }; int main(int c, char **v) { abc a; if(c<1)>
- What is the difference betwen wait() and delay()?
- Why always array starts with index 0
- Can main() be overridden
- What is the difference between macro and inline()?
- How can we define a dynamic memory allocation in UNIX operating system?
- What are auto static variables and auto extern variables?
- Different types of languages compare in c++ and other lanuages
- Oops concepts in other language oops
- How can double dimensional arrays be dynamically initialized in C++?
- Can destructor be private?
- Why Pointers are not used in C Language. What are the main differences between C and C++
- What is memory leaking in c++ ?
- class A() { }; int main() { A a; } Whether there will be a default contructor provided by the compiler in above case ?
- class A() { }; int main() { A a; } Whether there will be a default contructor provided by the compiler in above case ?
- What is operator overloading?what r the advantages of operator overloading?
- Why array index starts from 0[zero] only?
- What is the difference between c&c++?
- What is the use of virtual destructor?
- Why cant one make an object of abstract class?Give compiler view of statement
- What is the need /use of function overloading
- In c++ have a default constructor ?
- What is a “RTTI”?
- Have you heard of “mutable” keyword?
- What is “strstream”?
- What are inline functions?
- Can we generate a C++ source code from the binary file?
- Explain “passing by value”, “passing by pointer” and “passing by reference”
- How to write a program such that it will delete itself after execution?
- Difference between “vector” and “array”?
- What are the types of STL containers?
- Difference between a “assignment operator” and a “copy constructor”
- Can we have “Virtual Constructors”?
- What are the different types of Storage classes?
- What are Virtual Functions? How to implement virtual functions in “C”
- What are the different types of polymorphism?
- Explain the need for “Virtual Destructor”.
- What is the difference between “overloading” and “overriding”?
- Difference between “C structure” and “C++ structure”.
- What will happen if I say delete this
- What is the output of printf (”%d”)
- What is an algorithm (in terms of the STL/C++ standard library)?
- How can you force instantiation of a template?
- What is the difference between operator new and the new operator?
- Can you explain the term “resource acquisition is initialization?”
- What is defference between constructor and destructor
- What is encapsulation?
- What is the difference between an object and a class?
- What is inheritance?
- What is a scope resolution operator?
- What is the Basic nature of “cin” and “cout” and what concept or principle we are using on those two?
- What are virtual functions?
- We can overload assignment operator as a normal function.But we can not overload assignment operator as friend function why?
- What is the difference between class and structure?
- What is an object?
- What is the difference between structures and classes in C++?
- What is a class?
- What is polymorphism? Explain with an example?
- What is public, protected, private?
- What is friend function?
- What is binding of data and functions?
- Difference between realloc() and free()?
- What is function overloading and operator overloading?
- What is virtual class and friend class?
கருத்துகள் இல்லை:
கருத்துரையிடுக