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

Soliton Technical Interview Questions

Posted on :24-03-2016

Q1. What is the output of the following programs?

a) int main()
{
printf(%d,func(13));
retuen 0;
}
int func(int num)
{
static int num0=18;
functobecalled=(num0%5<5/2)?func1:((num0%5>5/2)?func2:NULL); if(functobecalled!=NULL)
{
num0=num0+2;
num0=num0+functobecalled(num+num0);
}
return num0;
}
int func1(int num)
{
static int num1=31;
functobecalled=(num1%5<5/2)?func1:((num1%5>5/2)?func2:NULL); num1=num1+2;
num1=num1+functobecalled(num+num1);
return num1;
}
int func2(int num)
{
static int num2=32;
functobecalled=(num2%5<5/2)?func1:((num2%5>5/2)?func2:NULL); num2=num2+2;
num2=num2+functobecalled(num+num2);
return num2;
}


b) int main()
{
int arr[5]={27,17,7,9,1},i=0,j;
for(j=0;j<5;j++)
{
sample((i<4)?(arr+i+1):(arr+i));
i=i+2;
i=i%5;
}
printf(%d sum=,sum(arr));
}
int sample(int *num)
{
int *tempno;
tempno=num;
num++;
*num=*tempno;
}
int sum(int arr)
{
int sum=0,i;
for(i=0;i<4;i++)
{
sum=sum+arr[i]);
}
}


Q2. If the program (myprog) is run from the command line as myprog 1 2 3, What would be the output?


Q3. In the following code;
  
#include   
main() 
{ FILE *fp; fp= fopen(trial,r); } 

fp points to:
  
a) The first character in the file. 
b) A structure which contains a char pointer which points to the first character in the file. 
c) The name of the file. 
d) None of the above.


Q4. In which line of the following, an error would be reported?
  
1. #define CIRCUM(R) (3.14*R*R);
2. main()
3. {
4. float r=1.0,c;
5. c= CIRCUM(r);
6. printf(
%f,c);
7. if(CIRCUM(r))==6.28)
8. printf(
Gobbledygook);
9. }

a) line 1 
b) line 5 
c) line 6 
d) line 7
  

Q5. What would be the output of the following program?

main()
{ int i=4; switch(i)
{ default:
printf(
A mouse is an elephant built by the Japanese);
case 1:
printf( Breeding rabbits is a hair raising experience);
break;
case 2:
printf(
Friction is a drag);
break;
case 3:
printf(
If practice make perfect, then nobodys perfect); }

a) A mouse is an elephant built by the Japanese 
b) Breeding rabbits is a hare raising experience
c) All of the above 
d) None of the above


Q6. During which time we use size of command? 

ANS: runtime


Q7. We should not read after a write to a file without an intervening call to 

fflush(), fseek() or rewind()
< TRUE/FALSE>
  
ANS: True


Q8. What is the type of the variable b in the following declaration?
  
#define FLOATPTR float*
FLOATPTR a,b;
  
a) float 
b) float pointer 
c) int 
d) int pointer


Q9. What is the output of the following program?

#define SQR(x) (x*x)
main()
{ int a,b=3; a= SQR(b+2); printf(%d,a); }
  
a) 25 
b) 11 
c) error 
d) garbage value


Q10. In the following code, in which order the functions would be called?

a= f1(23,14)*f2(12/4)+f3();

a) f1, f2, f3 
b) f3, f2, f1
c) The order may vary from compiler to compiler 
d) None of the above
  

Q11. Point out the error, if any, in the following program 

main()  
{ int a=10,b; a>= 5 ? b=100 : b=200; 
printf(%d,b); }
  
ANS: lvalue required in function main(). The second assignment should be written in parenthesis as follows:
  
a>= 5 ? b=100 : (b=200);


Q12. Point out error, if any, in the following program:

main()
{ int i=1; switch(i)
{ case 1: printf(
Radioactive cats have 18 half-lives);
break;
case 1*2+4:
printf(
Bottle for rent -inquire within); break; }

ANS: No error. Constant expression like 1*2+4 are acceptable in cases of a switch.


Q13. Name the error which occurs when we write on a page

a) segment fault 
b) permission fault 
c) page fault


Q14. Where we use DFD (Data flow design)?

a) structural languages 
b) object oriented languages
c) UML 
d) all of the above


Q15. What type of operating system is Unix? 

a) pre-emptive 
b) non-preemptive 
c) batch

ANS: pre-emptive.


Q16. Question related to find post fix _expression.


Q17. There was one pointer _expression related question.


Q18. To convert 1s complement to 2s complement and vice versa.


  
   






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