CSharp your skills-3 online Test

What will be output of this code:

static void Main(string[] args)

{

String first = "dotnetexpert2010";

string second = "atGmailDotCom";

Console.WriteLine( "{0}+{1} ", "hi" , first +second );

}


What output will this code give

public static void Main( )

{

short x = 1, y = 2;

short z = x+ y ;

Console.WriteLine( z );

}


What is the output of this code snippet

enum colors

{

red =2,

blue=10,

green

}

static void Main(string[] args)

{

colors ct = colors.green;

int a = ( int ) ct;

Console.WriteLine( a );

}


What output will this code give

enum colors

{

red ,

black =10 ,

blue

}

static void Main(string[] args)

{

colors ct = colors.red;

Console.WriteLine( ct.ToString( ) );

}


" this " keyword refer to a pointer which is available to

























































Comments
PRATEEK sharma
By: PRATEEK sharma
590 days 12 hours 11 minutes ago

plz schedule c class for oops and array plzzzzzzzzzzzzzzzz

PRATEEK sharma
By: Suriya Akter
589 days 6 hours 3 minutes ago

Thnx prateek for your comment. I couldn't get what you want to say? Do you meant to say, material on OOPs and array?

Bhakti
By: Bhakti
564 days 9 hours 48 minutes ago

i am confused with the 1st ans?
i dnt hv the software so i cant check could u tell me how comes ?

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no:


Area code Number
Subjects you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
9 Followers
Tests: 4

Your Facebook Friends on WizIQ

More Tests By Author

CSharp your skills -1
6 Questions | 628 Attempts

Taste C
6 Questions | 392 Attempts

Give live classes, create & sell online courses

Try it free Plans & Pricing

Connect