Summary of ASP. NET pen questions

Source: Internet
Author: User

ASP. NET pen exam is an ASP. NET programmer's interview experience. Generally, you are asked to fill in two tables. One is your detailed information table, and the other is the answer to the interview questions.

Both of them should pay attention to whether there are any content in the anti-positive aspect. If you test your server, there are two types, that is, connecting the program to the database or some basic algorithms for Binary Search and recursion ), companies generally test whether your basic skills are solid. If your basic skills are good, you don't have to worry about it!

The following are some ASP. NET pen questions, hoping to help you prepare for the interview.

1. There are several usage methods for new

First: new Class ();

Method 2: Overwrite

Public new XXXX (){}

Third: the new constraint specifies that any type parameter in the generic class declaration must have a common non-parameter constructor.

2. How to copy an array to the arrayList

Foreach (object o in array) arrayList. Add (o );

3. What data sources can the datagrid. datasouse connect to? [dataset, datatable, dataview]

Dataset, datatable, dataview, IList

4. Overview of reflection and serialization

Reflection: 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 a method of the type or access its fields and attributes.

Serialization: serialization is the process of converting an object into a format that is easy to transmit. For example, you can serialize an object and Use HTTP to transmit the object between the client and the server over the Internet. At the other end, deserialization reconstructs the object from the stream.

5. Overview of o/r mapping principles

Use reflection to configure database table ing

6. Class Members have () accessible forms

Accessible form? Don't understand.

Accessibility: public, protected, private, internal

7. What are the characteristics of classes modified with sealed?

The sealed modifier is used to prevent other classes from being derived from the modified class. If a sealed class is specified as the base class of another class, a compile-time error occurs. The sealed class cannot be an abstract class at the same time.

The sealed modifier is mainly used to prevent unintentional derivation, but it can also promote some runtime optimization. Specifically, because the sealed class will never have any derived class, the call to the virtual function Member of the sealed class instance can be converted to a non-virtual call for processing.

8. List the five main objects in ADO. NET and briefly describe them.

Connection, command, dataReader, trans, dataset...

9. After executing the following code:

String strTemp = "abcdefg ";

Int I System. Text. Encoding. Default. GetBytes (strTemp). Length;

Int j = strTemp. Length;

Q: I = (14); j = (11)

I = (14); j = (11) Two Chinese bytes

In 10. C #, string str = null and string str = "". Use text to describe the differences. (Key Points: detailed memory space allocation)

String str = "" allocate space

11. detail the similarities and differences between class and struct in. NET!

Class: put in? Put struct in?

Struct value transfer

Classes have many similarities with structures: structures can implement interfaces and have the same member types as classes. However, the structure is different from the class in several important aspects: the structure is a value type rather than a reference type, and the structure does not support inheritance. The schema values are stored on the stack or inline ". Careful programmers can sometimes use structures intelligently to enhance performance.

12. Overview of remoting and webservice in. NET and its practical application.

Remote logical call. The remoing interface can only be used in. net.

13. What is code-behind technology?

Aspx and cs

14. Overview of the three-tier architecture

Web/business/dataaccess

15.asp.net: How to Implement the MVC mode, for example!

Web/business/dataaccess

ASP. NET pen questions will be introduced here, I hope to help you, the answer is for reference only.

  1. Development Analysis of ASP. NET Custom Controls
  2. Analysis on the lifecycle of ASP. NET Server controls
  3. Analysis on three methods of ASP. NET reading Excel files
  4. Import SQL Server database using ASP. NET Excel
  5. Import SQL Server using ASP. NET Excel

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.