VIRTUSA Previous Years Solved Sample Placement Papers
- 'Hillock' is related to 'Mountains' in the same way as Bush is related to
a) Ground
b) Jungle
c) Plant
d) Tree
Ans: b) Jungle - Find the odd one out
a) Swan
b) Vulture
c) Ostrich
d) Eagle
Ans: a) Swan -
What would be the output of the following program?
main()
{
char near * near *ptr1;
char near * far *ptr2;
char near * huge *ptr3;
printf("%d %d %d", sizeof(ptr1), sizeof(ptr2), sizeof(ptr3));
}A. 1 1 1
B. 1 2 4
C. 2 4 4
D. 4 4 4 Answer: Option D
-
What would be the output of the following program?
main()
{
const int x = 5;
int *ptrx;
ptrx = &x;
*ptrx = 10;
printf("%d", x);
}A. 5 Answer: Option A
B. 10
C. Error
D. Garbage value
-
A switch statement cannot include:
A. constants as arguments
B. constant expression as arguments
C. string as an argument Answer: Option C
D. None of the above
-
How long will the following program run?
main()
{
printf("\nSonata Software");
main();
}A. infinite loop
B. until the stack overflows Answer: Option B
C. All of the above
D. None of the above
-
On combining the following statements, you will get
char *p; p = malloc(100);
:
A.
char *p = malloc(100);
B.
p = (char*) malloc(100);
C. All of the above Answer: Option C
D. None of the above
-
What is the output of the following program?
main()
{
int n = 5;
printf("\nn = %*d", n, n);
}A. n=5
B. n=5
C. n= 5 Answer: Option C
D. error
-
He took to (a) / reading Times (b) / for better knowledge (c) / of the facts (d)/ No error (e)
a) He took to
b) reading Times
c) for better knowledge
d) of the facts
Ans: Option B
Solution:
"Times" should be preceded by "the" as it refers to a specific publication. Correct usage: "reading the Times." -
Likelihood
a) liken
b) likely
c) like
d) likeable
Ans: Option C
Solution:
"Likelihood" is a noun form derived from "like," which means probability or chance. - What is the value of x if 16 : 24 :: x : 72
A. 48
B. 12
C. 72
D. 24
Answer: A - If y = 4 and 6y = 10z + y, then z = ?
a) 2
b) 4
c) 6
d) 10
- What number decreased by 7 is equal to 10 increased by 7?
a) 27
b) 24
c) 18
d) 15
- A car covered 300 km of distance in 3 hours 20 minutes, and then 240 km of distance in 2 hours and 40 minutes. What is the average speed of the car during this trip?
a) 80 km/hr
b) 100 km/hr
c) 90 km/hr
d) 110 km/hr
-
Select the antonym of capture from the following
A. attack
B. Release Answer: Option B
C. condemn
D. None of the above
-
Find the antonym of autumn
A. Spring Answer: Option A
B. Winter
C. Summer
D. None of the above
-
One skirt requires 3.75 yards of cloth. How many skirts you can make from 45 yards?
Ans: 12 skirts
-
How can you make a square from two triangles?
Solution: By joining the hypotenuses of two right-angled triangles.
-
Is the meaning of Client and Customer,
A. same Answer: Option A
B. contradictory
C. no relation
-
Is the meaning of It's and Its,
A. same
B. contradictory Answer: Option B
C. no relation
-
Is the meaning of Canvas and Canvass,
A. same
B. contradictory Answer: Option B
C. no relation
-
Is the meaning of Ingenious and Ingenuous,
A. same
B. contradictory Answer: Option B
C. no relation
-
Is the meaning of Credible and Credulous,
A. same
B. contradictory Answer: Option B
C. no relation
-
Select the odd one out.
A. 1/4
B. 1/3
C. 1/6
D. 1/18 Answer: Option D