Virtusa Placement Questions & Answers :: Virtusa

107.79K

Tot. Mock Test: 3


Total Qs: 119+

NA
SHSTTON
18
Solv. Corr.
20
Solv. In. Corr.
38
Attempted
0 M:0 S
Avg. Time

11 / 119

Select the incorrect statement: "Software engineers should


Anot knowingly accept work that is outside your competence."

Bnot use your technical skills to misuse other people's computers."

Cbe dependent on their colleagues."

Dmaintain integrity and independence in their professional judgment."

Answer: Option C

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
48
Solv. Corr.
20
Solv. In. Corr.
68
Attempted
0 M:0 S
Avg. Time

12 / 119

Choose the correct option.

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


ADDL

BDML

CHTML

DXML

Answer: Option A

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.

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
44
Solv. Corr.
25
Solv. In. Corr.
69
Attempted
0 M:0 S
Avg. Time

13 / 119

Choose the correct option.

Which of the following is valid SQL for an Index?


ACREATE INDEX ID;

BCHANGE INDEX ID;

CADD INDEX ID;

DREMOVE INDEX ID;

Answer: Option A

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;

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
30
Solv. Corr.
15
Solv. In. Corr.
45
Attempted
15 M:54 S
Avg. Time

14 / 119

Choose the correct option.

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


AEncapsulation

BPolymorphism

CInheritance

DAll of the above.

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
13
Solv. Corr.
30
Solv. In. Corr.
43
Attempted
0 M:0 S
Avg. Time

15 / 119

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
26
Solv. Corr.
35
Solv. In. Corr.
61
Attempted
0 M:6 S
Avg. Time

16 / 119

Choose the correct option.

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


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

BThe tables to be joined have multiple NULL columns.

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

DYou want to use a NATURAL join, but you want to restrict the number of columns in the join condition.

EA, C & D

Answer: Option E

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
47
Solv. Corr.
19
Solv. In. Corr.
66
Attempted
0 M:0 S
Avg. Time

17 / 119

Choose the correct option.

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


ASequential structure

BA List

CA plan

DAn Algorithm

Answer: Option D

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
20
Solv. Corr.
51
Solv. In. Corr.
71
Attempted
0 M:3 S
Avg. Time

18 / 119

What will happen when you attempt to compile and run the following code?
public class MyField{
String s;
public static void main(String argv[]){
        MyField m = new MyField();
        m.amethod();
        }
void amethod(){
        System.out.println(s);
        }
}

ACompile time error s has not been initialised

BRuntime error s has not been initialised

CBlank output

DOutput of null

Answer: Option D

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
73
Solv. Corr.
27
Solv. In. Corr.
100
Attempted
0 M:0 S
Avg. Time

19 / 119

What will be the output of the below code segement:
String[] elements = {"Java","is","platform","independent"};
String result = (elements.length > 0) ? elements[0]:null;
System.out.printf(result);

Aindependent

Bjava

Cis

Dplatform

Answer: Option B

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa

NA
SHSTTON
71
Solv. Corr.
23
Solv. In. Corr.
94
Attempted
0 M:0 S
Avg. Time

20 / 119

What will be the output of the below code segement:
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;
        }
    }
}

Aten

Btwenty

Cten twenty

DNone

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Virtusa


Here is the list of questions asked in Virtusa Aptitude Test Question with Answers Virtusa Mock Test page 2. 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