techpreparation-homepage

Home  Interview Questions  Certifications  Aptitude Questions  Tutorials  Placement Papers  Search  Resume  Soft Skills  Video  Forum  Blog


IT Placement Papers

3i-Infotech Placement Papers
Accenture Placement Papers
Infosys Placement Papers
Adobe Placement Papers
                              .........More

Technical Interview Questions
Networking Interview Questions
C Interview Questions
                              .........More

Resume Guide for Jobseekers
Resume - Action words
Resume To-Do List
                              .........More

Soft Skills
Communication Skills
Leadership Skills
                              .........More

 

 

  

Dsq Placement Paper


21. What's the output of the following program
main()
{
int z=3;
printf("%d %d ",z,main());
}
a)prints a value 3 b)prints junk value c)error message d)infinite loop

22) main()
{
int i=3,j=5;
while (i--,J--)
{
printf("%d %d".i,j);
}
}
The loop will be executed
a)3 times b)5times c)8times d)infinite times

23) main()
{
int i=3,j=5
If(i--,j--)
printf("%d %d ",i,j);
}
The output of the program for (i,J)is
a)3,5 b)3,4 c)2,4 d)2,5
ans=B

24) main()
{
int i=3
printf ("%d %d %d ",++i,i-,i+=5);
}
The the out put of the program is
a)8,8,8 b)4,3,8 c)3,2,7 d)4,4,9
ans=B

25) main()
{
int times =5;
int i=3;
int j=4;
int k=34;
i=j+k;
while(times --)
{
i=times
j=times
k=times
}
printf("%d %d %d " ,i,j,k)
}
THe output of the praogram is (i,j,k)
a)19,9,35 b)38,42,80 c)43,47,85 d)15,14,41
ans=C
26) main()
{
int num =32765;
while (num++);
printf(" %d ",num)
}
what"s the out put ofthe program
a)prints all the number above 32765 including the number 32765
b)prints all the number above 32765 excluding the number 32765
ans=B.

27) main()
{
float k=3.4156
printf("%f %f ",float(k),c(k))
}
The output of the program
a) 3.4156 ,3.4156 b)4,5 c)3,4 d)3.45 3.40
ans=C.

28) main()
{
int bounce =4;
printf ("total number of bounce =%d",bounce ++);
}
The out put of the program is
ans=D (stoP)

29) main()
{
int number =25;
char name ='A'
printf("The addition of the name and the number is %o "name +_number)
}
the output of the program is
a)compiler error
b)run time error
ans= A

Page No :   1          2         3

Check Aptitude Interview Questions for more Aptitude Questions

Check Placement Papers for more IT Companies Paper.