Strings

Q1: What will be the output of the C#.NET code snippet given below?
namespace AptitudeCrackConsoleApplication
{
    class SampleProgram
    {
        static void Main(string[ ] args)
        {
            string str= 'Hello World!';
            Console.WriteLine( String.Compare(str, 'Hello World?' ).GetType() );
        }
    }
}

A 0

B 1

C String

D Hello World?

E System.Int32

ANS:E - System.Int32

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.