Tuesday, November 21, 2017

.Net Questions


The beginner section will help you to get a better understanding of Angular Fundamentals like Modules, Templates, Metadata, Databinding, Routing and AngularJS vs. Angular2.x. By the end of this section, you will have a strong foundation in Angular.
  • master
  • model
  • tempdb
  • msdb





How Garbage Collector works.
When to use forms authentication and when to use windows authentication.
What are session types. InProc and OutProc. When to use this types.
what is string interpolation in c#
how to call a recursive method in lambda expression in c#
What are the default  MS SQL system databases?



Friday, November 17, 2017

Simple Unit Test Example Project

Please add the below two projects into the your solution and try once. You will get to understand unit test in simple way.Unit Test Projects

Friday, November 10, 2017

Linq Basic Interview Questions

Difference between IEnumerable and IQueryable
Difference between Select and SelectMany
Difference between First and FirstOrDefault

Monday, September 18, 2017

In below code finally statement get executed?


 public class A
    {
        public bool Print()
        {
            try
            {
                throw new ArgumentNullException();
            }
            catch (Exception ex)
            {
                return true;
            }
            finally
            {
            }
            return true;
        }
    }

The answer is yes. Statements within the finally block will be executed always.

Dot Net interview questions

  • What are promises in javascript.
  • What is deferred object in javascript.
  • How to inject the dependency.
  • What is IOC? And Why?
  • What is Event bubbling
  • What is the use of private constructor in a class.
  • Can we have a constructor in abstract class. Why
  • Difference between singleton and static class.
  • Can you execute ddl statements in sp. Yes
  • Is view table changes will reflect main table data. Yes
  • What is SOA architecture.
  • what is localization and globalization
  • Enums advantages and disadvantages
  • Sql Server Inbuilt functions
  • Single SQL statement to update the data in a column to vice versa for gender data
  • ASP.Net MVC Page life cycle;
  • how to make asp.net application to mvc
  • Cast and Convert function in sql sever
  • Difference between clustered index and non-clustered index
  • Difference between string and string builder
  • What is difference between constant and read only property.
  • When document.ready fired
  • When to use interface and abstract class
  • Scenario of value type to reference type & vice versa
  • Explain filters in MVC
  • Scenario of State server and sql server session modes and its properties in web.config
  • How the variables and its values binds when you try to access at server
  • What is nullable data types
  • Difference between Abstract method and virtual method
  • What is Async delegate
  • What is Func delegate
  • What is Anonymous function
  • Extension methods in linq
  • Using block statement usage why
  • Finalize method usage
  • Dispose usage
  • Difference between Finalize & Dispose Method
  • Supressfinalizer method usage
  • What is the database name for outproc server session type: ASPState, and tempdb
  • Message contract usage and what messages you will send
  • Difference between IEnumerable and IEnumerator
  • What is the advantage of using partial classes
  • What is HTTPModule
  • How many ways we can consume WCF Service
  • How to implement security in WCF
  • What are Modules in Angular JS.
  • What are services in Angular JS.
  • Can we have two submit button in a form of mvc. If yes, how to identify from button event if fired.
  • What is attribute routing in MVC? What is the advantage.
  • What are extension methods in .Net
  • what is dependency injection
  • What is filters
  • What is lamda expression
  • What is delegate
  • What is LINQ
  • What Routing
  • What is serialization?
  • What is difference between ASP.net and MVC
  • What are the first methods we calls in asp.net and mvs 3.0
  • What is reflection?
  • What is design pattern, factory pattern, single pattern?
  • What is Authentication?
  • How many types of Authentications are available?
  • Internal mechanism how the control value will be accessed in controller?
  • What is proxy in WCF?

Does abstract class contain constructors?

Yes. Abstract class can have the constructor.

Tuesday, August 11, 2015

String or binary data would be truncated

Error: String or binary data would be truncated

When you see the above error, this is related to SQL Server column data size specific error.

You might specified length of the string is less but you are passing more than what you specified.


Just you have to increase the size of the column for which ever column you are getting the error.

Check the table structure for the table which you are trying to insert. The data which you are trying to insert is more then the length which you specified for the same column. I think you'll find that the length of one or more fields is NOT big enough to hold the data you are trying to insert. For example, if the country name field is a varchar(6) field, and you try to put more than 6 characters in to it, you will get this error.