Virtusa Aptitude Test Questions
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
92 / 120
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
93 / 120
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
94 / 120
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
95 / 120
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
96 / 120
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
97 / 120
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
98 / 120
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
99 / 120
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
100 / 120
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
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