Company: CONVERGYS India Services Pvt Ltd
2011 Convergys Placement Paper:-
1. Output of the following program is
main()
{int i=0;
for(i=0;i<20;i++)
{switch(i)
case 0:i+=5;
case 1:i+=2;
case 5:i+=5;
default i+=4;
break;}
printf("%d,",i);
}
}
a) 0,5,9,13,17
b) 5,9,13,17
c) 12,17,22
d) 16,21
e) Syntax error
Ans. (d
2. What is the output in the following program
main()
{char c=-64;
int i=-32
unsigned int u =-16;
if(c>i)
{printf(“pass1,”);
if(c
printf(“pass2”);
else
printf(“Fail2”);
}
else
printf(“Fail1);
if(i
printf(“pass2”);
else
printf(“Fail2”)
}
a) Pass1,Pass2
b) Pass1,Fail2
c) Fail1,Pass2
d) Fail1,Fail2
e) None of these
Ans. (c)
3. One day the Finance minister decides that the country should have only 33 paise and 56 paise.If there are two traders having enough change in the two denominations, what is the minimum amount for which they can transact?
Choices :1,2,3,6
Ans: 3
4. Out of the following numbers which is the greatest number when 7 times that number is < 100 1) 12 2) 13 3) 15 4) 14 Ans : 14 5. There is 31 days in the month of January. If there is 4 Sundays and 4 Thursdays exactly.what day is the first day of the month? a)Monday b)Tuesday c)Wednesday d)thursday ans: a) Monday. Please cross check the answer 6. there are 5 tyres including a spare tyre.total number of Kms to be covered is 10000 and each tyre should run equally.how may Kms does each tyre run? I don't remember the order of the choices but the figures were like this a)7500 b)8000 c)8500 d) Ans: 8000. 7. a question with the same logic as question 6.I don't remember the question 8. 8 persons A,B,C,D,E,F,G,H are sitting in a round dining table.some arrangement was given and position of H was asked.I don't remember the question exactly. Ans) I guess it is between A and F.refer RS Agarwal seating puzzles.It's very easy Language : C/C++ 9. which of the following is the correct declaration of a function pointer 10 . how will u retrieve the value stored in pointer variable a 1.a 2.&a 3.*a Ans : a 11. How to pass two arguments to a function prompted to by function pointer a) g -> (1,2) b)*g(1,2) c)(*g)(1,2) d)g(1,2)
Ans: c) (*g)(1,2)
12. if jacob sold a watch costing rs.400 to john at 15% profit and john sold the same to sudhir at 15% profit, what is the price paid by sudhir?
a.460 b.510 c.529(ans) d.560
13. In a shop 80% of the articles are sold at a profit of 10% and the remaining at a loss of 40%.what is the overall profit/loss?
a.10% profit b.10% loss c.15% profit d. no profit, no loss(ans)
14. if an article with marked price of rs.400 is sold at successive discount of 10%,25% and 15%,what is the price the customer has to pay?
a.360 b.300 c.230(ans) d.270
15. the sides of a triangle are in the ratio 37.if the perimeter is 60 cms, the longest side is
a.7 b.30 c.28(ans) d.14
16 . Three years ago the average of A and B was 18 Years. With C joining them now, the average becomes 22 years. How old is C now?
a) 24 years b) 27 years c) 28 years d) 30 years
17. A train traveling at 42 kms/ hr passes a cyclist going in the same direction in 9 secs. If the cyclist had been going in the opposite direction, the train would have passed him in 5 secs. Find the length of the train.
a) 75 meters b) 60 meters c) 90 meters d) 80 meters
18. A person walks a distance of 18 kms at a particular speed. For the next 30 kms he increases his speed by 2 kmph. Had he walked the entire distance at 3 kmph more than his initial speed, he would have reached 4 hours earlier. Find his initial speed.
a) 3 kms/hr b) 2 kms/hr c) 4 kms/hr d) None of these
19. Connection object, command objection. How can u associate both?
a)Set command object.activeconnection = connectionobject
20. var1 is declared as global variable.proc1( ) and proc( ) have local variables.when a call is made from proc1( ) to proc ( ) which are the variables will be displayed in locals window?
21 .how do u unregister a COM from registry?
22. what will happen when Require Variable Declaration option is checked?
a) existing undeclared variables are converted to variant by VB
b) this comes into effect for the new code segment
23. A global module called global. as is creates. which part of the program can access this module? The options were ambigous.be clear about the scope of the global. as module and the application which access it
24 . Complete the series 7 49 56 392………….
25. If a & b are 2 positive integers and
(a-b)/3.5 = 4/7 then
options:
1) ba 3) b=a 4) b>=a
Ans: Option 1) b