Interview Questions - Part 4

Some more interview questions...


1. How do you handle WCF Exceptions?

2. If there is an object called Employee and this a property in this object you need to modify before handling the exception then how do I do it?

3. How does duplex calls happen in WCF?

4. Can we have same endpoint name with different contracts in WCF?

5. What is the difference between ClientCallBack and pooledDuplexBinding?

6. How do you consume overloaded methods in WCF?

7. How do you use Isolation modes in WCF?

8. In ASP.NET, how do you upload a 10MB file in FTP?

Refer here

9. Can Struct in C# has constructors? If Yes, can I pass parameters in constructors?

Structs share most of the same syntax as classes, although structs are more limited than classes:

Within a struct declaration, fields cannot be initialized unless they are declared as const or static.

A struct cannot declare a default constructor (a constructor without parameters) or a destructor.

Structs are copied on assignment. When a struct is assigned to a new variable, all the data is copied, and any modification to the new copy does not change the data for the original copy. This is important to remember when working with collections of value types such as Dictionary.

Structs are value types and classes are reference types.

Unlike classes, structs can be instantiated without using a new operator.

Structs can declare constructors that have parameters.

A struct cannot inherit from another struct or class, and it cannot be the base of a class. All structs inherit directly from System.ValueType, which inherits from System.Object.

A struct can implement interfaces.

A struct can be used as a nullable type and can be assigned a null value.

10. How can I use Finalize in Struct?

11. How can I inherit a Struct?

12. How do I handle concurrency mode in C# code. If I use lock, then if a resource locked the object and went for a break, how can I do it?

13. How can I implement Isolation levels using C# code and also in database side?

14. How do we access stored procedures in Entity Framework?

Comments

Popular posts from this blog

Interview Questions to Ask the Employer

Place .NET DLL in GAC

Windows Communication Foundation - FAQ