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
1047 days 9 hours 45 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
1047 days 9 hours 37 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
1035 days 18 hours 56 minutes ago

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

Suriya Akter
By: Suriya Akter
1041 days 19 hours 23 minutes 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
1036 days 13 hours 51 minutes ago

marked all correct answers :)

NimishaT
By: Suriya Akter
1036 days 6 hours 11 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
1036 days 5 hours 38 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
1035 days 18 hours 55 minutes ago

explore srinivas. you will get more...

gs
By: gs
786 days 11 hours 47 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.

or fill this simple form
Name:
Your Email:
Password:
Country:
Contact no.:


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


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
Suriya Akter
Software professional having 6+ yrs of exp in dev- C,C++,C#.Net
12 Followers
Tests: 5

Your Facebook Friends on WizIQ

More Tests By Author

C# Basic quiz
5 Questions | 167 Attempts

LINQ test- 1
5 Questions | 110 Attempts

CSharp your skills-3
5 Questions | 89 Attempts

Taste C
6 Questions | 401 Attempts

Explore Similar Courses

Learn C# Programming

Price:$200
$59

SAVE 70%

Connect