| Other C++ General Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is meaning of isa and hsa | | 1 |
| Write a program to reverse a linked list? | Catalytic-Software | 3 |
| Why is it difficult to store linked list in an array? | Lucent | 4 |
| Can we generate a C++ source code from the binary file? | | 2 |
| What is the Difference between "C structure" and "C++
structure"? | | 6 |
| When volatile can be used? | Symphony | 3 |
| Which one of the following describes characteristics of
"protected" inheritance?
a) The base class has access only to the public or protected
members of the derived class.
b) The derived class has non-public, inheritable, access to
all but the private members of the base class.
c) The derived class has access to all members of the base
class.
d) The private members of the base class are visible within
the derived class.
e) Public members of the derived class are privately
accessible from the base class.
| Quark | 4 |
| What are smart pointer? Whats its use? | CTS | 1 |
| Implement strcmp | Citadel | 3 |
| How to reduce a final size of executable? | | 2 |
| why the size of an empty class is 1 | | 3 |
| Evaluate:
int fn(int v)
{
if(v==1 || v==0)
return 1;
if(v%2==0)
return fn(v/2)+2;
else
return fn(v-1)+3;
}
for fn(7);
a) 10
b) 11
c) 1
| Quark | 2 |
| What is "mutable" keyword? | Infosys | 2 |
| template<class T, class X> class Obj {
T my_t;
X my_x;
public:
Obj(T t, X x) : my_t(t), my_x(x) { }
};
Referring to the sample code above, which one of the
following is a valid conversion operator for the type T?
a) T operator T () { return my_t; }
b) T operator(T) const { return my_t; }
c) operator(T) { return my_t; }
d) T operator T (const Obj &obj) { return obj.my_t; }
e) operator T () const { return my_t; }
| Quark | 1 |
| What is Name Decoration? | Lucent | 2 |
| You have to take 2 arrays of length 10. Input the values of
array 1 from the user. Then copy the values of array 1 to
array 2 in ascending order
For example if user enters 9, 5, 6, 8, 1, 0, 2, 7, 4, 3
then copy the smallest element i.e. 0 first followed by 1,
2 and so
| | 1 |
| The "virtual" specifier in a member function enables which
one of the following?
a) Monmorphism
b) Late binding
c) Metamorphism
d) Solomorphism
e) Inheritance
| Quark | 3 |
| iam a fresher to Qt(GUI a c++ based framework software).
i need to develop the basic applications on designer by
drag and dropping mechanism...so pls send me the procedure
to design applications? | | 1 |
| What is the difference between = and == in C? | Intel | 9 |
| Why preincrement operator is faster than postincrement? | | 3 |
| |
| For more C++ General Interview Questions Click Here |