.NET framework Is A Software Development Framework From Microsoft. It Provides A Controlled Programming Environment Where Software Can Be Developed, Installed And Executed On Windows-based Operating Systems.
1.What is .NET?
NET is an integral part of many applications running on Windows and provides common functionality for thoseapplications to run. This download is for people who need .NET to run an application on their computer. For developers,the .NET Framework provides a comprehensive and consistent programming model for building applications that havevisually stunning user experiences and seamless and secure communication.
2.How many languages .NET is supporting now?
When .NET was introduced it came with several languages.VB.NET,C#,COBOLandPerl, etc.
3.What is an IL?
Intermediate Language is also known as MSIL (Microsoft Intermediate Language) or CIL (Common IntermediateLanguage). All .NET source code is compiled to IL. IL is then converted to machine code at the point where the softwareis installed, or at run-time by a Just-In-Time (JIT) compiler.
4.What is code access security (CAS)?
Code access security (CAS) is part of the .NET security model that prevents unauthorized access of resources andoperations, and restricts the code to perform particular tasks.
5.What is Difference between NameSpace and Assembly?
Assembly is physical grouping of logical units, Namespace, logically groups classes.Namespace can span multiple assembly.
6.Mention the execution process for managed code.
A)Choosing a language compilerB) Compiling the code to MSILC) Compiling MSIL to native codeD) Executing the code.
7.What is Microsoft Intermediate Language (MSIL)?
The .NET Framework is shipped with compilers of all .NET programming languages to develop programs. There areseparate compilers for the Visual Basic, C#, and Visual C++ programming languages in .NET Framework. Each .NETcompiler produces an intermediate code after compiling the source code. The intermediate code is common for alllanguages and is understandable only to .NET environment. This intermediate code is known as MSIL.
8.What is managed extensibility framework?
Managed extensibility framework (MEF) is a new library that is introduced as a part of .NET 4.0 and Silverlight 4. It helpsin extending your application by providing greater reuse of applications and components. MEF provides a way for hostapplication to consume external extensions without any configuration requirement.
9.Which method do you use to enforce garbage collection in .NET?
The System.GC.Collect() method.
10.What is the difference between int and int32.
There is no difference between int and int32. System.Int32 is a .NET Class and int is an alias name for System.Int32.
11.What are tuples?
Tuple is a fixed-size collection that can have elements of either same or different data types. Similar to arrays, a usermust have to specify the size of a tuple at the time of declaration. Tuples are allowed to hold up from 1 to 8 elementsand if there are more than 8 elements, then the 8th element can be defined as another tuple. Tuples can be specified asparameter or return type of a method.
12.What is the full form of ADO?
The full form of ADO is ActiveX Data Object.
13.What are the two fundamental objects in ADO.NET?
DataReader and DataSet are the two fundamental objects in ADO.NET.
14.What is the meaning of object pooling?
Object pooling is a concept of storing a pool (group) of objects in memory that can be reused later as needed.Whenever, a new object is required to create, an object from the pool can be allocated for this request; thereby,minimizing the object creation. A pool can also refer to a group of connections and threads. Pooling, therefore, helps inminimizing the use of system resources, improves system scalability, and performance.
15.Mention the namespace that is used to include .NET Data Provider for SQL server in .NET code.
The System.Data.SqlClient namespace.
16.Which architecture does Datasets follow?
Datasets follow the disconnected data architecture.
17.What is the role of the DataSet object in ADO.NET?
One of the major component of ADO.NET is the DataSet object, which always remains disconnected from the databaseand reduces the load on the database.
18.Which property is used to check whether a DataReader is closed or opened?
The IsClosed property is used to check whether a DataReader is closed or opened. This property returns a true value if aData Reader is closed, otherwise a false value is returned.
19.Name the method that needs to be invoked on the DataAdapter control to fill the generated DataSet with data?
The Fill() method is used to fill the dataset with data.
20.What are the pre-requisites for connection pooling?
There must be multiple processes to share the same connection describing the same parameters and security settings.The connection string must be identical.
21.Which adapter should you use, if you want to get the data from an Access database?
OleDbDataAdapter is used to get the data from an Access database.
22.What are different types of authentication techniques that are used in connection strings to connect .NET applications with Microsoft SQL Server?
The Windows Authentication option
The SQL Server Authentication option
23.What are the parameters that control most of connection pooling behaviors?
Connect TimeoutMax Pool SizeMin Pool SizePooling
24.What is AutoPostBack?
If you want a control to postback automatically when an event is raised, you need to set the AutoPostBack property ofthe control to True.
25.What is the function of the View State property?
The ASP.NET 4.0 introduced a new property called View StateMode for the Control class. Now you can enable the viewstate to an individual control even if the view state for an ASP.NET page is disabled.
26.Which properties are used to bind a DataGridView control?
The Data Source property and the Data Member property are used to bind a DataGridView control.
27.What is the basic difference between ASP and ASP.NET?
The basic difference between ASP and ASP.NET is that ASP is interpreted; whereas, ASP.NET is compiled. This impliesthat since ASP uses VBScript; therefore, when an ASP page is executed, it is interpreted. On the other hand, ASP.NETuses .NET languages, such as C# and VB.NET, which are compiled to Microsoft Intermediate Language (MSIL).
28.In which event are the controls fully loaded?
Page load event guarantees that all controls are fully loaded. Controls are also accessed in Page_Init events but you willsee that view state is not fully loaded during this event
29.How can we identify that the Page is Post Back?
Page object has an "IsPostBack" property, which can be checked to know that is the page posted back.
30.Which is the parent class of the Web server control?
The System.Web.Ul.Control class is the parent class for all Web server controls.
31.What are the advantages of the code-behind feature?
i)Makes code easy to understand and debug by separating application logic from HTML tagsii)Provides the isolation of effort between graphic designers and software engineersiii)Removes the problems of browser incompatibility by providing code files to exist on the Web server and supportingWeb pages to be compiled on demand.
32.Define a multilingual Web site.
A multilingual Web site serves content in a number of languages. It contains multiple copies for its content and otherresources, such as date and time, in different languages.
33.What is IIS? Why is it used?
Internet Information Services (IIS) is created by Microsoft to provide Internet-based services to ASP.NET Webapplications. It makes your computer to work as a Web server and provides the functionality to develop and deployWeb applications on the server. IIS handles the request and response cycle on the Web server. It also offers the servicesof SMTP and FrontPage server extensions. The SMTP is used to send emails and use FrontPage server extensions to getthe dynamic features of IIS, such as form handler.
34.How can you register a custom server control to a Web page?
You can register a custom server control to a Web page using the @Register directive.
35.Which ASP.NET objects encapsulate the state of the client and the browser?
The Session object encapsulates the state of the client and browser.
36.Differentiate globalization and localization?
The globalization is a technique to identify the specific part of a Web application that is different for different languagesand make separate that portion from the core of the Web application. The localization is a procedure of configuring aWeb application to be supported for a specific language or locale.
37.What is ViewState?
The ViewState is a feature used by ASP.NET Web page to store the value of a page and its controls just before postingthe page. Once the page is posted, the first task by the page processing is to restore the ViewState to get the values ofthe controls.
38.Which method is used to force all the validation controls to run?
The Page.Validate() method is used to force all the validation controls to run and to perform validation.
39.What does the Orientation property do in a Menu control?
Orientation property of the Menu control sets the horizontal or vertical display of a menu on a Web page. By default,the orientation is vertical.
40.Differentiate between client-side and server-side validations in Web pages.
Client-side validations take place at the client end with the help of JavaScript and VBScript before the Web page is sentto the server. On the other hand, server-side validations take place at the server end.
41.What is garbage collection?
Garbage collection is a heap-management strategy where a run-time component takes responsibility for managing thelifetime of the memory used by objects. This concept is not new to .NET - Java and many other languages/runtimes haveused garbage collection for some time.
42.What is serialization?
Serialization is the process of converting an object into a stream of bytes.Deserialization is the opposite process, i.e.creating an object from a stream of bytes. Serialization/Deserialization is mostly used to transport objects (e.g. duringremoting), or to persist objects (e.g. to a file or database).
43.Where do you add an event handler?
It's the Attributesproperty, the Add function inside that property.e.g.btnSubmit.Attributes.Add("onMouseOver","someClientCode();")
44.What do you mean by authentication and authorization?
Authentication is the process of validating a user on the credentials(username and password) and authorizationperforms after authentication. After Authentication a user will be verified for performing the various tasks, It access islimited it is known as authorization.
45.What is portable executable (PE) ?
The file format used for executable programs and for files to be linked together to form executable programs
46.Differences between DLL and EXE?
.exe
1.These are outbound file.2.Only one .exe file exists per application.3..Exe cannot be shared with other applications.
.dll1.These are inbound file .2.Many .dll files may exists in one application.3. .dll can be shared with other applications.
47.What is shadowing?
Shadowing is either through scope or through inheritance. Shadowing through inheritance is hiding a method of a baseclass and providing a new implementation for the same. This is the default when a derived class writes animplementation of a method of base class which is not declared as overridden in the base class. This also serves thepurpose of protecting an implementation of a new method against subsequent addition of a method with the samename in the base class.’shadows’ keyword is recommended although not necessary since it is the default.
48.What is Method Overriding? How to override a function in C#?
An override method provides a new implementation of a member inherited from a base class. The method overriddenby an override declaration is known as the overridden base method. The overridden base method must have the samesignature as the override method.Use the override modifier to modify a method, a property, an indexer, or an event. You cannot override a non-virtual orstatic method. The overridden base method must be virtual, abstract, or override.
49.Differences between dataset.clone and dataset.copy?
Clone - Copies the structure of the DataSet, including all DataTable schemas, relations, and constraints. Does not copyany data. Copy - Copies both the structure and data for this DataSet.
50.What is the managed and unmanaged code in .net?
The .NET Framework provides a run-time environment called the Common Language Runtime, which manages theexecution of code and provides services that make the development process easier. Compilers and tools expose theruntime's functionality and enable you to write code that benefits from this managed execution environment. Code thatyou develop with a language compiler that targets the runtime is called managed code; it benefits from features such ascross-language integration, cross-language exception handling, enhanced security, versioning and deployment support,a simplified model for component interaction, and debugging and profiling services.
51.What is an assembly?
Assemblies are the building blocks of .NET Framework applications; they form the fundamental unit of deployment,version control, reuse, activation scoping, and security permissions. An assembly is a collection of types and resourcesthat are built to work together and form a logical unit of functionality. An assembly provides the common languageruntime with the information it needs to be aware of type implementations. To the runtime, a type does not existoutside the context of an assembly.
52.How do you create a permanent cookie?
Setting the Expires property to MinValue means that the Cookie never expires.
53.What’s a Windows process in .NET?
Windows process is an application that’s running and had been allocated memory in .NET
54.What is Delegation in .NET?
A delegate acts like a strongly type function pointer. Delegates can invoke the methods that they reference withoutmaking explicit calls to those methods.