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

Subex Limited Technical test paper

Posted on :16-04-2016

Q1. What will be the output of the following program?


Note: Space is represented by 0.


int main(int argc,char *argv[])
{
char *s=“Hello,world”;printf(“%10s”,s);
}


a) Hello,world0000000000 
b) Hello,worl 
c) 0000000000Hello,world 
d) Hello,world


ANS: d

Q2. In the below program the get New String function is defined and it returns a character pointer. This function is called from main function as defined below. What will be the output of this program?


char *getNewString( )
{static char xxx[1024];return xxx;}
main( )
{
charg[]=First;char *p;strcpy(getNewString( ),g);
p=getNewString( );
strcpy(p,Second);
printf(The string is : %s,getNewString( ));
}



a) The string is : First 
b) The string is : FirstSecond 
c) The string is
d) Unknown, since the scope of the pointer is local


ANS: c

Q3. What will be output of the following recursive program?


void printme(int *p)
{int q=*p;if(*p>0)
{q=*(p);printme(p);}printf(%d,q);}void main(void)
{int x[5]={0,16,12,8,1};
printme(&x[4]);}



a) 0,0,1,2,3, 
b) 4,8,12,16,0, 
c) Error cannot pass element pointer
d) 0,16,12,8,4



Q4. What is the output of the following line in 32-bit OS?


printf(%d%d ,sizeof(a),sizeof(a));


a) 4,2 
b) 1,1 
c) 1,2 
d)2,2



Q5. What is the output of following program?


#include
#include
main( )
{char str[]=Welcome to Subex Systems;
char *ptr;
ptr=strtok(str,);
while(ptr) ptr=strtok(NULL,);
printf(%s ,str);}



a) Welcome to Subex Systems 
b) Error, since NULL is passed to strtok
c) NULL 
d) Welcome



Q6. Study the program below and predict the output


#include
int compute(int (*)(int),int);
int cube(int);
main( )
{printf(%d ,compute(cube,4));}
/* no syntax errors please…have fun!!*/
int compute(int(*f),int in)
{int res=0,i;for(i=1;i<=in;i++);res+=(*f)(i);return(res);}
int cube(int n)
{return (n*n*n);}



a) 150 
b) 64 
c) 125 
d) 225



Q7. The output of the following program is


#include
main( )
{
int i=-1;while(i<5)
{
#ifdef _X_printf(%d,i++);#endif
}
}


a) Compiler error
b) -1,0,1,2,3,4, 
c) Infinite loop 
d) 1,2,3,4



Q8. The output of the following program is


#include
void f(char* p);
main( )
{
char *p=(char*)l;f(p);printf(%s ,p);
}
void f(char *p)
{
char sz[]=hello;p=sz;
}



a) Runtime error 
b) NULL 
c) hello 
d) Compiler error



Q9. The output of the following program is


#include
void f(char **p)
{
char *sz=hello;*p=sz;
}
main( )
{
cha
r *p=NULL;f(&p);printf(%s ,p);
}



a) Compiler error 
b) Runtime error 
c) hello 
d) 1



Q10. The output of the following program is


#include
main( )
{
int n;if(n<=-1)
{
int x=1else
{
int x=1;

}

 

a) Compiler error

b) Unpredictable output

c) 10

d) 1



Q11. The correct declaration of a pointer  function to function returning a char” and taking no parameters is


a) char func( )* func;
b) char (*func)( );
c) char* ( ) func;
d) None of the above



Q12. The output of the following program is


#include
#define arbit 5
main( )
{
printf(%d ,arbit
}


a) 5 
b) 6 
c) Compiler error 
d) Runtime error



Q13. Determine which of the following are valid identifiers


i. Return
ii.123 45 6789
iii. Record_1
iv. $Tax


a) iii & iv 
b) i & iii 
c) i,ii & iv 
d) i & iv



Q14. The output of the following program is


#include
struct x {int a; char *b;} *p;
main( )
p=(struct x*) 100;
printf(%d,%d,%d ,p,p+1,&p[2])
;


a) 100,108,116 
b) Compilation error 
c) 100,104,108 
d) 100,103,106




Q15. What is the output of the following?


main( )
int a[5]={5,1,15,20,25};
int i=1;
printf( %d%d,a++,a[++i]);


a) 2,16 
b) 1,15 
c) 1,20 
d) 2,1



Q16. What is the output of the following


main( )
int a[5]={5,1,15,20,25};
int i=1;
printf(“ %d%d”,a,a[i++i]);



a) 2,16 
b) 1,15 
c) 1,20 
d) 2,16



Q17. static float table [2][3]={{1,1,1,2,1,3},{2,1,2,2,2,3}};What is the value of *(*(table)+1)+1?



a) 2,2 
b)1,2 
c) 2,1 
d) 2,3



Q18. What is the output of the following program?


#include
main( )
int i,j,x=0;
for(i=0;i<5;++i)
for(j=0;j
x+=(i+j-1);
printf(“%d”,x);
break;



a) 1 
b) 0 
c) 2 
d) None of the above



Q19. Consider the following
i. Pointer to a function that accepts 3 integer arguments and returns a floating-point quantity
float(8pf)(int a, int b,int c)

ii. Pointer to a function that accepts 3 pointers to integer quantities as arguments an returns a pointer to a floating-point quantity


float *(*pf)(int *a,int *b,int *c);



a) i is true, ii is true 
b) i is true,ii is false
c) i is false, ii is false 
d) i is false, ii is true



Q20. Consider the following statements


i. An integer quantity can be added to or subtracted from a pointer variables.
ii. Two pointer variables can be added.
iii. A pointer variable can be multiplied by a constant
iv. Two pointer variables of same type can be subtracted.

a) Only ii & iv are true 
b) Only iii is false 
c) Only ii is false 
d) Only i & ii are true



Q21. If p is a pointer ,what does p mean?


a) Same as *(*p+i)
b) Same as *(p+i)
c) Same as *p+i
d) None of the above


  
   






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