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

Placement Questions & Answers :: Virtusa

51. Which interface does javutil.Hashtable implement?

Answer: Javutil.Map

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Virtusa 

52. 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?

Answer: Selection, projection, join

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Virtusa 

53. 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]);
}
}

Answer: Prints: 3, 4, 8

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Virtusa TCS NQT 

54. 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");
}
}
}

Answer: Compilation and repeated output of "looping while"

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Virtusa 

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

Answer: Compilation fails.

Explanation:

Compilation fails.

Workspace

Tags:

Virtusa 

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

Answer: interface Transportable extends Movable { /*…*/ }

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Virtusa 

57. 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?

Answer: SELECT employee_id, d.department_id, department_name, salary FROM employees e JOIN departments d ON e.department_id = d.department_id;

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Virtusa 

58. Which statement is true?

Answer: An abstract class can be extended by a concrete class.

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Virtusa 

60. package test;
class Target {
public String name = "hello";
}

Answer: any class in the test package

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Virtusa