[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Commvault Aptitude Questions and Answers for Freshers

66.28K

Tot. Mock Test: 1


Total Qs: 40+

NA
SHSTTON
230
Solv. Corr.
161
Solv. In. Corr.
391
Attempted
0 M:18 S
Avg. Time

1 / 40

What is output or the error in the program?
#include <stdio.h>

typedef int CommVault;
typedef CommVault CommVaultindia;

void main () {
CommVaultindia val= 234;
printf("%d ",  val);
}

ACompilation error: typedef cannot be outside a function scope

BCompilation error: undefined variable val

C234

DCompilation error: cannot typedef based on another typedef

Answer: Option C

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Commvault

NA
SHSTTON
143
Solv. Corr.
505
Solv. In. Corr.
648
Attempted
1 M:47 S
Avg. Time

2 / 40

What is output or the error in the program if the command line data is?
CornmVault India

#include

int main(int argc, char *argv[]) {
printf(" %d", printf("%s", argv[1]));
return 0;
}


ACommvault

BIndia 5

CIndia 9

DCommVault 9

Answer: Option D

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Commvault

NA
SHSTTON
104
Solv. Corr.
455
Solv. In. Corr.
559
Attempted
0 M:40 S
Avg. Time

3 / 40

What is the output of the program on a 32 bit Operating System?

#include
#include
void main () {
double val = 12.34;
double *dp = &val;
char *cp;
cp = (char*)malloc(sizeof(char) * 20);
sprintf (cp, "hello world");
printf("%d %d %d", sizeof(cp), sizeof(dp), sizeof(val));
}


A4 4 8

B20 8 8

C11 8 8

D20 4 8

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Commvault

NA
SHSTTON
50
Solv. Corr.
603
Solv. In. Corr.
653
Attempted
3 M:2 S
Avg. Time

4 / 40

Choose the correct option.

Match the following?

i) Software Interrupt mechanism (l)Deadlock
ii) Passing data from one process to another process (2)Signals
iii) A situation wherein two or more competing actions (3)Preemptive multitasking
are waiting for the other to finish, and thus
neither ever does
iv) Allows the computer system to more reliably guarantee each process a regular slice of operating time (4)Pipe


Ai-4, ii-3, iii-2, iv-1

Bi-4, ii-3, iii-2, iv-1

Ci-2, ii-4, iii-1, iv-3

Di-4, ii-2, iii-1, iv-3

Answer: Option B

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Commvault

NA
SHSTTON
307
Solv. Corr.
497
Solv. In. Corr.
804
Attempted
0 M:42 S
Avg. Time

5 / 40

Which of the following option is correct for the below 'C' program?
#include<stdio.h>
int main () {
int  ( *Commprintf) (const char*, ... ) = printf;
Commprintf (  "Hello World");
return 0;
}

ANo output

BUndefined symbol Commprintf

CCompile Error: Prototype mismatch

DHello World

Answer: Option D

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Commvault

NA
SHSTTON
206
Solv. Corr.
257
Solv. In. Corr.
463
Attempted
0 M:30 S
Avg. Time

6 / 40

What is output or the error in the program?

#include

void main () {
const char* cptr = "Hello";
printf ("%c", (*++cptr)++);
}


Al-value specifies const object

BNo error, output is e

CNo error, output is H

DNo error, output is 1

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Commvault

NA
SHSTTON
114
Solv. Corr.
256
Solv. In. Corr.
370
Attempted
1 M:40 S
Avg. Time

7 / 40

What is the output of the program,if the base address of the array is 1244896?
#include <stdio.h>
void main () {
struct {
float c ,
union p { 
char c; 
char *cp; 
short s;

} uvar[5);

} svar [6];

printf("%d %d", &svar[2], &svar[5]);

}

A1244784 1244976

B1244944 1245016

C1244784 1244932

D1244944 1244992

Answer: Option B

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Commvault

NA
SHSTTON
294
Solv. Corr.
256
Solv. In. Corr.
550
Attempted
2 M:38 S
Avg. Time

8 / 40

What is the output of the C++ program?
#include <iostream>
using namespace std;

void fun(int a, int b, int &c,int &d)
{
c += a + b;
d += a - b;
}
 
int main () {
int vl =  5,  v2 =  10, v3 = 2, v4 = 3; 
fun(vl,  v2, v3, v4); 
cout << v3 << "  "<< v4 ;
return 0;
}

A15 -5

B2 3

C17 -2

DNone of the above

Answer: Option C

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
140
Solv. Corr.
220
Solv. In. Corr.
360
Attempted
0 M:38 S
Avg. Time

9 / 40

What is the output of the C++ program?
#include <iostream>
using namespace std;
 
class test { 
float x,  y; 
public:
test(float a = 1.0,  float b = 2.0)
{
x = a;
y = b;
}

test operator + (test & obj) {
return test(this->x + obj.x,  y + obj.y);
}

operator float () {
return  (x + y) ;
}
};

int main () {
test obj1(1.23, 4.56), obj2;
obj2  = obj1 + obj2;
cout << obj2;
return 0;
}

A8.79

B5.79

C3

DCompilation error: binary '<<': no operator found which takes a right-hand operand of type 'test'

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
197
Solv. Corr.
247
Solv. In. Corr.
444
Attempted
0 M:36 S
Avg. Time

10 / 40

Choose the correct option.

What is the signature of the assignment operator in C++, if chain of assignments need to be performed for an object of class test?


Atest & operator = (const test&);

Bvoid & operator =(const test&);

Ctest & operator = ();

Dvoid & operator = (const test);

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Commvault


Here is the list of questions asked in Commvault Aptitude Questions and Answers for Freshers - Q4Interview. 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