Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions

Virtusa Placement Questions & Answers :: Virtusa

134.38K

Tot. Mock Test: 3


Total Qs: 120+

NA
SHSTTON
80
Solv. Corr.
202
Solv. In. Corr.
282
Attempted
0 M:0 S
Avg. Time

51 / 120

Choose the correct option.

Which interface does javutil.Hashtable implement?


AJavutil.Map

BJavutil.List

CJavutil.HashTable

DJavutil.Collection

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
60
Solv. Corr.
71
Solv. In. Corr.
131
Attempted
0 M:0 S
Avg. Time

52 / 120

Choose the correct option.

SELECT e.EMPLOYEE_ID,e.LAST_NAME,e.DEPARTMENT_ID, d.DEPARTMENT_NAME
FROM EMP e, DEPARTMENT d WHERE e.DEPARTMENT_ID = d.DEPARTMENT_ID;
In the statement, which capabilities of a SELECT statement are performed?


ASelection, projection, join

BDifference, projection, join

CSelection, intersection, join

DIntersection, projection, join

EDifference, projection, product

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
147
Solv. Corr.
133
Solv. In. Corr.
280
Attempted
0 M:0 S
Avg. Time

53 / 120

Choose the correct option.
class ArrayTest {
public static void main(String[] args) {
int[][] a1 = {{1,2,3},{4,5,6},{7,8,9,10}};
System.out.print(a1[0][2]+","+a1[1][0]+","+a1[2][1]);
}
}

APrints: 3, 4, 8

BPrints: 7, 2, 6

CRun-time error

DCompile-time error

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

NA
SHSTTON
121
Solv. Corr.
125
Solv. In. Corr.
246
Attempted
1 M:51 S
Avg. Time

54 / 120

What will happen when you try to compile and run this code?
public class TGo implements Runnable{
 public static void main(String argv[]){
         TGo tg = new TGo();
         Thread t = new Thread(tg);
         t.start();
        }
        public void run() {
         while(true) {
   Thread.currentThread().sleep(1000);
                        System.out.println("looping while");
                }
        }
}

ACompilation and no output

BCompilation and repeated output of "looping while"

CCompilation and single output of "looping while"

DCompile time error

Answer: Option B

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
69
Solv. Corr.
169
Solv. In. Corr.
238
Attempted
0 M:0 S
Avg. Time

55 / 120

Choose the correct option.

A method is declared to take three arguments. A program calls this method and passes only two arguments. What is the result?


ACompilation fails.

BThe third argument is given the value null.

CThe third argument is given the value zero.

DAn exception occurs when the method attempts to access the third argument.

Answer: Option A

Explanation:

Compilation fails.

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
30
Solv. Corr.
60
Solv. In. Corr.
90
Attempted
0 M:0 S
Avg. Time

56 / 120

Which is a valid definition of an interface called Transportable given another valid interface, Movable?


Aclass Movable extends Transportable { /*…*/ }

Binterface Transportable extends Movable { /*…*/ }

Cclass Movable implements Transportable { /*…*/ }

Dinterface Transportable implements Movable { /*…*/ }

Answer: Option B

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
43
Solv. Corr.
78
Solv. In. Corr.
121
Attempted
0 M:0 S
Avg. Time

57 / 120

Choose the correct option.

Evaluate this SQL statement:
SELECT employee_id, e.department_id, department_name, salary
FROM employees e, departments d
WHERE e.department_id = d.department_id;

Which SQL statement is equivalent to the above SQL statement?


ASELECT employee_id, department_id, department_name, salary FROM employees WHERE department_id IN (SELECT department_id FROM departments);

BSELECT employee_id, department_id, department_name, salary FROM employees NATURAL JOIN departments;

CSELECT employee_id, d.department_id, department_name, salary FROM employees e JOIN departments d ON e.department_id = d.department_id;

DSELECT employee_id, department_id, department_name, salary FROM employees JOIN departments USING (e.department_id, department_i;

Answer: Option C

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
63
Solv. Corr.
32
Solv. In. Corr.
95
Attempted
0 M:0 S
Avg. Time

58 / 120

Which statement is true?


AAn abstract class can be extended by an interface.

BAn interface CANNOT be extended by another interface.

CAn interface can be extended by an abstract class.

DAn abstract class can be extended by a concrete class.

Answer: Option D

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
109
Solv. Corr.
114
Solv. In. Corr.
223
Attempted
0 M:7 S
Avg. Time

59 / 120

Choose the correct option.

In which three cases would you use the USING clause? (Choose three.)


AYou want to create a nonequijoin.

BThe tables to be joined have multiple NULL columns.

CThe tables to be joined have columns of the same name and different data types.

DThe tables to be joined have columns with the same name and compatible data types.

EBoth C & D

Answer: Option E

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
90
Solv. Corr.
161
Solv. In. Corr.
251
Attempted
0 M:23 S
Avg. Time

60 / 120

What can directly access and change the value of the variable name?
package test;
class Target {
 public String name = "hello";
}

Aany class

Bonly the Target class

Cany class in the test package

Dany class that extends Target

Answer: Option C

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa


Here is the list of questions asked in Online Aptitude Test for Virtusa Virtusa online arithmetic test. 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