1. What will be the content of ‘file.c’ after executing the following program?
2. What will be the output of the program ?
A. k == 1 is TRUE
B. 1 == 1 is TRUE
C. 1 == 1 is FALSE
D. K == 1 is FALSE
3. What will be the output of the program ?
A. char *str = “char *str = %c%s%c; main(){ printf(str, 34, str, 34);}”; main(){ printf(str, 34, str, 34);}
B. char *str = %c%s%c; main(){ printf(str, 34, str, 34);}
C. No output
D. Error in program
4. If the file ‘source.txt’ contains a line “Be my friend” which of the following will be the output of below program?
A. friend
B. frien
C. end
D. Error in fseek();
5. What will be the output of the program ?
A. 3.00
B. 3.15
C. 3.2
D. 3