Commvault Placement Papers with Answers
31 / 40
#include <iostream>
using namespace std;
class base {
int b;
public:
base (int x) {
b = x;
cout << "Base";
};
};
class derived : public base
{
double d;
public:
derived(double x, int y);
d = x;
cout << " Derived";
};
int main () {
derived d(23.5, 10);
}
ADerived
BBase
CBase Derived
DCompilation error: No appropriate base class constructor available
Answer: Option D
Explanation:Here is no explanation for this answer
Submit Your Solution
32 / 40
What does the following statement result in?
Two processes want to write a file to a print spool area at the same time and both start writing. As the print spool area is of fixed size, it fills up before either process finishes writing its file, so both wait for more space to become available.
AStarvation
BThrashing
CDeadlock
DBlocking
Answer: Option C
Explanation:Here is no explanation for this answer
Submit Your Solution
33 / 40
Which statement about thread synchronization is wrong?
ASemaphore allows a specified number of threads to access a resource.
BMutex object is to provide exclusive access to a resource and all the threads can belong to different processes.
CA critical section provide exclusive access to a resource and all the threads should belong to the same process.
DMutex object is to provide exclusive access to a resource and all the threads should belong to same processes.
Answer: Option B
Explanation:Here is no explanation for this answer
Submit Your Solution
34 / 40
Which statement about OS booting is wrong?
AA cold boot is when power to a computer is cycled (turned off and then on) or a special reset signal to the processor is triggered.
BA warm reboot is restarting a computer under software control, without removing power or (directly) triggering a reset line.
CA hard reboot is restarting a computer under software control, without removing power or (directly) triggering a reset line.
DA bootstrapping process is one which starts operating systems when the user turns on a computer system.
Answer: Option C
Explanation:Here is no explanation for this answer
ShortCut By :: Arjun ASubmit Your Solution
35 / 40
A computer program or routine is described as reentrant if the routine can be re-entered while it is already running. Which of the following conditions is not correct to be reentrant?
AMust hold no static or global non-constant data
BMust not return the address to static or global non-constant data
CMust not rely on locks to singleton resources
DCan call non-reentrant computer programs or routines
Answer: Option D
Explanation:Here is no explanation for this answer
Submit Your Solution
36 / 40
Assume single linked list pseudo code as follows?
struct Node {
data
next
}
record List {
Node firstNode
}
function1(List list) {
obsoleteNode = list.firstNode; list.firstNode = list.firstNode.next; free obsoleteNode;
}
function2(node node) {
obsoleteNode = node.next; node.next= node.next.next; free obsoleteNode;
}
function3(Node node,Node newNode) {
newNode.next = node.next;node.next= newNode
}
function4(List list, Node newNode) {
newNode.next = list.firstNode; list.firstNode = newNode;
}
Afunction1 removes the first node
Bfunction2 removes node past this one
Cfunction3 inserts newNode after node
Dfunction4 inserts newNode after current first node
Answer: Option C
Explanation:Here is no explanation for this answer
ShortCut By :: AkiteegWhat is the purpose of clear function provided.
def clear(self):
self.tail = None
self.head = None
Submit Your Solution
37 / 40
Which of the following can a Dynamic Link Library contain?
AOnly Code
BCode and Data Only
CCode and Resources only
DCode, Data and Resources
Answer: Option D
Explanation:Here is no explanation for this answer
Submit Your Solution
38 / 40
Which of the following is an invalid path for the following graph?

AC B A
BC D E F G
CC D A C B A
DC D A
Answer: Option C
Explanation:Here is no explanation for this answer
Submit Your Solution
39 / 40
What is the output of the program?
#include
#include
void main()
{
char *pl= "word";
char *p2;
p2=(char*)malloc(10);
memset(p2, 'A', 10);
while(*p2++ = *pl++)
printf("%s ", p2);
}
AAAAAAworda AAAAAwordA AAAAwordA AAwordA
BAAAAAAAAA AAAAAAAA AAAAAAA AAAAAA
CAAAAAword AAAAAwor AAAAAwo AAAAAw
DwordAAAAA wordAAAa wordAAA wordAA
Answer: Option B
Explanation:Here is no explanation for this answer
Submit Your Solution
40 / 40
What is the worst case performance of Selection sort algorithm?
AO(log n)
BO(n* n)
CO(n)
DO(n log n)
Answer: Option B
Explanation:Here is no explanation for this answer
Submit Your Solution
Here is the list of questions asked in Placement Papers with Answers Commvault Placement Papers of Commvault. Practice Commvault Written Test Papers with Solutions and take Q4Interview Commvault Online Test Questions to crack Commvault written round test. Overall the level of the Commvault Online Assessment Test is moderate. Only those candidates who clear the written exam will qualify for the next round, so practic all the questions here and take all the free tests before going for final selection process of Commvault