| Other C++ General Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What are the advantages and disadvantages of using inline
and const? | TCS | 1 |
| What are the differences between public, private, and
protected access? | Wipro | 4 |
| Can we use resume in error handling i.e. in the catch block | Infosys | 3 |
| How to reduce a final size of executable? | | 1 |
| Explain "passing by value", "passing by pointer" and
"passing by reference" ? | | 5 |
| how can u create a doubly linked list with out using
pointers? | | 1 |
| What are the techniques you use for debugging? | Adtran | 1 |
| Give 2 examples of a code optimization? | | 1 |
| What is Object Oriented programming.what is the difference
between C++ and C? | Infosys | 5 |
| tell me about yourself ?i want answer for frehers with
various exasmples? | HCL | 2 |
| Write the program form Armstrong no in c++? | | 4 |
| how to swap two strings without using any third variable ? | | 3 |
| What is the difference between "overloading" and "overridding"? | | 3 |
| 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 |
| In a class only declaration of the function is there but
defintion is not there then what is that function?
| Hughes | 4 |
| class basex
{
int x;
public:
void setx(int y) {x=y;}
};
class derived : basex {};
What is the access level for the member function "setx" in
the class "derived" above?
a) private
b) local
c) global
d) public
e) protected
| Quark | 1 |
| What is the difference between static global and global ? | CA | 2 |
| Difference between Overloading and Overriding? | HP | 5 |
| What is the difference between method and message? | HP | 2 |
| How to avoid a class from instantiation? | Symphony | 5 |
| |
| For more C++ General Interview Questions Click Here |