Microsoft Placement Papers

Microsoft Placement Papers : here you can find the all latest previous year question paper of Microsoft with answers . You can download Microsoft placement papers in PDF format with just a single click.All these questions are collected from the students who had already appeared in exams and mostly asked questions in exam. Just try to Practice these questions and solve it.

Microsoft placement Papers

Ques 1 )  Find output ………….
Int *ptr=&const;
………… ((((( ans:error)))))


Ques 2 ) Find output ………..
Function(i=10);
…………… (((((ans:error)))))


Ques 3 ) #define SWAP(x,y) t=x;x=y;y=t;
main()
{ int x=5,y=6;
if (x>y)
SWAP(x,y);
Printf(“x=%d y=%d\n”,x,y);
}

Ans ((( note that the function SWAPis not within braces))))


Ques 4 ) sum(int x)
{int t;
if(x<=1) return (1);
t=sum(x-3)+sum(x-1);
return (t);
}

if 6 is passed to the function, what is the value returned to the calling function.

(((((((ANS===== 9)))))))))

[ans:don’t remember the actual _expression.if the _expression is the same the ans was nine]


Ques 5 ) what is int (*ptr)[]()?


Ques 6 ) Main()
{int a[]={0,2,4,6,8};
int *ptr;
ptr=a;
printf(“%d”, *((char *) ptr+4));
}
find output
8 2 4 6

(((((( ANS==== 4)))))))


Ques 7 ) which takes the same memory space regardless of the type of operating system?

Char* char int float


Ques 8 ) main()
{ int I=3;
while(I–)
{int I=100;
I–;
Printf(“%d”, I);
}
find output.
100 99 98 99 98 97 99 99 99 error

((((( ANS== 9999 99)))


Ques 9 ) main()
{char ch;
for(ch=’0’;ch<=255;ch++)
printf(“%c”, ch);
}

((((((([ans : infinite loop))))))


Ques 10 ) some program using variable b which was not initialized so

((((ans error))))


Hope you find these Microsoft Placement Papers useful !

Find More placement Papers Here !

Check The Latest Jobs Here ! 


Leave a Comment

Your email address will not be published. Required fields are marked *