MCQOPTIONS
Saved Bookmarks
This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your Csharp knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
WHICH_AMONG_THE_FOLLOWING_ATTEMPTS_TO_READ_UP_TO_COUNT_BYTES_INTO_BUFFER_STARTING_AT_BUFFER[OFFSET],_RETURNING_THE_NUMBER_OF_BYTES_SUCCESSFULLY_READ??$ |
| A. | int ReadByte() |
| B. | int Read(byte[] buffer ,int offset ,int count) |
| C. | Void WriteByte(byte value) |
| D. | None of the mentioned |
| Answer» C. Void WriteByte(byte value) | |
| 2. |
Select the action of the method long seek()? |
| 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 |
| Answer» D. None of the mentioned | |
| 3. |
Select the statements which define the stream. |
| A. | A stream is an abstraction that produces or consumes information |
| B. | A stream is linked to a physical device by the I/0 system |
| C. | C programs perform I/O through streams |
| D. | All of the mentioned |
| Answer» E. | |