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
What does the fclose() function do?
Which function writes formatted output to a file?
What will fseek(fp, 0, SEEK_END) do?
Which function reads formatted data from a file?
What is returned by fopen() if file opening fails?
What does the third parameter of fseek() represent?
Which header file must be included to use file handling functions in C?
What does the 'w+' mode do when opening a file with fopen()?
Which function is used to write a single character to a file?
What is the return value of feof(fp) when the end of file is reached?
In C file handling, what does rewind(fp) do?
Which file opening mode allows both reading and writing without truncating existing content?
What does fseek(fp, 0, SEEK_END) accomplish?
Which function returns the current position of file pointer?
Which mode opens file in text format with write permission only?
Which function is used to check if the end-of-file (EOF) has been reached in C file handling?
In a file processing application, what is the primary difference between 'wb' and 'w' file modes?
Which header file is required for dynamic memory allocation functions?
What does calloc() do differently from malloc()?
Which function is used to free dynamically allocated memory?