When a Break statement is used inside two nested for loops, control comes out of which loop, the inner or the outer for loop? (I.e. does it break from all the present loops?)

When a Break statement is used inside two nested for loops, control comes out of which loop, the inner or the outer for loop? (I.e. does it break from all the present loops?)

You would know that System.Object is the parent class of all .NET classes; In other words, all types in .NET (whether implicit, explicit, or user-created) derive from the System.Object class. What are the various methods provided to System.Object’s deriving classes/types?

When is it beneficial to use an IoC Container?

What’s a static class and when should you use one?

When and how do you use reflection in your projects?

Where and when do you use an Assert.AreEqual statement?

Can you name three ways to pass parameters to a method in C#?

Write a C# method to total all the even numbers in an array of ints?

What is Operator Overloading and how does it work?

What is the difference between dynamic type variables and object type variables in C#?

How does C# handle encapsulation?

Explain nullable types in C#.

Explain the role of structs in C#. Why would you choose to define a type as a struct instead of a class?

Write down your own hashtable class without using the built-in classes.

Write a method to perform a binary search on an array without using built-in methods.

Draw a database schema for a blog. Each user only has one blog, each blog has many categories, each category has many posts, and each post can belong to more than one category. Ask your applicant to write queries to pull specific information out.

(Event handlers) Create a class with a custom event handler, create another class which hooks onto the custom event handler.

(XML) Load an XML document and select all of the nodes with properties x, y, and z.

(Functional programming) Create a function that accepts another function as a parameter. A Map or Fold function works really good for this.

(Reflection) Write a function which determines if a class has a particular attribute.

(Regex) Write a regular expression which removes all tags from a block of HTML.

Did you find this post useful? I hope you liked this article. Please share with me your valuable suggestions and feedback.