During the interview, you are usually asked to fill in two tables. One is your detailed information table, and the other is the answer to the questions.
Both of them should pay attention to whether there are content in the anti-positive aspect. If you test your server, there are usually two types, that is Program Connect to the database or some basic Algorithm (Binary Search, recursion, etc.), the company generally tests whether your basic skills are solid. If your basic skills are good, you don't have to worry about it!
Asp.net interview questions
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. Execute the followingCodeAfter:
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 difference. . (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
1. What are the main object-oriented ideas?
A: This question is too broad and I don't know what to say.
2. What is a user control in Asp.net?
A: The user control is. the ascx extension can be dragged to different pages for calling to save code. for example, login may be available on multiple pages and can be used as a user control, however, one problem is that the relative paths of the images in the directories after the user control is dragged to different levels will become inaccurate, and you need to adjust them by writing your own methods.
3. What is an application domain? What is regulated code? What is a strong system? What is packing and unpacking? What is overload? What are the explanations of CTS, CLS, and CLR?
A: boxing refers to converting the value type to the reference type. From the perspective of Ms Il, it looks like boxing. If you remember correctly, the value is transferred from the stack to the heap. on the contrary, a method with the same name and number of parameters can return the same method. when the CLR is running in a common language, the rest is unclear.
4. List the XML technologies you know and their applications.
A: XML is a good thing. It is used for saving configurations and communication between sites.
5. What is the difference between the value type and the reference type? Write the sample code of C.
A: The structure is the value type, and the class is the reference type. Therefore, the data transfer structure is the application of the value type, and the data transfer object or class is the reference type. Do not write more.
6.ado.net what are common objects? Describe them separately.
A: Connection command sqladapter dataset datatable dataview and so on. The data cannot be written.
7. How to understand delegation?
A: It is said to be equivalent to a function pointer. If a delegate is defined, the method can be called without calling the original method name.
Msdn2005 explains this as follows:
Delegation has the following features:
Xin Hi Park? C ++ function pointer, but it is type-safe.
The delegate allows passing methods as parameters.
A delegate can be used to define a callback method.
The delegate can be linked together. For example, multiple methods can be called for an event.
The method does not need to be exactly matched with the delegate signature. For more information, see covariant and inverter.
C #2.0 introduces the concept of anonymous methods, which allow passing code blocks as parameters instead of Individually Defined methods.
What are the similarities and differences between interfaces and classes in C.
A: There are many similarities and differences. It is not easy to clarify.
9 .. What classes are used to read and write databases in. Net? Their role
A: You can write this class yourself. Do you mean a base class? Configuration, sqlconnection, and sqlcommand are all used.
10. Similarities and Differences between UDP and TCP connections.
A: the former is only transmitted, no matter the data cannot be reached, no connection is required. The latter ensures that the transmitted data is accurate and must be linked.
11.asp.net identity authentication methods? What are their principles?
A: The principles of form authentication and Windows Integration authentication are unclear.
12. How do processes and threads understand each other?
A: The process is Lao Tzu, The thread is the son, and there is no son without Lao Tzu. A Lao Tzu can have multiple sons. A son can be another son, and a son can also be another son.
13. What is code-behind technology.
A: code separation is wise. It is uncomfortable to mix it into a pile like ASP. you can also understand that the HTML code is written at the front end, and the C # code is written at the back end. of course, there are also scripts and class calls at the front end, which can also be written together.
14. Role of the Active Directory.
A: I don't understand this. Please make it clear.
In 15..net, what namespaces do classes that read and write XML belong?
A: system. xml
I may not write it myself, hey.
16. Explain the significance and functions of UDDI and WSDL.
A: What?
17. What is soap and what applications are there.
A: Simple Object Access Protocol (SOAP) is a protocol used to exchange information and execute remote process calls in a distributed or distributed environment. It is an XML-based protocol. When using soap, you do not need to consider any specific transmission protocol (the most commonly used HTTP protocol). You can allow any type of objects or code to communicate with each other in any language on any platform. This type of communication uses the XML format of the message, see: http://playist.blogchina.com/2521621.html
18. How to deploy an Asp.net page.
A: If you want to upload files directly, you can package them into an EXE file.
19. How to understand the garbage collection mechanism in. net.
A: GC? When an object is created, it is always cleared. Otherwise, Which memory is sufficient?
20. What are common WebService call methods?
A: Call is required. Are there any other methods?
The above answers are for reference only (not necessarily correct). If you have better answers, please reply to me.