| Other C++ General Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is the difference between a copy constructor and an
overloaded assignment operator? | Microsoft | 3 |
| Memory is not a constraint. In a single iteration(NOTE: you
can't go back), how will you find out the 10th last
node/item in a linked list. | Goldman-Sachs | 8 |
| How many lines of code you have written for a single program? | BoA | 1 |
| What is "mutable" keyword? | | 2 |
| What does '\r' and '\b' mean? Please explain with example.
| | 2 |
| Shall we use 'free' to free memory assigned by new, What are
the further consequences?? | Symphony | 4 |
| Is there something that we can do in C and not in C++? | Patni | 6 |
| Is structure can be inherited? | HP | 3 |
| When volatile can be used? | Symphony | 2 |
| Write the program for fibonacci in c++? | | 3 |
| What are advantages and disadvantages of Design patterns? | IBM | 3 |
| What is difference between initialization and assignment? | HP | 4 |
| class professor {};
class teacher : public virtual professor {};
class researcher : public virtual professor {};
class myprofessor : public teacher, public researcher {};
Referring to the sample code above, if an object of class
"myprofessor" were created, how many instances of professor
will it contain?
a) 0
b) 1
c) 2
d) 3
e) 4
| Quark | 1 |
| What are inline functions? | Verizon | 2 |
| Can we have "Virtual Constructors"? | TCS | 5 |
| What are the total number of lines written by you in C/C++?
What is the most complicated or valuable program written in
C/C++?
| Intel | 1 |
| How do you link a C++ program to C functions?
| | 2 |
| Find the second maximum in an array?
| HCL | 2 |
| Difference between Top down and bottom up approaches for a
given project ? | HP | 1 |
| How long does this loop run:
for(int x=0; x=3; x++)
a) Never
b) Three times
c) Forever
| Quark | 9 |
| |
| For more C++ General Interview Questions Click Here |