## Subex Limited Placement Papers

## Related Companies

## Placement Papers for All Companies

# Subex Limited Language Paper

**Q1. Predict the output or error(s) for the following:**

*#include
main()
{
struct xx
{
int x=3;
char name[]="hello";
};
struct xx *s;
printf("%d",s->x);
printf("%s",s->name);}*

a) Compiler Error

b) hello

c) hello name

d)Warning : Structure is not defined properly

**Q2. Analyze the output**

*#include
main()
{
char s[]={,a,,,b,,,c,,, ,,,c,,,,};
char *p,*str,*str1;
p=&s[3];
str=p;
str1=s;
printf("%d",++*p + ++*str1-32);
}*

a) 77

b) Linker Error

c) warning : str is assigned value but never used

d) some garbage value

**Q3.**

*#include
main()
{
int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} };
int *p,*q;
p=&a[2][2][2];
*q=***a;
printf("%d----%d",*p,*q);
}*

a) SomeGarbageValue

b) 10,2,3,4,5,6,7,8

c) compiler error

d) no output

**Q4.**

*main()
{
char *p="hai friends",*p1;
p1=p;
while(*p!=,,) ++*p++;
printf("%s %s",p,p1);
}*

a) ibj!gsjfoet

b) hai friends

c) compiler Error

d) data is insufficient

**Q5. **

*main()
{
staticcharnames[5][20]={"pascal","ada","cobol","fortran","perl"};
int i;
char *t;
t=names[3];
names[3]=names[4];
names[4]=t;
for (i=0;iregno)*

**Q6. ****What is the output of the following code?**

*int y=0; for(;;){if(y++ == 5)break;}
printf("%d ",y);*

a) 0

b) 5

c) 6

d) 7

**Q7. What is the value of a after execution of the expression a=b-=c*=5 given b=110 and c=20?**

a) 450

b) 10

c) 110

d) -10

**Q8. Identify the correct argument for the function call fflush() in ANSI C.**

a) std out

b) std in

c) undefined

d) invalid

**Technical Operating System**

**Q1. For Instruction decoding ______ register is used**

a) PC

b) PSW

c) IR

d) SP

**Q2. I/O techniques preferred is**

a) Polling

b) Interrupt

c) DMA

d) PCI

**Q3. Interrupt and Signals both are same. ( T/F ) **

**Q4. To avoid RACE condition _______________is used.**

a) Mutual exclusion

b) Thrashing

c) Threading

d) Memory Management

**Q5. _________________ is a memory _management scheme that permits the page size and frame size to be same. **

**Q6. ______________ can not create another process.**

a) fork()

b) thread

c) process

d) program

**Q7. Internal fragmentation is solved by**

a) Segmentation

b) Paging

c) Thrashing

d) Multithreading

**Q8. _____________ keeps track of a process state as well as the cpu state during process execution. **

**Q9. ______________does not required to complete a critical task within a guaranteed amount of time **

**Q10. In Interrupt mode the kernel checks each I/O device if it generated an interrupt or not. True/False?**

**Q11. A 100 m train crosses a bridge in 25 seconds and crosses a platform twice as long as the bridge in 40 seconds. What is the time taken by the train to cross a platform of length 360 m, in seconds?**

(a) 28

(b) 46

(c) 54

(d) 63

**Q12.The number of science graduates to the number of commerce graduates in a class is in the ratio 4:5. If the ratio of the science teachers to science graduates is 1:8 and the ratio of commerce teachers to commerce graduates is 1:6 and if the total number of graduates is 324, find the total number of teachers.**

(a) 42

(b) 48

(c) 54

(d) 63

**Q13.Timothy spent all of his money at five stores. At each store, he spent Rs.10 more than half of the amount he had while entering the store. How much money did he have when he entered the first store?**

(a) Rs.360

(b) Rs.480

(c) Rs.540

(d) Rs.620

**Q14.Train A leaves the station travelling at 30 kmph. Two hours later train B leaves the same station travelling in the same direction at 40 kmph. How long does it take for train B to catch up with train A?**

(a) 4.5 hours

(b) 6 hours

(c) 7.5 hours

(d) None of these

**Q15. Pankaj with the help of Rohit can finish weeding the garden in 21 days and with the help of Qasar can weed it in 28 days. Pankaj, Qasar and Rohit start working together. After four days, Qasar quits and after another three days, Pankaj also quits. Rohit completes the remaining work in 16 days. In how many days would Pankaj alone weed the entire garden?**

(a) 35

(b) 49

(c) 63

(d) 84

**Q6. Archana and Swetha start walking together towards their school. If Swetha walks at her usual speed, she reaches school 15 min after Archana. If Swetha walks at twice her speed, she reaches the school 9 min earlier than Archana. What is the ratio of the speeds of Swetha and Archana?**

(a) 5:7

(b) 9:11

(c) 12:17

(d) 11:16

**Q7. In a college, for every two people who take up biology, three take mathematics and for every 5 people who take commerce, seven take biology. If the total number of students in the college is 405, then the number of students who enrolled in mathematics is greater than those who enrolled in commerce by**

(a) 66

(b) 77

(c) 99

(d) 121

**Q8. Ramesh bought two dozen pencils and gave 25% of them to Geetha. Of the remaining, he gave one third to Vrinda. If he decides to give half of the remaining to Minchu, then what is the number of pencils left with him?**

