Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Teaching Interviews:Academic CoordinatorChemistry TeacherChild Care TeacherChildren TutorComputer Science TeacherDrawing TeachingDriving InstructorDriving TeacherElectronic Science TeacherElementary TeacherEnglish Curriculum LeadEnglish TeacherGymnastic TeacherHeadmistressHigh SchoolICT TeacherInformation Technology TeacherJunior School TeacherKG TeacherMath TeachingMedical SchoolMilitary TrainingMontessori CoordinatorMuseums TeacherMusic TeacherNavigation TeacherNursery Assistant NurseOnline TeacheingOnline TeachingPainting TeacherPhysics TeacherPreschool TeacherPreschool TeacherPrimary TeachingPrincipalSafety TeacherSchool NurseSchool TeacherScience TeacherSpecial EducationSpecial Education InstructorStudent Services & Support OfficerTeacherTeacher HeadTeachingTeaching Assistant
Copyright © 2018. All Rights Reserved
Science Teacher Interview Question:
Explain what are the measures that can be adopted to avoid errors in File Processing?
Submitted by: MuhammadFollowing are the measures that can be adopted to avoid errors in file processing-
ferror() function can be used to detect any error during file accessing.This function will return a zero when there is no error or vice-versa.
FILE *fptr
if(ferror(fptr)==0)
printf(“n The file is available for processing”);
else
printf(“n Error in accessing file”);
To verify whether a file exists in the disks,the following definitions will help.
if(fptr==NULL)
printf(“n No content or file does not exist”);
Submitted by: Muhammad
ferror() function can be used to detect any error during file accessing.This function will return a zero when there is no error or vice-versa.
FILE *fptr
if(ferror(fptr)==0)
printf(“n The file is available for processing”);
else
printf(“n Error in accessing file”);
To verify whether a file exists in the disks,the following definitions will help.
if(fptr==NULL)
printf(“n No content or file does not exist”);
Submitted by: Muhammad
Copyright 2007-2025 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.