## Related Companies

## Placement Papers for All Companies

# ASDC Written Test 1st January 2011

**APTITUDE:**

**Q1. From Chennai to Trichy it is 250 miles and from Chennai to Pondicherry it is 120 miles. What percentage of mile from Chennai to Trichy is Chennai to Pondi?**

a. 34

b. 20

c. 36

**Q2. 30 socks are there in a basket. 60% are red and rest is blue. How many draws should be taken from the basket to make sure that you have 2 blue and 1 red?**

a. 2

b. 3

c. 14

d. 20

**Q3. Find the odd one out**

a. Caution

b. Tresspassers will be prosecuted

c. Only one way

d. Keep left

**Q4. 0.03 of 0.05 is what?**

a. 15%

b. 0.15%

c. 0.015%

d. 0.0015%

**Q5. 12 men can do a job in 4 hours. In what time the same job can be done by 15 men?**

a. 3 hrs

b. 3 hrs 24 min

c. 2 hrs

d. 3 hrs 30 min

**Q6. 3x-2y=8 so what is 4y-6x?**

a. -16

b. 16

c. data not sufficient

**Q7. If x<y, y<z and z>w, which of the following is always true?**

a. x<w

b. y<w

c. x>w

d. y>w

**Q8.** **One question on odd man out was asked, few questions on profit and loss were asked.**

**Q9. If kanchan is son of Sunil’s son’s son then how is Sunil related to Kanchan?**

__ ANS:__ Grandson

**Q10. Head is to cap as finger is to ---.**

a. Ring

b. Nail

c. Thumb

**Q11. **There are 50 employees of a company. 21 were in training for both economics and science training.11 were in 2 different training programs. Find how many of them do not attend any training program?

**Q12. **When operator * is applied to a number the result is 10 subtracted from the twice of the original number, so what is *(*9)?

**Q13. An employer pays X, Y, Z a weekly wage of total 610. X gets 120% of Y, and X gets 80% of Z. What is the weekly wage of X?**

__ ANS:__ 200.

**Q14.**A husband and wife have 6 sons and each has 5 children. How many are there in the family altogether?

**Q15.**City B is 8 miles east of City A. City C is 6 miles north of City B. City D is 16 miles east of city C. City E is north of City D by 12 miles. What is the shortest distance from City A to City E?

**Q16. In a certain code language RANGER was written as REGNAR. With the same code how is TABLE written?**

__Elbat (reverse the word)__

**ANS:****Q17. In a certain code if READ is written as SEADR then how is SING written with that code?**

__TINGS__

**ANS:**

**TECHNICAL:****Q18. The following program is to calculate the number of lines, number of words, number of characters from file. Complete the C program (15 marks)**

*# define IN 1
# define OUT ------
main()
{
int nc=nw=nl= ------,state= ------.c;
while((----=getchar()!=EOF))
{
++ ----;
if (c= = ‘ ’)
++ ----;
if(c = = ‘ ‘ || c = = ‘ ’ || c= =’ ’)
state= ----;
elseif(state = ----)
{
state= -----;
++ -----;
}
}
}*

**Q19. A sorting program is given. You need to print the output of every outer ‘for’ loop.**

*main()
{
int n=8,I,j,k;
int a[7]={44,55,42,12,6,94,67};
for(I=0;I<n-1;I++)
{
k=I;
x=a[k];
for(j=I+1;j<n;j++)
{
if(a[j]<k)
{
k=j;
x=a[k];
a[k]=a[I];
a[I]=x;
}
}
}*

**Directions for Questions 20 to 22:**

**Assume the following:
a. A tape drive can store 4096 bytes/ millimeter
b. Forgot
c. A IRG is necessary and the length is 2 millimeter **

**Answer the following question:**

**Q20.**For storing 20MB how many millimeters of tape is required?

**Q21.**What is the storage capacity if the tape is 10000meters long?

**Q22.**For an infinite storage, how many IRGs are required in a tape that stores 1 GB of data?

**Q23. Questions were given like L-Value R-Value**

a) z[I+2]

b) *x

c) &x

d) &(&x)

**Q24.** The precedence of operators are given, you have to find the value highest: + followed by -, *, / parentheses are given higher precedence to operators unary operator ‘-‘ is always written within parentheses association is from right to left.