File Handling And Input Output In C Sharp - Study Mode
[#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?
Correct Answer
(B) int Read(byte[] buffer, int offset, int count)
[#2] Which method of the character stream class returns the numbers of characters successfully read starting at index?
Correct Answer
(C) int ReadBlock(char[ ] buffer, int index, int count)
[#3] Which method among the following returns the integer if no character is available?
Correct Answer
(A) int peek()
[#4] Choose the correct statement about the WriteLine()?
Correct Answer
(D) All of the mentioned
[#5] Select the method which returns the number of bytes from the array buffer:
Correct Answer
(B) int Write(byte[] buffer, int offset, int count)