File Input Output - Study Mode

[#81] Which type of files can't be opened using fopen()?
Correct Answer

(D) none of the mentioned

[#82] What will be the output of the following C function when EOF returns? int fputs(char *line, FILE *fp)
Correct Answer

(D) When an error occurs

[#83] A conversion specification %7.4f means . . . . . . . .
Correct Answer

(A) print a floating point value of maximum 7 digits where 4 digits are allotted for the digits after the decimal point

[#84] puts() function adds newline character.
Correct Answer

(A) True

[#85] The . . . . . . . . function reads atmost one less than the number of characters specified by size from the given stream and it is stored in the string str.
Correct Answer

(B) fgets()