String

Q1: Which of the following will be the correct output for the C#.NET code snippet given below?
String s1 = 'ALL MEN ARE CREATED EQUAL';
String s2;
s2 = s1.Substring(12, 3); 
Console.WriteLine(s2);

A REA

B CR

C CRE

D CREATED

E ARE

ANS:B - CRE

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.