Www.dotnetspider.com



Page Life CycleDifference between Server.Transfer and Response.Redirect (Transfer will carry the objects)Does page are state or stateless? (stateless)-How to pass a variable from one page to another page?-State Mechanisms (Session, Cache, Viewstate, HiddenVariables)Viewstate variables are stored as Hidden. Is it True? (True)Validation controls (Required field, Regular expression, Range, Compare, Custom, Summary)-Email validation will be on Regular expression validator. True? (True)Purpose of Panel (To enable and disable the controls together in a page)How to convert a HTML control to ASP Control? (by adding runat=server to the HTML control)How to read the value from App.config/web.config? (System.configuration.configurationsettings appsettings(“TAG”))How to add web reference? (Solution Explorer -> Right click -> Add Web Reference)LINQ (Language INtegrated Query - for faster execution)Types of Authentication (Windows, Forms, Integrated Windows, None)How do you debug an Web application? Attach the aspnet_wp.exe process to the DbgClr debugger.What are three test cases you should go through in unit testing? 1.?????? Positive test cases (correct data, correct output).2.?????? Negative test cases (broken or missing data, proper handling).3.?????? Exception test cases (exceptions are thrown and caught properly).Can you change the value of a variable while debugging a C# application? Yes.? If you are debugging via Visual , just go to Immediate window.Purpose of throw.ex? (To catch the exception at the called method)Types of Execution methods (ExecuteScalar, ExecuteNonQuery, ExecuteReader)Types of Connection objects in (SQL Server - for SQL Server only, OLE DB - for Access, Oracle, Excel)Types of Data container (DataGrid, GridView, Repeater)Databinding with complete codeImportant Objects: DataAdapter, CommandASSEMBLYWhat is the smallest unit of execution in .NET?an Assembly.Where Assembly version stored? (Manifest [assembly:AssemblyVersion("2.3.25.1")] - Assembly Version (Major-App change.Minor-Module change.Build-Every Build.Revision-Random))How is the DLL Hell problem solved in .NET? Assembly versioning allows the application to specify not only the library it needs to run (which was available under Win32), but also the version of the assembly.What are the ways to deploy an assembly? An MSI installer, a CAB archive, and XCOPY command.What is a satellite assembly? When you write a multilingual or multi-cultural application in .NET, and want to distribute the core application separately from the localized modules, the localized assemblies that modify the core application are called satellite assemblies.What?happens in memory when you?Box and Unbox a value-type?Boxing converts?a value-type to a reference-type, thus storing the object on the heap.? Unboxing converts a reference-type to a value-type, thus storing the value on the stack.VSSHave you worked on any version control tool?How you have done check-in, check-out?DeploymentTypes of deployments (Executables, Web setup, Merge)IISVersion of IISWhy do we need IIS? (for Application server)C#Does C# support multiple-inheritance? No.Can you inherit multiple interfaces?Yes.? .NET does support multiple interfaces.What’s the difference between System.String and System.Text.StringBuilder classes?System.String is immutable.? System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed.Can you store multiple data types in System.Array?No.What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?The Clone() method returns a new array (a shallow copy) object containing all the elements in the original array.? The CopyTo() method copies the elements into another existing array.? Both perform a shallow copy.? A shallow copy means the contents (each array element) contains references to the same object as the elements in the original array.? A deep copy (which neither of these methods performs) would create a new instance of each element's object, resulting in a different, yet identacle object.What’s the C# syntax to catch any possible exception?A catch block that catches the exception of type System.Exception.? You can also omit the parameter data type in this case and just write catch {}.?What’s an abstract class?A class that cannot be instantiated. ?An abstract class is a class that must be inherited and have the methods overridden. ?An abstract class is essentially a blueprint for a class without any implementation.?What is an interface class?Interfaces, like classes, define a set of properties, methods, and events. But unlike classes, interfaces do not provide implementation. They are implemented by classes, and defined as separate entities from classes.What is the difference between a Struct and a Class?Structs are value-type variables and are thus saved on the stack, additional overhead but faster retrieval.? Another difference is that structs?cannot inherit.How is method overriding different from method overloading? When overriding a method, you change the behavior of the method for the derived class.? Overloading a method simply involves having another method with the same name within the class.What’s a delegate? A delegate object encapsulates a reference to a method.What’s a multicast delegate? A delegate that has multiple handlers assigned to it.? Each assigned handler (method) is called.Is XML case-sensitive? Yes.What’s the difference between the Debug class and Trace class? Documentation looks the same. ?Use Debug class for debug builds, use Trace class for both debug and release builds.OOPSPillars of OOPSHave you used any concepts in Project?Types of Polymorphism (Run time-Interface, Compile time-Inheritance)Difference between Abstract and Interface (Abstract has concrete methods whereas Interface has method declaration)(Inheritance, Abstract, Polymorphism, Encapsulation)FRAMEWORKTypes of FrameworkFeatures of Framework 3.5Garbage Collector - How? (GC.collect, GC.SuppressFinalize)CLRHow Framework supports multi languages? (CLR)WCF, WPFFramework architecture (Language->CLR->OS)SQL SERVER 2005Types of Languages: DDL (Create, Alter), DML (insert, update), DCL (select)Why Stored Procedure required (Faster as it is stored on Server)How to find the best query? (Query Execution Plan)Why MSDB required? (DTS, Backup, DB objects storage)Sample Stored Procedure (Check Syntax and ask more question)Explain ACID rule of thumb for transactions.A transaction must be:1.?????? Atomic - it is one unit of work and does not dependent on previous and following transactions.2.?????? Consistent - data is either committed or roll back, no “in-between” case where something has been updated and something hasn’t.3.?????? Isolated - no transaction sees the intermediate results of the current transaction).4.?????? Durable - the values persist if the data had been committed even if the system crashes right after.Difference between Char & nchar datatypeN stands for national character, and it is meant for Unicode data. Using Unicode data types, a column can store any character defined by the Unicode Standard, which includes all of the characters defined in the various character sets. Unicode data types take twice as much storage space as non-Unicode data types.What connections does Microsoft SQL Server support? Windows Authentication (via Active Directory) and SQL Server authentication (via Microsoft SQL Server username and password).?PROJECTArchitecture of the Project (Presentation Layer, Business Layer, Database Layer)Why layers (For maintenance and better productivity) ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download