--:--









Quiz for File operations fprintf

Course: C Language | Subject: Unit 8 | Topic: File Handling



Logo

Q1: What is the primary purpose of fprintf()?

Logo

Q2: Which header file declares fprintf()?

Logo

Q3: What is the return type of fprintf()?

Logo

Q4: What does fprintf(fp, "%d", 100) do?

Logo

Q5: Can fprintf() write strings to a file?

Logo

Q6: What happens if fprintf() fails to write?

Logo

Q7: Which of these is a valid fprintf() usage?

Logo

Q8: Can fprintf() be used for console output?

Logo

Q9: What format specifier prints a floating point number?

Logo

Q10: Is fprintf() type-safe?

Logo

Q11: Can fprintf() write multiple variables in one call?

Logo

Q12: Which format specifier is used for a character?

Logo

Q13: Can fprintf() write binary data?

Logo

Q14: What must be done before using fprintf()?

Logo

Q15: Can fprintf() cause buffer overflow?

Logo

Q16: Is fprintf() thread-safe?

Logo

Q17: What is the difference between fprintf() and printf()?

Logo

Q18: Which argument is mandatory for fprintf()?

Logo

Q19: Can fprintf() write to stderr?

Logo

Q20: Does fprintf() add a newline automatically?

Are you ready to start test? Set your time limit