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?

54.
Choose the correct statement about the WriteLine()?

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();
}

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.