ASP. NET interview materials [1]

Source: Internet
Author: User
What are the main improvements of ADO. NET and ADO?
A: ADO is stored in recordset, while ADO. NET is represented in dataset. Ado. NET provides a dataset and data adapter, which facilitates distributed processing and reduces resource consumption on database servers.
What are the main advances in ASP. NET compared with ASP?
A: ASP. NET implements Object-Oriented Programming and pre-compiled servers. Code Unlike ASP, interpretation and execution improves performance, code separation is easy to manage, can be customized and scalable, powerful development work, and better security mechanisms.
What is the delegate in C? Is an event a delegate?
A: delegate is essentially a "method interface", which is equivalent to a function pointer in C/C ++. Of course, delegate is safer than function pointer and is usually used for event processing in C. The event is not a delegate, but the nature of the event determines Program Therefore, the logic for processing events in C # is encapsulated as a delegate.
How to copy an array to arrayist
A: foreach (Object ARR in array) arrayist. Add (ARR );
List the five main objects in ADO. NET and briefly describe them.
A: connection object, command execution command and stored procedure, datareader forward read-only data stream, dataadapter adapter, support for addition, deletion query, dataset data-level object, equivalent to one or more tables in the memory.
3-layer architecture Overview
A: presentation layer (USL), business logic layer (BLL), and data access layer (DAL)
What is packing and unpacking? What is overload?
A: to convert a value type to a reference type, rather than a reference type to a value type.
Overload means a method with the same name and number of parameters. The return value can be the same.
Brief Introduction to WebService
A: The WebService can be described as a function that can be deployed on the web and can be called by any application or other services. The so-called service means that the system provides a set of interfaces and uses the functions provided by the system through interfaces. WebService can provide any enterprise to customer, enterprise to enterprise, services required by point-to-point or department-to-department communications, such as services that a company can connect to another company over the network, thus directly transferring orders.
What are the main object-oriented ideas?
Answer: inherited multi-state Encapsulation
List the XM technologies you know and their applications.
A: XML can be used for web pages (XSLT), XML can be used as a database, and XML can be used to save the serialization of objects (Web services seem to be based on this ).
What are the similarities and differences between interfaces and classes in C.
A: The interface can be inherited multiple times. The class only has a single inheritance. The interface emphasizes that you must implement it, and the method without implementation is similar to the virtual class.
New Keyword usage
A: (1) the new operator is used to create objects and call constructors.
(2) The new modifier is used to hide the inherited members from the base class members.
(3) The new constraint is used to restrict the types of parameters that may be used as type parameters in a generic declaration.
What data sources can be connected to by datasouse of DataGrid?
A: datatabe, dataview, dataset, and dataviewmanager. Any component that implements the ilistsource interface and any component that implements the ilist Interface
Overview reflection and serialization
A: Reflection: the Common Language Runtime loader manages application domains. Such management includes loading each assembly to the corresponding application domain and controlling the memory layout of the type hierarchy of each set. The Assembly contains modules, while the module contains types and types including members. Reflection provides encapsulated assembly, module, and type objects. You can use reflection to dynamically create instances of the type, bind the type to an existing object, or obtain the type from an existing object. Then, you can call methods of the type or access its fields and attributes.
Serialization: serialization is the process of converting the object state to a format that can be maintained or transmitted. In contrast to serialization, deserialization converts a stream into an object. These two processes can be combined to easily store and transmit data.
Overview of O/R Mapping principles
A: Use reflection to configure ing between objects and database tables.
What are the accessibility levels?
A: pubic access is unrestricted.
Protected access is limited to include classes or types derived from include classes.
Internal access is limited to the current Assembly.
Protected internal access is limited to the current Assembly or type derived from the include class.
Private access is limited to the inclusion type.
What are the characteristics of the sealed modifier?
A: The sealed modifier can be applied to classes, instance methods, and attributes. The sealed class cannot be inherited. The sealing method will override the methods in the base class, but it cannot be further rewritten in any derived class. When applied to methods or attributes, the sealed modifier must always be used with override.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.