C Programming MCQ Questions and Answers

Practice Mode
Showing 10 of 25 questions
Q21
If an error occurs, the function fseek() returns
  • A non-zero
  • B zero
  • C no value
  • D -1
Answer: Option B
Q22
The function ftell(fptr)returns
  • A the beginning position of the file represented by fptr
  • B the end position of the file represented by fptr
  • C the current position of the file represented by fptr
  • D the middle jposition of the file epresented by fptr
Answer: Option C
Q23
The value returned by successful action of ftell(fptr) is
  • A -1
  • B 0
  • C long int value representing the current file position
  • D MAX_INT
Answer: Option C
Q24
The value returned by ftell() if an error occurs is
  • A -1
  • B 0
  • C Positive value
  • D MIN_INT
Answer: Option A
Q25
The function call f seek (fp, 0, 0); is same as
  • A fp = fopen()
  • B rewind (fp)
  • C fclose(fp);
  • D ftell(fp);
Answer: Option B
Questions and Answers for Competitive Exams Various Entrance Test