Mistral Paper Aptitude - General
Mistral Solutions C Section 1. What does the following program print?#include <stio.h> int sum,count;void main(void){< BR> for(count=5;sum+=--count;)printf("%d",sum);}a. The pgm goes to an infinite loop b. Prints 4791010974 c. Prints 4791001974d. Prints 5802112085 e. Not sure 2. What is the output of the following program?#include <stdio.h>void main(void){int i;< BR> for(i=2;i<=7;i++)printf("%5d",fno());}fno(){staticintf1=1,f2=1,f3;return(f3=f1+f2,f1=f2,f2=f3);}a. produce syntax errors b. 2 3 5 8 13 21 will be displayed c. 2 2 2 2 2 2 will be displayedd. none of the above e. Not sure 3. What is the output of the following program?#include <stdio.h>void main (void){int...