# ABB Placement Paper January 2012

Posted on :11-04-2016
Q1.A car covers a distance of 715 km at a constant speed. If the speed of the car would have been 10 km/hr more, then it would have taken 2 hours less to cover the same distance. What is the original speed of the car?a. 45 km/hrb. 50 km/hrc. 55 km/hrd. 65 km/hr

ANS:  c

Q2.A is 50% as efficient as B. C does half of the work done by A and B together. If C alone does the work in 40 days, then A, B and C together can do the work in

ANS:  a

Q3. A person covered some distance in 12 hours. He covered half the distance by rail @ 75 km per hour and the rest by car @ 45 km/hr. The total distance covered by him wasa. 450 kmb. 675 kmc. 337.5 kmd. 1350 km

ANS:  b

Q4. A sum of Rs. 427 is to be divided among A, B and C in such a way that 3 times As share, 4 times Bs share and 7 times Cs share are all equal. The share of C isa. Rs. 84b. Rs. 147c. Rs. 196d. Rs. 240

ANS: a

Q5.

void main()
{
int i,j,k;
for(i=0;i<3;i++)
k=sum(i,i);
printf(" %d",k);
getch();
}
sum(s,t)
{
static int m;
m+=s+t;
return m;
}

ANS: 6

Q6.

main()
{
i=2;
printf(I=%d i=%d",++i,++i)
}

ANS: vary compiler to compiler

Q7.

main()
{ unsigned char i=0x80;
printf("i=%d",i<<1);

ANS: 256

Q8.

main(
{
B=0xFFFF;
~B ;
printf(%d",B);
}

ANS: 0xFFFF

Q9.

main()
{
char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s
",p2);
}

Q10.

main()
{
int x=5;
printf("%d %d %d
",x,x<<2,x>>2);
}

Q11.

#define swap1(a,b) a=a+b;b=a-b;a=a-b;
main()
{
int x=5,y=10;
swap1(x,y);
printf("%d %d
",x,y);
swap2(x,y);
printf("%d %d
",x,y);
}
int swap2(int a,int b)
{
int temp;
temp=a;
b=a;
a=temp;
return;
}

Q12.

main()
{
char *ptr = "Ramco Systems";
(*ptr)++;
printf("%s
",ptr);
ptr++;
printf("%s
",ptr);

FreshersLive - No.1 Job site in India. Here you can find latest 2019 government as well as private job recruitment notifications for different posts vacancies in India. Get top company jobs for both fresher and experienced. Job Seekers can get useful interview tips, resume services & interview Question and answer. Practice online test free which is helpful for interview preparation. Register with us to get latest employment news/rojgar samachar notifications. Also get latest free govt and other sarkari naukri job alerts daily through E-mail.

 ✖