[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

11. Select the incorrect statement: "Software engineers should

Answer: be dependent on their colleagues."

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Virtusa 

12. SQL data definition commands make up a(n) ________ .

Answer: DDL

Explanation:

Oracle SQL Do support XML to be inserted into the DB table. The Datatype for XML is XMLType.
We use extract() and existsNode() like functions to access the XML data into DB.

Workspace

Tags:

Virtusa 

13. Which of the following is valid SQL for an Index?

Answer: CREATE INDEX ID;

Explanation:

Index is created to make the searches (select query) faster. But to use the index we need to write the SQL select statement using the column on which we created the Index.
Example: Create index indx1 on emp (empno). To use the benefits, we have to write select * from emp where empno > 0;

Workspace

Tags:

Virtusa 

14. Which of the following is a technique for hiding the internal implementation details of an object?

Answer: Encapsulation

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Virtusa 

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

17. A step by step instruction used to solve a problem is know as

Answer: An Algorithm

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Virtusa 

18. public class MyField{
String s;
public static void main(String argv[]){
MyField m = new MyField();
m.amethod();
}
void amethod(){
System.out.println(s);
}
}

Answer: Output of null

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Virtusa 

19. String[] elements = {"Java","is","platform","independent"};
String result = (elements.length > 0) ? elements[0]:null;
System.out.printf(result);

Answer: java

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Virtusa 

20. public class SwitchTest {
public static void main(String argv[]) {
SwitchTest ms=new SwitchTest();
ms.display();
}
public void display() {
int k=10;
switch(k){

default:
System.out.println("This is the default output");
break;
case 10:
System.out.println("ten");
break;
case 20:
System.out.println("twenty");
break;
}
}
}

Answer: ten

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Virtusa TCS NQT