CSharp your skills -1 online Test

2 methods are defined as below:

public void Add(int a, int b)

{

Console.WriteLine(a + b);

}

public void Add(params int[] val)

{

int sum=0;

for (int i = 0; i < val.Length; i++)

{

sum += val[i];

}

Console.WriteLine(sum);

}

Which method will be called on following statements :

1. Add ();

2. Add ( 4,6);

3. Add (10, 20, 30);


object obj = null;

string strobj = obj.ToString();

string objstr = Convert.ToString(obj);

What will be value of strobj and objstr ?


XYZ class A

{

XXX method1()

......

}

class B : A

{

override method1 ()

{

base.method1();

}

}

what should be replaced with XXX and XYZ?


How does compiler recognizes method having variable number of argumets - for example GetSum ( params int [ ] values) ?


Nullable<int> intvalue = null ;

Console.WriteLine( intvalue ?? 50 ) ;


int x = 10 ;

x = x * 5 + 4 ;

int y = 10 ;

y * = 5 + 4 ;

Values of x and y will be





























































Description:

Test to sharp your C# skills.

Tags:

C#

Comments
Master
By: Master
691 days 19 hours 22 minutes ago

Very difficult. Hope if you have formatted the words properly so that we could have read the questions properly.

Master
By: Suriya Akter
691 days 19 hours 14 minutes ago

hi master, i am pleased to learn that u attempted my test. I would like to know by wat way the formatting can be simplified.

Master
By: Suriya Akter
680 days 4 hours 33 minutes ago

i think its due to presentation on screen( small windows) that is making the words so close.

Suriya Akter
By: Suriya Akter
686 days 5 hours ago

Rahul, how many Q u have attempted and it is not production code, its testing code. Nowhere it is mentioned that it is the full length program. Its just for testing.

NimishaT
By: NimishaT
680 days 23 hours 28 minutes ago

marked all correct answers :)

NimishaT
By: Suriya Akter
680 days 15 hours 49 minutes ago

Congratulations :)Nimisha.You are the first one to get all correct answers. If you have attempted questions by not running in VS

Srinivas
By: Srinivas
680 days 15 hours 15 minutes ago

Please give us the detailed explanation about each and every question in the tests rather than giving naked answers. And post them in correct format which will help us for better understanding.
We appreciate your great effort.
Thanks,
Srinivas.

Srinivas
By: Suriya Akter
680 days 4 hours 32 minutes ago

explore srinivas. you will get more...

gs
By: gs
430 days 21 hours 25 minutes ago

good questions..submit more lke that..but we should find out a way of answer explanation so that it will be clear in every mind............

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-3
5 Questions | 68 Attempts

Taste C
6 Questions | 392 Attempts

Give live classes, create & sell online courses

Try it free Plans & Pricing

Connect