Commvault Placement Paper
Written test consists of 45 objective questions.The main focus was on C++.there was only one or two question from network.there was not any question from DBMS.There were questions from OS.In C and Data structure the level of the question was average But in case of
C++ it was high.Questions were from every part of C++ excluding STL.
Some of the technical questions were like below:
1.what is the scope of the i
int i;
main()
{
... some code here ...}
2.what is the scope of i
3.there was a problem on single linked list which forms a fibonacci series.
static int i;
main()
{
some code here
}
4.there was a typical question to tell diff. between cons char * and char * cons.
5.In C++ questions were from virtual function,order of execution of constructor and
destructor,exception handling,template.there was a very good question which i remember
what is the output?
#include
using namespace std;
class base
{
public:
void callit()
{
cout<<"in base";
bar();
}
virtual void foo()
{
cout<<"base:foo\n";
}
virtual void bar()
{
cout<<"base:bar\n";
}
};class derived: public base
{
public:
virtual void foo()
{
cout<<"derived:foo\n";
}
virtual void bar()
{
cout<<"derived:bar\n";
}
};
int main()
{
base *p=new derived;
p->callit();
return 0;
}
6.what is the output?
clude
using namespace std;
class base
{
public:
virtual void foo()
{
cout<<"base:foo\n";
}
};
class derived: public base
{
public:
void foo(int x)
{
cout<<"derived:foo\n";
}
};
int main()
{
base *p=new derived;
p->foo();
return 0;
}
Interview:
The interview was really tough.There were two rounds of technical interview.They first asked about the
project to explain properly.They went in deep whatever they asked.They were more focused on c++ and OS.They asked
semaphore in detail.In second round of interview they asked about virtual memory and application based question.
They asked one question in single linked list .The question was given two single linked list say " 1 2 3 4 5" and
"5 8 9 10 0" write a function which concatenates the two list in cross way.no additional variable is allowed.
the list should be 1 5 2 8 3 9 4 10 5 0.
10 people were shortlisted in the written and finally two got the offer.
Package-4.5 CTC for everyone.
