[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.

Virtusa Aptitude Test Questions

206.4K

Tot. Mock Test: 3


Total Qs: 120+

NA
SHSTTON
58
Solv. Corr.
106
Solv. In. Corr.
164
Attempted
1 M:29 S
Avg. Time

91 / 120

Which of these is not true?


AWeb has led to availability of software services and possibility of developing highly distributed service based systems.

BWeb based systems have led to degradance of programming languages.

CWeb brings concept of software as service.

DWeb based system should be developed and delivered incrementally.

Answer: Option B

Explanation:

Web based systems has led to important advances in programming languages.

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
307
Solv. Corr.
84
Solv. In. Corr.
391
Attempted
1 M:2 S
Avg. Time

92 / 120

Output of the below partial code.
String[] elements = {"Java","is","platform","independent"};
String result = (elements.length > 0) ? elements[0]:null;
System.out.printf(result);

Anull

BJava

CJav

DCompilation fails

Answer: Option B

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
252
Solv. Corr.
168
Solv. In. Corr.
420
Attempted
0 M:6 S
Avg. Time

93 / 120

What will happen when you attempt to compile and run the code in main method:
for(int i=0;i<5;) {
System.out.println(i);
i++;
continue;
}

ACompile time error

BRuntime error

CCompile and run with output 0 to 4

DNone of the above

Answer: Option C

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
173
Solv. Corr.
228
Solv. In. Corr.
401
Attempted
1 M:45 S
Avg. Time

94 / 120

Given the following constructor what will element 1 of mycon contain?
MyCon(){
   int[] mycon= new int[5];
}

A0

Bnull

C""

DNone of these options

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
164
Solv. Corr.
229
Solv. In. Corr.
393
Attempted
5 M:46 S
Avg. Time

95 / 120

Which of the following gives the valid output for the above code?
public class ManTin {
public static void main(String[] args) {
int j=2,y=3,z=9;
for(;j<6;j++) {
y = (++y + z++);
System.out.println(y+z);
}
}
}

A25 38 52 67

B22 34 47 61

C23 35 48 62

D27 41 56

Answer: Option C

Explanation:

23 35 48 62

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
78
Solv. Corr.
211
Solv. In. Corr.
289
Attempted
0 M:35 S
Avg. Time

96 / 120

Choose the correct option.

What is true about joining tables through an equijoin?


AYou can join a maximum of two tables through an equijoin.

BYou can join a maximum of two columns through an equijoin.

CYou specify an equijoin condition in the SELECT or FROM clauses of a SELECT statement.

DTo join two tables through an equijoin, the columns in the join condition must be primary key and foreign key columns.

EYou can join n tables (all having single column primary keys) in a SQL statement by specifying a minimum of n-1 join conditions.

Answer: Option E

Explanation:

You can join n tables (all having single column primary keys) in a SQL statement by specifying a minimum of n-1 join conditions.

Submit Your Solution

NA
SHSTTON
279
Solv. Corr.
101
Solv. In. Corr.
380
Attempted
0 M:17 S
Avg. Time

97 / 120

What exception type does the following program throw?
public class Test {
public static void main(String[] args) {
System.out.println(1/0);
}
}

AArithmeticException

BArrayIndexOutOfBoundException

C0

DNo Exception

Answer: Option A

Explanation:

ArithmeticException

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
141
Solv. Corr.
222
Solv. In. Corr.
363
Attempted
0 M:5 S
Avg. Time

98 / 120

Choose the correct option.
public class SwitchTest {
public static void main(String argv[]) {
SwitchTest ms=new SwitchTest();
ms.display();
}
public void display() {
        int k=10;
        switch(k){
            case 10:
            System.out.println("10");
            case 30:
            System.out.println("30");
            case 20:
            System.out.println("20");
            default:
            System.out.println("40");
        }
    }
}

A10 ,30 , 20 , 40

B10 ,30 , 20

C10

D10, 40

Answer: Option A

Explanation:

10 ,30 , 20 , 40

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
34
Solv. Corr.
189
Solv. In. Corr.
223
Attempted
0 M:0 S
Avg. Time

99 / 120

Choose the correct option.

In which two cases would you use an outer join?


AThe tables being joined have NOT NULL columns.

BThe tables being joined have only matched dat

CThe columns being joined have NULL values.

DThe tables being joined have only unmatched dat

EThe tables being joined have both matched and unmatched dat

Answer: Option C

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
268
Solv. Corr.
81
Solv. In. Corr.
349
Attempted
0 M:0 S
Avg. Time

100 / 120

Which Exception Will occur
class Test {
public static void main(String[ ] args) {
try {
String s = "5.6";
Integer.parseInt(s); // Cause a NumberFormatException
int i = 0;
int y = 2 / i;
System.out.println("Welcome to Java");
} catch (Exception ex) {
System.out.println(ex);
}
}
}

ANumberFormatException

BWelcome to Java

CCompiler Error

DNone

Answer: Option A

Explanation:

NumberFormatException

Submit Your Solution

Tags: Virtusa


Here is the list of questions asked in Virtusa Placement Papers Virtusa Aptitude Test Questions. Practice Virtusa Written Test Papers with Solutions and take Q4Interview Virtusa Online Test Questions to crack Virtusa written round test. Overall the level of the Virtusa 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 Virtusa