C Programming MCQ Questions and Answers
Practice ModeShowing 10 of 25 questions
Q11
If fopen Q fails, it returns
Answer: Option B
Q12
The function fclose() is
Answer: Option C
Q13
The action of connecting a program from a file is obtained by the function
Answer: Option A
Q14
The value returned by fcloseQ, if an error occurs is
Answer: Option C
Q15
The function(s) used for reading a character from a file is (are)
Answer: Option C
Q16
The function(s) used for writing a character to a file is (are)
Answer: Option C
Q17
The function(s) used for reading formatted input data from a file is (are)
Answer: Option B
Q18
The function used for random access of a file is
Answer: Option A
Q19
What is the value of origin used in fseek(fptr,position, origin);? to represent end of file.
Answer: Option C
Q20
What is the value of origin used in fssek(fptr, position, origin);? to represent the beginning of the file
Answer: Option A