Wednesday 30 November 2016

.NET INTERVIEW QUESTIONS

NET is an integral part of many applications running on Windows and provides common functionality for those applications 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 have visually stunning user experiences and seamless and secure communication.

When .NET was introduced it came with several languages.
VB.NET,
C#,
COBOL
and
Perl, etc.

Intermediate Language is also known as MSIL (Microsoft Intermediate Language) or CIL (Common Intermediate Language). All .NET source code is compiled to IL. IL is then converted to machine code at the point where the software is installed, or at run-time by a Just-In-Time (JIT) compiler.

Code access security (CAS) is part of the .NET security model that prevents unauthorized access of resources and operations, and restricts the code to perform particular tasks.

Assembly is physical grouping of logical units, Namespace, logically groups classes.
Namespace can span multiple assembly.

A)Choosing a language compiler
B) Compiling the code to MSIL
C) Compiling MSIL to native code
D) Executing the code.

The .NET Framework is shipped with compilers of all .NET programming languages to develop programs. There are separate compilers for the Visual Basic, C#, and Visual C++ programming languages in .NET Framework. Each .NET compiler produces an intermediate code after compiling the source code. The intermediate code is common for all languages and is understandable only to .NET environment. This intermediate code is known as MSIL.

Managed extensibility framework (MEF) is a new library that is introduced as a part of .NET 4.0 and Silverlight 4. It helps in extending your application by providing greater reuse of applications and components. MEF provides a way for host application to consume external extensions without any configuration requirement.

The System.GC.Collect() method.

There is no difference between int and int32. System.Int32 is a .NET Class and int is an alias name for System.Int32.

Tuple  is a fixed-size collection that can have elements of either same or different data types. Similar to arrays, a user must have to specify the size of a tuple at the time of declaration. Tuples are allowed to hold up from 1 to 8 elements and if there are more than 8 elements, then the 8th element can be defined as another tuple. Tuples can be specified as parameter or return type of a method.

The full form of ADO is ActiveX Data Object.

DataReader and DataSet are the two fundamental objects in ADO.NET.

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 in minimizing the use of system resources, improves system scalability, and performance.

The System.Data.SqlClient namespace.

Datasets follow the disconnected data architecture.

One of the major component of ADO.NET is the DataSet object, which always remains disconnected from the database and reduces the load on the database.

The IsClosed property is used to check whether a DataReader is closed or opened. This property returns a true value if a Data Reader is closed, otherwise a false value is returned.

The Fill() method is used to fill the dataset with data.

There must be multiple processes to share the same connection describing the same parameters and security settings. The connection string must be identical.

OleDbDataAdapter is used to get the data from an Access database.

The Windows Authentication option
The SQL Server Authentication option

Connect Timeout
Max Pool Size
Min Pool Size
Pooling

If you want a control to postback automatically when an event is raised, you need to set the AutoPostBack property of the control to True.

The ASP.NET 4.0 introduced a new property called ViewStateMode for the Control class. Now you can enable the view state to an individual control even if the view state for an ASP.NET page is disabled.

The DataSource property and the DataMember property are used to bind a DataGridView control.

The basic difference between ASP and ASP.NET is that ASP is interpreted; whereas, ASP.NET is compiled. This implies that since ASP uses VBScript; therefore, when an ASP page is executed, it is interpreted. On the other hand, ASP.NET uses .NET languages, such as C# and VB.NET, which are compiled to Microsoft Intermediate Language (MSIL).

Page load event guarantees that all controls are fully loaded. Controls are also accessed in Page_Init events but you will see that view state is not fully loaded during this event

Page object has an "IsPostBack" property, which can be checked to know that is the page posted back.

The System.Web.Ul.Control class is the parent class for all Web server controls.

i)Makes code easy to understand and debug by separating application logic from HTML tags
ii)Provides the isolation of effort between graphic designers and software engineers
iii)Removes the problems of browser incompatibility by providing code files to exist on the Web server and supporting Web pages to be compiled on demand.

A multilingual Web site serves content in a number of languages. It contains multiple copies for its content and other resources, such as date and time, in different languages.

Internet Information Services (IIS) is created by Microsoft to provide Internet-based services to ASP.NET Web applications. It makes your computer to work as a Web server and provides the functionality to develop and deploy Web applications on the server. IIS handles the request and response cycle on the Web server. It also offers the services of SMTP and FrontPage server extensions. The SMTP is used to send emails and use FrontPage server extensions to get the dynamic features of IIS, such as form handler.

You can register a custom server control to a Web page using the @Register directive.

The Session object encapsulates the state of the client and browser.

For more information, please visit : www.boosterfoxindia.com

No comments:

Post a Comment

Popular Posts