C Programming MCQ Questions and Answers

Take Exam

C Programming MCQ questions with answers are a favorite in programming interview questions with answers for software placement exams like TCS, Infosys, and Wipro. The C language forms the base for all modern programming, focusing on data types, control structures, loops, arrays, and pointers. This section provides a curated set of multiple-choice questions designed to test your coding logic and understanding of C fundamentals. Practice these questions regularly to build confidence and accuracy in technical interviews and coding assessments.

C Programming MCQ

Showing 10 of 25 questions

21. If an error occurs, the function fseek() returns

  • non-zero
  • zero
  • no value
  • -1
Show Answer Report

22. The function ftell(fptr)returns

  • the beginning position of the file represented by fptr
  • the end position of the file represented by fptr
  • the current position of the file represented by fptr
  • the middle jposition of the file epresented by fptr
Show Answer Report

23. The value returned by successful action of ftell(fptr) is

  • -1
  • 0
  • long int value representing the current file position
  • MAX_INT
Show Answer Report

24. The value returned by ftell() if an error occurs is

  • -1
  • 0
  • Positive value
  • MIN_INT
Show Answer Report

25. The function call f seek (fp, 0, 0); is same as

  • fp = fopen()
  • rewind (fp)
  • fclose(fp);
  • ftell(fp);
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test