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

Global Edge Sample Paper

Posted on :08-03-2016

Q1. What is the output of the following code?
 
int main( ) 
for( ; ;); 
printf("Hello
"); 
return 0; 

a. give compilation error 
b. prints Hello infinite times 
c. Runs in an infinite loop without printing anything. 
d. prints Hello once. 

ANS: 


Q2. What is the output of the following code? 

FUNC (int *p) 
p = (int *)malloc(100); 
printf("p:%x",p); 

int main( ) 
int *ptr; 
FUNC(ptr); 
printf("Ptr:%x",ptr); 
return 0; 

a. Both printf statements prints same values. 
b. Both print different values. 
c. Gives compile time error. 
d. Gives run time error. 

ANS: 


Q3. What is the output of the following code?
 
int main() 
char a[] = "world"; 
printf("%d %d
",strlen(a),sizeof(a)); 
return 0; 

a. 5,5 
b. 6,5 
c. 5,6 
d. 6,6 

ANS: 


Q4. What is the output generated? 

main() 
char *s = "Hello"; 
printf("%s",1(s)); 

a. Hello 
b. ello 
c. e 
d. none of these. 

ANS: b 


Q5. Interpret the given declaration 

char ( * ( f ( ) ) [ ] )( ) 

a. f is a pointer to function returning char 
b. f is a pointer to an array of function returning a char 
c. Invalid declaration 
d. f is a function returning pointer to array[] of pointer to function returning char. 

ANS: 


Q6. A binary tree of height h, h > 0 has 

a. at least h and atmost 2*h-1 elements in it. 
b. at least 2^h and atmost (2^h)+1 elementz in it. 
c. at least 2^h -1 and atmost h^2 elements in it. 
d. at least h and atmost (2^h) - 1 elements in it. 

ANS: 


Q7. Thrashing is 

a. flooding of pages in the memory. 
b. increase in removal of pages from memory. 
c. increase in page faults leading to decrease in CPU utilization. 
d. removal of unused pages from memory making space for new ones. 

ANS: 


Q8. Recursive Descent parser is a type of 

a. Bottom up parser. 
b. Top Down parser. 
c. None of these. 
d. Bottom down parser. 

ANS: 


Q9. alloca() allocates memory from 

a. Heap. 
b. Reserved memory. 
c. Data segment. 
d. Stack. 

ANS: d 


Q10. What is the octal equivalent of decimal (5468)? 

a. 12360. 
b. 12560. 
c. None of these. 
d. 12650. 

ANS: 


Q11. What is the output of the following program?

main() 
{ int i; 
i=(2,3); 
printf("%d",i); 

a) 2 
b) 3 
c) Compiler error 
d) Syntax error. 

ANS: 


Q12. What is the output of the following program?

main(){ 
char str[]="GESL"; 
printf("%d %d",sizeof(str),strlen(str)); 

a) 5,5 
b) 4,4 
c) 5,4 
d) 4,5 

ANS: 5, 4 


Q13. What is the output of the following program?

main(){ for (i=0; i++; i<100)
printf("hello world
"); } 

a) 100 times 
b) 0 times 
c) Infinite loop 
d) None of the above. 

ANS: 0 times. 


Q14. What is the output of the following program?

main(){ for (i=1; i++; i<100)
printf("hello world
"); } 

a) 100 times 
b) 0 times 
c) Infinite loop 
d) None of the above. 

ANS: infinite loop 


Q15. What is the output of the following program?

main(){ char c; scanf("%s",c); } 

a) Compiler dependent 
b) unpredictable 
c) Compiler error 
d) scans the i/p. 

ANS: Compiler dependent. 


Q16. What is the output of the following program?

main(){ 
int k=5; 
for(++k<5 && k++/5 || ++k<8); 
printf("%d
",k); 

a) 5 
b) 6 
c) 7 
d) 8 

ANS: 


Q17. What is the output of the following program?

main(){ 
int *ptr1,*ptr2; 
ptr1=(int *)malloc(sizeof(int)); 
ptr2=func(20,10,ptr1); 
printf("%d %d
",*ptr1,*ptr2); 

int *func(int a, int b, int *c) 
int x=a+b; 
*c=a-b; 
return(&x); 

a) Bug in the code. 
b) No Bugs prints correctly 
c) Error 
d)  None of the above. 

ANS: Bug in the code. 


Q18). What is the output of the following program?

int main() { 
int i = 10, j ; 
if ( ( j = ~i ) < i ) 
printf ( "True" ) ; 
else 
printf ( "False" ) ; 

a) True
b) False 
c) Compiler Dependent 
d) None of the above. 

ANS: True 


Q19. How many bytes are required to create a 3*3 matrix using double pointer 

ANS: 12 


Q20. What is the output of the following program?

take int=4,float=8,char=1 
main() { 
FILE *fp; 
printf("%d
",sizeof(fp) ); 

a) 2 
b) 4 
c) Compiler dependent 
d) Error 

ANS: 


Q21. What is the output of the following program?

main() 
int a=10,20; 
a^=b^=a^=b; 
printf("%d
%d
",a,b); 

a) a=20,b=10 
b) a=10,b=20 
c) Syntax error 
d) Unpredictable 

ANS: a=20 b=10 


Q22. What is the output of the following program?

main() { 
int i=10; 
switch(i) { 
case 10: printf("Hello "); { 
case 1 : printf("World "); 
case 5: printf("Hello World "); 

a) Hello 
b) Hello 
c) Hello World Hello World 
d) Syntax Error. 

ANS: Hello World Hello World 


Q23. What is the output of the following program?

main() { 
char str1[]="Hello"; 
char str2[]="Hello"; 
if ( str1==str2 ) 
printf("True
"); 
else 
printf("False
"); 

a) True 
b) False 
c) Error 
d) Unpredictable. 

ANS: False. 



Q24. What is the output of the following program?

main() 
# include 
int i = 10 ; 
printf("%d
", i/2 ); 

a) 10 
b) 5 
c) error 
d) warning. 

ANS: 5 


Q25. What is the output of the following program?

#include 
# pragma pack(2) 

struct SIZE { 
int i; 
char ch ; 
double db ; 
} ; 
main () { 
printf ( "%d
",sizeof(struct SIZE) ); 

a) 12 
b) 14 
c) 16 
d) 8


  
   






FreshersLive - No.1 Job site in India. Here you can find latest 2016 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.

closepop
closepop