C++

C++ SUbjective Questions And Answers

More interview questions and answers

Question : what is the difference between parameter and argument?

What is the difference between class and structure?

What is the difference between an object and a class?

Difference between realloc() and free()?

What is a template?

What is virtual constructors/destructors?

What is the difference between operator new and the new operator?

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

What is the difference between "overloading" and "overriding"?

Difference between a "assignment operator" and a "copy constructor"

What is the advantage of function overloading according to users point of view?

What is difference between visual c++ & ANSI c++ ?

What is the difference between far pointer and near pointer?

What are virtual functions?

What is RTTI?

What happens to the member function in the class when copy constructor is invoked?

What is the difference between block structured language and highly block structured language

How will you detect if there is memory leak in your C++ program?

What was the most difficult debug you have ever done?

What is the use of new operator?

What is a scope resolution operator?

What is namespace?

Difference between a "assignment operator" and a "copy constructor"

What is operator overloading?what r the advantages of operator overloading?

What is the compilation difference at the compiler level for C++, VC++ and C# ?

Why an empty Structure will occupy 2Bytes in C++

What is structure padding.Describe briefly?

Why the size of empty Class is one byte?

What are anonymous structure, unions and what are their uses?

What is the difference between char str, char *str and char* str ?Explain the meaning of char* or int* ?

While copying the objects if we say X a=b, X a(b) What will it call, assignment operator or copy constructor? Justify

What are the disadvantages of C++?

Explain why encapsulation is required?

What are Polymorphic Classes?

What is public, protected, private?

What is virtual class and friend class?

What do you mean by pure virtual functions?

What is the diffrence between static_cast and dynamic_cast in RTTI

What is a fake pointer?

What is importance of const. pointer in copy constructor?

What is the difference between a pointer and a reference?

What is Smart Pointer?

What is Operator overloading?

What is the difference between run time binding and compile time binding?

What is Difference Between C/C++

What will be the output of the following code? void main (){ int i = 0 , a[3] ; a[i] = i++; printf ("%d",a[i]) ; }

Why doesn't the following code give the desired result?

Why doesn't the following statement work? char str[ ] = "Hello" ; strcat ( str, '!' )

How do I know how many elements an array can hold?

How do I write code that reads data at memory location specified by segment and offset?

Is it possible to have Virtual Constructor? If yes, how? If not, Why not possible ?

What about Virtual Destructor?

What is problem with Runtime type identification?

How Virtual functions call up is maintained?

Can inline functions have a recursion?

How do you link a C++ program to C functions?

Explain the scope resolution operator?

How many ways are there to initialize an int with a constant?

What is the difference between a copy constructor and an overloaded assignment operator?

When should you use multiple inheritance?

What is a virtual destructor?

n a constructor throw a exception? How to handle the error when the constructor fails?

What are the debugging methods you use when came across a problem?

How the compilers arranges the various sections in the executable image?

Explain the ISA and HASA class relationships. How would you implement each in a class design?

When is a template a better solution than a base class?

How do you know that your class needs a virtual destructor?

What is the difference between new/delete and malloc/free?

What happens when a function throws an exception that was not specified by an exception specification for this function?

Can you think of a situation where your program would crash without reaching the breakball, which you set at the beginning of main()?

What issue do auto_ptr objects address?

Why do C++ compilers need name mangling?

Is there anything you can do in C++ that you cannot do in C?

How do you decide which integer type to use?

What�s the best way to declare and define global variables?

What does extern mean in a function declaration?

How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?

Declare a void pointer.

What is 'this' pointer?

What is the mean of Manglic in C++?

What are the access privileges in C++?

Explain the scope resolution operator?

What is a modifier?

wat do you mean by accessor?

give me a diff b/e Template class and class Template?

What are the types of container classes?

When does a name clash occur?

What is an iterator class?

Define namespace.

What are proxy objects?

What is a node class?

What is stack unwinding?

What is class invariant?

Differentiate between the message and method.

What is a dangling pointer?

What is an incomplete type?

What is an Iterator class?

What is a nested class? Why can it be useful?

What is multiple inheritance(virtual inheritance)? What are its advantages and disadvantages?

Whit is the mean of precondition and post-condition to a member function.

What is inline function??

What is the use of class wizard?

What is the use of Microsoft foundation class library?

