| Other C++ General Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Write a String class which has:
1) default constructor
2) copy constructor
3) destructor
4) equality operator similar to strcmp
5) constructor which takes a character array parameter
6) stream << operator | Lehman-Brothers | 1 |
| Difference between Top down and bottom up approaches for a
given project ? | HP | 1 |
| Difference between Operator overloading and Functional
overloading? | HP | 3 |
| What is Name Decoration? | Lucent | 2 |
| What issue do auto_ptr objects address? | | 1 |
| what is meaning of isa and hsa | | 1 |
| What is Namespace? | Samsung | 1 |
| What is conversion constructor? | TCS | 1 |
| class Foo {
int x;
public:
Foo(int I);
};
If a class does not have a copy constructor explicitly
defined one will be implicitly defined for it. Referring to
the sample code above, which one of the following
declarations is the implicitly created copy constructor?
a) Foo(Foo *f);
b) Foo(Foo &f);
c) Foo(const Foo *f);
d) Foo(const Foo &f);
e) Foo(int);
| Quark | 3 |
| write a program in c++ to implement stack using functions
in header file stack.h | Subex | 1 |
| Write a function which takes a character array as input and
reverses it in place. | Lehman-Brothers | 2 |
| Write a program to reverse a linked list? | Catalytic-Software | 2 |
| What are the differences between a struct and a class in
C++? | Wipro | 4 |
| What is the difference between operator new and the new
operator? | Wipro | 1 |
| Give 2 examples of a code optimization? | | 1 |
| How many lines of code you have written for a single program? | BoA | 1 |
| what is an array
| | 12 |
| Describe functional overloading? | HP | 3 |
| How many bit combinations are there in a byte? | Intel | 7 |
| How do you know that your class needs a virtual destructor? | Lucent | 3 |
| |
| For more C++ General Interview Questions Click Here |