11. Select the incorrect statement: "Software engineers should
Answer: be dependent on their colleagues."
Explanation:Here is no explanation for this answer
Workspace
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
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
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
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
Virtusa
16. In which three cases would you use the USING clause? (Choose three.)
Answer: A, C & D
Explanation:Here is no explanation for this answer
Workspace
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
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
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
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
Virtusa TCS NQT