|
Microsoft Interview Questions (CPP Fundamental)
|
|
|
| |
|
What is Pure Virtual Function? Why and when it is used ?
|
The abstract class whose pure virtual method has to be implemented by all the classes which derive on these. Otherwise it would result in a compilation error.
(Read More... )
|
|
What is a "virtual constructor"?Is it possible to have Virtual Constructor? If yes, how?
|
|
An idiom that allows you to do something that C++ doesn't directly support
(Read More... )
|
|
What is a "virtual member function"?
|
|
From an OO perspective, it is the single most important feature of C++:
(Read More... )
|
|
What is Multiple inheritance?
|
|
You can derive a class from any number of base classes. Deriving a class from more than one direct base class is called multiple inheritance
(Read More... )
|
|
What is inheritance?
|
|
Inheritance is what separates abstract data type (ADT) programming from OOP.
(Read More... )
|
|
What operators can/cannot be overloaded?
|
Most can be overloaded. The only C operators that can't be are `.' and `?:'
(and `sizeof', which is technically an operator).
(Read More... )
|
|
What is operator overloading?
|
Operator overloading allows the basic C/C++ operators to have user-defined
meanings on user-defined types classes).
(Read More... )
|
|
What are destructors really for? Why would I ever use them?
|
Destructors are used to release any resources allocated by the object's
constructor.
(Read More... )
|
|
What is a constructor? Why would I ever use one?
|
Objects should establish and maintain their own internal coherence. The `maintaining' part is done by ensuring self-consistency is restored after any
operation completes.The part about establishing coherence' is the job of a constructor.
(Read More... )
|
|
What are inline fns? What are their advantages? How are they declared?
|
|
An inline function is a function which gets textually inserted by the compiler, much like a macro.
(Read More... )
|
|
|
|
|
|
|
|
 |
|
|
New Articles
Combinations in a character array.
Write a program that takes input a char array and outputs all the combinations of the characters in the character array.
Example: consier char array {'a','b','c'}
the output shouold be abc,cab,bac,acb,cba,bca that is all the combinations of characters 'a','b','c'.
N-Queen Problem.
Write a Program to solve N-Queen Problem.
Reverse a string
Reverse a string using recursive function
|
|
|
|
Most Popular Articles
Crazy Guy On The Airplane
A line of 100 airline passengers is waiting to board a plane. they each hold a ticket to one of the 100 seats on that flight.
What are your greatest weaknesses
Beware - this is an eliminator question, designed to shorten the candidate list. Any admission of a weakness or fault will earn you an âAâ for honesty, but an âFâ for the interview.
Question: Tell me about yourself.
Many candidates, unprepared for the question, skewer themselves by rambling, recapping their life story, delving into ancient work history or personal matters.
|
|
|
|
|
|
|
|
|