C/C++ Questions
# What is virtual constructors/ destructors?
# What do you mean by pure virtual functions?
# What is namespace?
# What is RTTI?
# What is a template?
# What do you mean by inline function?
# What is virtual class and friend class?
# What is function overloading and operator overloading?
# Difference between realloc() and free()?
# What do you mean by 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 do you mean by 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) { cout<<" Error can not accept it "< exit(1); } cout<<" its in main program "< a.main(); return 0; }
# 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?
# 1.Different types of languages compare in c++ and other lanuages 2.Oops concepts in other language oops
# 1.Different types of languages compare in c++ and other lanuages 2.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 do you mean by 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 do you mean by binding of data and functions?
# Difference between realloc() and free()?
# What is function overloading and operator overloading?
# What is virtual class and friend class?
What is the difference between an ARRAY and a LIST?
What is faster : access the element in an ARRAY or in a LIST?
Define a constructor - what it is and how it might be called (2 methods).
Describe PRIVATE, PROTECTED and PUBLIC – the differences and give examples.
What is a COPY CONSTRUCTOR and when is it called (this is a frequent question !)?
Explain term POLIMORPHISM and give an example using eg. SHAPE object: If I have a base class SHAPE, how
would I define DRAW methods for two objects CIRCLE and SQUARE.
What is the word you will use when defining a function in base class to allow this function to be a polimorphic
function?
What are 2 ways of exporting a function from a DLL?
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg.
new() and malloc()
What is a callback function. Explain in C and C++ and WIN API environment.
(From WINDOWS API area): what is LPARAM and WPARAM?



No comments:
Post a Comment