1. Which of the following causes an error? a) Trying to read a file that doesn’t exist b) Inability to write data in a file c) Failure to allocate memory with the help of malloc d) All of the mentioned AnswerAnswer: d [Reason:] None. 2. What is the purpose of the function? int ferror(FILE *fp)…