Q.No.1

How do you write a floating-point number to a binary file in C?

Q.No.2

Which function is used to write formatted data to a file in C?

Q.No.3

Which function reads a formatted string from a file in C?

Q.No.4

What function is used to read a single line from a file in C?

Q.No.5

How do you write an integer to a binary file in C?

Q.No.6

What is the function used to read a character from a file in C?

Q.No.7

What does the function fwrite(&variable, sizeof(variable), 1, file) do in C?

Q.No.8

How do you open a file for appending text in C?

Q.No.9

What is the purpose of the mode 'b' in fopen('file.bin', 'rb'); in C?

Q.No.10

How do you open a file for both reading and writing in binary mode in C?


About Simple Quiz

We're here to make learning fun and accessible. Whether you're a student, teacher, or just someone who loves quizzes, you can find something for you here. Test your knowledge across a wide range of subjects and see how much you know!


Get to know more


Start A Quiz

Do you want to start quiz mode? In this mode, you’ll answer against a timer. When the timer runs out, answers auto-submit, and you get feedback.

Start A Quiz

Do you want to start quiz mode? You'll answer against a timer. When the timer runs out, answers auto-submit