iGET

C Programming - MCQ Practice Questions

C questions in placement tests and university exams are rarely about syntax alone. Most of what you will find here is output prediction, pointer arithmetic, arrays and strings, structures and unions, storage classes, recursion, and file handling. The explanations walk through memory behaviour step by step, which is usually where the confusion sits rather than in the code itself.

972 questions | 100% Free

Q.21Easy

In C file handling, what does rewind(fp) do?

Q.22Easy

Which file opening mode allows both reading and writing without truncating existing content?

Q.23Easy

What does fseek(fp, 0, SEEK_END) accomplish?

Q.24Easy

Which function returns the current position of file pointer?

Q.25Easy

Which mode opens file in text format with write permission only?

Q.26Easy

Which function is used to check if the end-of-file (EOF) has been reached in C file handling?

Q.27Easy

In a file processing application, what is the primary difference between 'wb' and 'w' file modes?