What is an orthogonal base class?

How can you catch all the exceptions without specifying individually?

What is the use of try block?

Give the name some pure object oriented languages.

What is mean of translation?

Write the different forms of throw?

What is the use of application wizard?

What are the basic segments of error handling code?

Give an example for asynchronous exceptions?

What is the use of export?

What is overflow error?

What is Memory alignment??

Define the generic programming?

Define the parameterized macros?

What is function overloading and operator overloading?

What are the functions used to handle single character at a time?

What is the use of tellp ()?

What is the use of tellg ()?

whats the use of seekp() and seekg()?

What is the use of file pointers?

What are the types of file pointers?nad whats the use?

What does the file mode parameter ios::binary mean?

What is the difference between ios::ate and ios::app mode?

In which class is the function eof () present?

Give examples for synchronous exceptions?

What are storage qualifiers in C++ ?

What is EOF?

What are manipulators?

What is a file?

What is the use of exception handling?

What is the use of using?

What is the use of template classes and functions?

What are the ways of opening a file?

What are the parts of a file name?

What is the limitation of �cin�?

What are stream classes?

What is a stream? and define the types of Stream?

What is callback function?

What are �do-nothing� functions?

What are abstract base classes?

What are C-strings or C-style strings?

What is run time polymorphism?

What are pointer constants?

What are pointer variables?

What is overriding?

What is containership?

How are prefix and postfix versions of operator++() differentiated?

What is �*� operator called as?

give me a any two main roles of Operating System?

Give us List out some of the OODBMS available?

What is the difference b/w const char *myPointer and char *const myPointer?

What is copy constructor?

When are copy constructors called?

What is conversion constructor?

What is conversion operator??

What is the type of conversion operator?

What are the access privileges in C++? What is the default access level?

What does extern "C" int func(int *, Foo) accomplish?

What happens when we make call "delete this;" ??

What are C++ storage classes?

What is the Auto Storage Class?

What are the Register Storage class?

What are the Static Storage class?

What are the Extern Storage class?

What is difference between template and macro??

What is constructor or ctor?

How can a base pointer access the members of a derived class?

What are 2 ways of exporting a function from a DLL?

What do you mean by binding of data and functions?

What is a scope resolution operator?

What are the conditions that have to be met for a condition to be an invariant of the class?

What is the difference between an ARRAY and a LIST?

What is a node class?

Define a constructor - What it is and how it might be called (2 methods).

How can you tell what shell you are running on UNIX system?

Can you think of a situation where your program would crash without reaching the breakpoint which you set at the beginning of main()?

Why are arrays usually processed with for loop?

What is friend function?

What is abstraction?

What�s the auto keyword good for?

What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator.

What is a mutable member?

What are the problems with a tree-style hierarchy?

Why is iostream better than stdio?

When would you use private inheritance?

What's the difference between a struct and a class?

What's an initializer list?

What is an explicit constructor?

What is the difference between a baller and a reference?

What are the advantages of inheritance?

What is the Standard Template Library (STL)?

hat is a nested class?

What are the defining traits of an object-oriented language?

How do you access the static member of a class

What is the difference between class and structure?

Tell us the Name the operators that cannot be overloaded??

What is the difference between static link library and dynamic link library?

what is pulse code modulation?

Why PCM is used?

What are smart pointer?

What is the difference between static link library and dynamic link library?

What is multithreading

What is placement new?

define destructor as static?

What is virtual inheritance?

What is an iterator?

What is a constructor initializer list?

What is the mean of Modelling Language?

What is the generalisation?

What is the mean of Association?

What is an Visualizations?

What is the CRC Cards?

What are the Limitations of CRC Cards?

What is the Interaction Diagrams?

Whats the use of Interaction Diagrams?

What is the class diagram ?

What is the Realization?

What is the mean of Utility Classes?

What is the mean of Memory Leaks?

What is the The Deque Container?

What are The Multimap Container?

Whats the requirement of Input Itrator?

What is the Heap Operations?

What Is Recursion?

What is the Hash Function?

What is the chaining?

What is an Bucket Addressing?

What is Quadratic Probing?

What is the Parsing? and tell me how many types of Parsing?

What is Parsing Numeric Expressions?

What Is a B-Tree?

can derived clss exception also be caught by the catch block?

C++ SUbjective Questions And Answers