Question
a.
Attempts to readup to count bytes into buffer starting at buffer[offset].
b.
Writes a single byte to an output stream
c.
Sets the current position in the stream to the specified offset from specified origin and hence returns the new position
d.
None of the mentioned
Posted under C# programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Select the action of the method long seek()?
Similar Questions
Discover Related MCQs
Q. Which among the following attempts to read up to count bytes into buffer starting at buffer[offset], returning the number of bytes successfully read?
View solution
Q. Which of these classes is used to read and write bytes in a file?
View solution
Q. Which of these data types is returned by every method of OutputStream?
View solution
Q. Which of these classes is used for input and output operation when working with bytes?
View solution
Q. Which among the following is used for storage of memory aspects?
View solution
Q. Which among the following is used for storage of unmanaged memory aspects?
View solution
Q. Which property among the following represents the current position of the stream?
View solution
Q. Choose the filemode method which is used to create a new output file with the condition that the file with same name must not exist.
View solution
Q. Choose the filemode method which is used to create a new output file with the condition that the file with same name if exists will destroy the old file:
View solution
Q. Which of these is a method used to clear all the data present in output buffers?
View solution
Q. Which of these is a method used for reading bytes from the file?
View solution
Q. From which of these classes, the character based output stream class Stream Writer is derived?
View solution
Q. The advantages of using character stream based file handling are?
View solution
Q. Which among the following classes are used to perform the character based file operations?
View solution
Q. Which method of the character stream class returns the numbers of characters successfully read starting at index?
View solution
Q. Which method of character stream class returns the numbers of characters successfully read starting at count?
View solution
Q. Which method among the following returns the integer if no character is available?
View solution
Q. Which of the following is used to perform all input & output operations in C#?
View solution
Q. Which of the following is a type of stream in C#?
View solution
Q. In the given constructor declaration for character based file operation what does ‘path’ and ‘bool specifies?
StreamWriter(string path, bool append)
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C# programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!