1. Which of the following fopen statements are illegal? a) fp = fopen(“abc.txt”, “r”); b) fp = fopen(“/home/user1/abc.txt”, “w”); c) fp = fopen(“abc”, “w”); d) none of the mentioned AnswerAnswer: d [Reason:] None. 2. What does the following segment of code do? fprintf(fp, “Copying!”); a) It writes “Copying!” into the file pointed by fp b)…