iGET

C Programming - MCQ Practice Questions

Practice free C Programming multiple-choice questions with detailed answers and explanations. Perfect for competitive exam preparation.

978 questions | 100% Free

Q.221Easy

What does the fclose() function do?

Q.222Easy

Which function writes formatted output to a file?

Q.223Easy

What will fseek(fp, 0, SEEK_END) do?

Q.224Easy

Which function reads formatted data from a file?

Q.225Easy

What is returned by fopen() if file opening fails?

Q.226Easy

What does the third parameter of fseek() represent?

Q.227Easy

Which header file must be included to use file handling functions in C?

Q.228Easy

What does the 'w+' mode do when opening a file with fopen()?

Q.229Easy

Which function is used to write a single character to a file?

Q.230Easy

What is the return value of feof(fp) when the end of file is reached?

Q.231Easy

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

Q.232Easy

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

Q.233Easy

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

Q.234Easy

Which function returns the current position of file pointer?

Q.235Easy

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

Q.236Easy

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

Q.237Easy

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

Q.238Easy

Which header file is required for dynamic memory allocation functions?

Q.239Easy

What does calloc() do differently from malloc()?

Q.240Easy

Which function is used to free dynamically allocated memory?