(a) 4

(b) 6

(c) 7

(d) 9

**Q9. One fourth of 20% of a number is 16. What would be the value of 125% of the same number?**

(a) 240

(b) 320

(c) 400

(d) 540

**Q10. Twice the number of marbles Ananth has is equal to thrice the number of marbles Arun has. If Ananth gives seven marbles to Arun, then the number of marbles with Arun and Ananth would be the same. What is the original number of marbles with Arun?**

(a) 28

(b) 35

(c) 42

(d) 56

**Q11. S earns Rs. 6,900 per month. She spends Rs. 2,200 on food, Rs. 920 on petrol, and 10% of her salary on other incidentals. Find her savings in a year.**

(a) Rs. 41,400

(b) Rs. 2,090

(c) Rs. 37,080

(d) Rs. 45,720

**Q12. In a city, the auto tariff increases at 60 paise and the taxi tariff increases at 35 paise per year. If in 1986, the auto tariff is Rs. 4.40 and taxi tariff is Rs. 6.50, then find the year in which the auto tariff would be 70 paise more than the taxi tariff?**

(a) 1998

(b) 1996

(c) 1997

(d) 1990

**Q13. There are eight balls numbered 1 through 8 kept in a bag. Murali removes all these balls one?by one at random and arranges them from left to right to form an eight digit number. What is the probability that the number so formed would be a multiple of 9?**

(a) 0

(b) 1/9

(c) 8/9

(d) None of these

**Q14. The cost of labour in manufacturing cars has come down by 30% and cost of material has come down by 45%. If originally, the material accounted for twice as much of the manufacturing cost as labour and if it is assumed that total cost consists of only labour and material, what is the percentage decrease in the total cost?**

(a) 35 %

(b) 40 %

(c) 37.5 %

(d) 42.5 %

**Q15. A bus leaves city A at 7 a.m. for city B. Another bus leaves city B for city A at 4 p.m. Each bus takes 12 hours to complete the journey. At what time will they meet?**

(a) 6 p.m.

(b) 5 p.m.

(c) 5.30 p.m.

(d) 4.30 p.m.

**Q16. In a school 4/7 of the students are boys and the rest are girls. On a particular day, 3/4 of the boys and 2/3 of the girls were present. How many more girls were absent than the boys if the total number of boys is 60 more than that of the girls?**

(a) 60

(b) 30

(c) 45

(d) None of these

**Q17. A and B travelled a certain distance at 10 kmph and 15 kmph respectively. If A took twenty minutes more than B, then the distance travelled by them was**

(a) 10 km

(b) 15 km

(c) 30 km

(d) 40 km

**Q18. A man can row 9 km upstream and 15.6 km downstream taking 3 hours each time. The speed of the water current is**

(a) 4.1 kmph

(b) 1.4 kmph

(c) 1.2 kmph

(d) 1.1 kmph

**Q19. The time taken by a train 120 m long running at 108 kmph to cross a platform 90 m long is**

(a) 7 sec

(b) 10 sec

(c) 4 sec

(d) 9 sec

**Q20. Subash purchased an article for Rs. x. If he sold the same article for Rs. 56 and gained x%, then x=**

(a) 30

(b) 42

(c) 48

(d) 40

**Q21. A sum of money borrowed at CI becomes thrice itself in 4 years. Then in how many years will it be 27 times itself?**

(a) 8

(b) 20

(c) 16

(d) 12

**Q22. The simple interest on Rs. 6600 for 7 months at 10% per annum is**

(a) Rs. 355

(b) Rs. 385

(c) Rs. 475

(d) Rs. 375

**Q23. Swapna can do a job in 18 days. Surekha is twice as efficient as Swapna. Then the total time taken by them to complete the job (in days) is**

(a) 12

(b) 10

(c) 6

(d) 8

**Q24. A dishonest trader professes to sell his goods at the cost price, but uses a weight of 840 gms for a kilogram weight. His approximate gain is**

(a) 21%

(b) 19%

(c) 17%

(d) 18%

**Q25.Raju can copy 108 pages in 18 hours. Raju and Ramesh can copy 207 pages in 23 hours. Then time taken by Ramesh to copy 57 pages is (in hours)**

(a) 19

(b) 23

(c) 21

(d) 17

**Q26. On compound interest, a sum of money becomes Rs. 1870 in 2 years and Rs. 2057 in 3 years. Then the rate of interest p.a is**

(a) 10%

(b) 12%

(c) 8%

(d) 15%

**Q27. The profit obtained when an article is sold for Rs. 427 is the same as the loss obtained when it is sold for Rs. 373. At what price must the article be sold to get neither gain nor loss?**

(a) Rs. 400

(b) Rs. 500

(c) Rs. 415

(d) Rs. 430

**Q28. A person deposited Rs. 1000 in a bank. At the end of one year, the interest was added to his initial deposit and he deposited another sum of Rs. 1000. After one more year he collects a total amount of Rs. 2121.60. What is the rate of interest that the bank pays?**

(a) 2%

(b) 4%

(c) 6%

(d) 8%

**Q29. Between 6:15 p.m. and 7:45 p.m. what is the angle of the arc described by the minute hand of a standard clock?**

(a) 90

(b) 180

(c) 540

(d) 910