51. Which among the following attempts to read up to count bytes into buffer starting at buffer[offset], returning the number of bytes successfully read?
52. Which method of the character stream class returns the numbers of characters successfully read starting at index?
53. Which method among the following returns the integer if no character is available?
54. Choose the correct statement about the WriteLine()?
55. Select the method which returns the number of bytes from the array buffer:
56. Which of these classes is used to create an object whose character sequence is mutable?
57. What will be the output of the following C# code?
static void Main(string[] args)
{
Console.WriteLine("This is a Console Application:");
Console.Write("Please enter your lucky number:");
string val1 = Console.ReadLine();
int val2 = System.Convert.ToInt32(val1, 10);
val2 = val2 * val2;
Console.WriteLine("square of number is:" +val2);
Console.Read();
}
static void Main(string[] args)
{
Console.WriteLine("This is a Console Application:");
Console.Write("Please enter your lucky number:");
string val1 = Console.ReadLine();
int val2 = System.Convert.ToInt32(val1, 10);
val2 = val2 * val2;
Console.WriteLine("square of number is:" +val2);
Console.Read();
}
58. Which of these classes are used by Byte streams for input and output operation?
59. Which among the following is used for storage of unmanaged memory aspects?
60. Select the namespace on which the stream classes are defined?
Read More Section(File Handling and Input Output in C Sharp)
Each Section contains maximum 100 MCQs question on File Handling and Input Output in C Sharp. To get more questions visit other sections.