ABB Placement Papers
ABB Placement Paper January 2012
ABB Placement paper 16 Sep 2013
ABB Verbal Ability Paper
ABB Reasoning Ability Paper
ABB Aptitude Questions
ABB Technical Paper
ABB Placement paper on 29th September 2012
ABB Interview Paper
Related Companies
Infosys
Syntel
Capgemini
IBM
Deloitte
Virtusa
Geometric Limited
Grapecity
Brakes India
Maveric Systems
AT & T
Placement Papers for All Companies
3i infotech
Abacus Infotech
Abatix
Abaxis
ABB
ACC Limited
Accel Frontline
Accenture
Aditi Technologies
Adobe System
ADP
Agilysys
AgreeYa
AIG
AirNet
Alanco Technologies
Alle Technologies
Allfon
Alter Systems
Amazon
AMDL
Amdocs
AMI
Amiti Software Technologies
ANZ
Apple
Applied Materials
Apps Associates
Aricent
ASDC
Ashok Leyland Ltd
Asian Paints
Aspire System
AT & T
Atlas Copco
Atos Origin
AXA Technology Services
Axes Technology
Bain
Bajaj
Bayer
Bharti Airtel Ltd
Bhawan Cybertek
Birlasoft
Blue Star Infotech
BMC
BOB
Brakes India
C-DOT
CA Technologies
Cadence
Calsoft
Canarys
Capgemini
Caterpillar
Celstream
CGI Group
Changepond Technologies
Cimtrix Systems
Cisco system
Citicorp Overseas Software Ltd
ClinTech
CMC Limited
CMS
Cognizant
Compaq
Consagous Technologies
Convergys
CORDYS
CRISIL
Crompton Greaves
CSC
CSFB
CtrlS Datacenters Ltd
Cummins
Cyient
Daffodil
Daimler
Dell
Deloitte
Delphi-TVS
Dharma Systems
Directi
DSRC
Eicher
ELGI
ELICO
EMC Corporation
Emphasis
Ericsson
Ernst & Young
ESKO
Essar
Facebook
Fanuc Corporation
Fidelity
Flextronics
Flipkart
Freescale
Fujitsu
Gajshield
GE
Genpact India
Geodesic
Geometric Limited
GlobalEdge
GlobalLogic
GMR Group
Godrej Infotech
Google
Grapecity
Harita - TVS
HCL
HCL Technologies
Headstrong
Healthasyst
HEC Ltd
Hexaware
HFCL
Holool
Honeywell
HP
HTC Global Services
Huawei
Hughes
Hyundai
IBM
IBS Software Services
IGate
Ikanos
IKOS
Impetus
iNautix
Indecomm
IndiaBulls Power Limited
Inductis-EXL
Industrial Alliance
Infineon
Infogain
Infosys
Intec
Integra
Intel
Intergraph
ITC Infotech
Jindal Steel and Power Limited
KPIT
L & T
L & T Infotech
LG Soft
Linde India Ltd
LnT Emsys
LnT-ECC
Lucas - TVS
Mahindra Engineering Services Ltd
Mahindra Ltd
Maruti
Matrix
Maveric Systems
McAfee
Microland
Microsoft
Mindtree
Miraclesoft
MKCL
Motorola
Mu-Sigma
Nagarro
NASSCOM
NCR Corporation
Ness Technologies
Neudesic
NIIT Technologies
Novell
Nvidia
Oracle
Persistent
Philips
Planetasia
Polaris
Poornam Info Vision
PSI Data Systems Limited
Quest-Global
Quinnox
R Systems
Redpine
Reliance Energy
Robert Bosch
RS Software
Samsung
SAP labs India
Sapient
Sasken Communications
Schneider India
Serco
Siemens
Sierra Atlantic
SkyTECH
Soliton
Sonata Software
Sony India
SQL Star
Steria
Subex Limited
Sutherland Global Services
Syntel
Talisma
Tata motors
Tata technologies
Tata-ELXSI
TCE
TCS
Tech Mahindra
Temenos
Tesco
Texas Instruments
Thermax
ThoughtWorks
Torry Harris
Triad
Trianz
Trilogy
TVS Motor
Unisys
UnitedHealth Group
UST Global
UTC Aerospace System
Valuelabs
Vedanta
Verifone
Verizon
Virtusa
Vision Infotech
Vizual
VMware
Wipro
Yahoo
YASH Technologies
Zenith
Zensar Technologies
ZTE
ABB Language paper
Posted on :11-04-2016
Q1. What would be the output of the following program.
#includemain(){extern int a;printf("%d",a);;}int a=20;
(a) 20(b) 0(c) garbage value(d) error!
Q2. What would be the output of the following program.
main(){int a[5]={2,3};printf("%d %d %d",a[2],a[3],a[4]);}
(a) garbage value(b) 2 3 3(c) 3 2 2(d) 0 0 0
Q3. What would be the output of the following program.
main(){inti=-3,j=2,k=0,m;m=++i&&++j||++k;printf("%d %d %d %d",i,j,k,m);}
(a) -2 3 0 1(b) -3 2 0 1(c) -2 3 1 1(d) error
Q4. What would be the output of the following program.
main(){int a,b;a=sumdig(123);b=sumdig(123);printf("%d %d",a,b);}sumdig(int n){static int s=0;int d;if(n!=0){d=n%10;n=(n-d)/10;s=s+d;sumdig(n);}else return(s);}
(a) 12 6(b) 6 12(c) 3 15(d) error
Q5. What would be the output of the following program.
#define CUBE(x) (x*x*x)main(){int a,b=3;a=CUBE(b++);printf("%d %d",a,b);}
(a) 64 4(b) 27 4(c) 27 6(d) 64 6
Q6. What would be the output of the following program.
main(){const int x=get();printf("%d",x);}get(){return(20);}
(a) 20(b) garbage value(c) error(d) 0
Q7. A function has this prototype void f1(int **x), How will you call this function?
f1(a); f1(&a); f1(&a); f1(&&a);
(a) int **a;(b) int a;(c) int *a;(d) int a=5;
Q8. Pointout the error, if any, in the for loop
main(){int l=1;for(;;){printf("%d",l++);if(l>10)break;}}
(a) The condition in the for loop is a must(b) The two semicolons should be dropped(c) The for loop should be replaced by awhile loop(d) No error
Q9. Can the following piece of code be executed?
int main(void){char strA[10]="compile",strB[10];my_strcpy(strB,strA);puts(strB);}char * my_strcpy(char *destination,char *source){char *p=destination;while(*source!=){*p++=*source++;}*p=;return destination;}
(a) Compilation will only give a warning but will proceed to execute & will display "compile"(b) The compilation error char *(char *,char *) differs in levels of indirection from int() will occur(c) Yes & it will print compile on the screen(d) None of the above
Q10. What would be the output of the following program.
#includemain(){char str[5]="fast";static char *ptr_to_array = str;printf("%s",ptr_to_array);}
(a) Compilation will only give a warning but will proceed to execute & will display "fast"(b) display "fast" on screen(c) will give a compilation error(d) none of the above
Q11. What would be the output of the following program.
main(){int num,*p;num=5;p=#printf("%d",*p);}
(a) 6(b) 5(c) junk value(d) compilation error
Q12. What would be the output of the following program.
main(){int a[3]={2,3,4};char *p;p=a;p=(char *)((int *)p+1);printf("%d",p);}
(a) 2(b) 0(c) junk value(d) 3
Q13. What would be the output of the following program.
main(){int i=10;fn(i);printf("%d",i);}fn(int i){return ++i;}
(a) 10
(b) 11
(c) 12
(d) Compilation error
Q14. What will be the value of i & j after the loop is executed?
for(i=0,j=0;i<5,j<25;i++,j++)
(a) i=4,j= 24(b) i=24,j= 24(c) i=25,j= 25(d) i=5,j=25
Q15. What would be the output of the following program.
main(){int i,j;i=10;j=sizeof(++i);printf("%d",i);}
(a) 11(b) 10(c) 4(d) compilation error
Q16. What would be the output of the following program.
main(){int i=7;printf("%d",i++*i++);}
(a) 49(b) 56(c) 72(d) compilation error
Q17. What will the printf print?
main(){char *p,*f();p=f();printf("f() returns:%s",p);}char *f(){
char result[80];strcpy(result,"anything will do");return (result);}
(a) f() returns: anything will do(b) f() returns:(c) compilation error(d) The printf statement is not going to be executed
Q18. How many times the following program would print Jamboree?
main(){printf("Jamboree");main();}
(a) infinite number of times(b) 32767 times(c) 65535 times(d) till the stack does not overflow
Q19. Notice the error in the default statement in the code snippet below. Will it give a compilation error?
main(){int a=10,j;j=fn(a);switch(j){case 30: printf("the value is 30");break;case 50: printf("the value is 50");break;default:printf("the value is not 30 or 50");}}fn(int a){return (++a);}
(a) Will display "the value is 30"(b) Will display "The value is not 30 or 50"(c) Yes a compilation error would happen(d) No compilation errors but there will be no output on the screen
Q20. What would be the output of the following program.
main(){struct emp{char name[20];int age;float sal;};struct emp e = {"tiger"};printf("%d %f",e.age,e.sal);}
(a) 0 0.000000(b) Garbage values(c) Error(d) none of the above
Related Companies
Infosys
Syntel
Capgemini
IBM
Deloitte
Virtusa
Geometric Limited
Grapecity
Brakes India
Maveric Systems
AT & T
Top Companies Placement Papers
TCS Papers
Wipro Papers
HCL Papers
IBM Papers
Amazon Papers
CISCO System Papers
Cognizant Papers
CSC Papers
Tata Motors Papers
Tech Mahindra Papers
L&T Papers
Facebook Papers
Dell Papers
L & T Infotech Papers
Capgemini Papers
HP Papers
Microsoft Papers
Google Papers
Samsung Papers