ICSE Class 10 Computer Applications
Question 18 of 30
Solved Sample Paper 4 — Question 18
Back to all questions 18
Question Question 1(xviii)
Read the following text and choose the correct answer:
Byte streams are used to perform input and output of 8-bytes. They are used to read bytes from the input stream and write bytes to the output stream. Mostly, they are used to read or write raw binary data.
Which of these class is used to read and write bytes in a file?
- FileReader
- FileWriter
- FileInputStream
- InputStreamReader
FileInputStream
Reason — FileInputStream class is used to read and write bytes in a file.