Current location - Quotes Website - Signature design - What is the computer test of interview questions?
What is the computer test of interview questions?
1 is the answer sheet for interview questions.

Both should pay attention to whether there is content on the reverse side. If you take the computer test, there are generally two kinds, that is, the program connects to the database or some basic algorithms (method of bisection, recursion, etc. ). The company will generally test whether your basic skills are solid. If you have good basic skills, you will be able to do it with ease. Take it easy!

Asp.net interview questions

How to use 1.new?

The first type: newclass ();

The second method: covering method.

Public new XXXX(){}

Third, the new constraint specifies that any type parameter in the generic class declaration must have a public parameterless constructor.

2. How to copy the array into arrayList?

Foreach (object o in the array) ArrayList. Add (o);

3.3. What data sources [dataset, datatable, dataview] can DataGrid. DataHouse connect to?

Data set, data table, data view, IList

4. Overview of reflection and serialization

Reflection: Assemblies contain modules, modules contain types, and types contain members. Reflection provides objects that encapsulate assemblies, modules, and types. You can use reflection to dynamically create an instance of a type, bind a type to an existing object, or get a type from an existing object. You can then call the method of the type or access its fields and properties.

Serialization: Serialization is the process of transforming an object into a format that is easy to transmit. For example, you can serialize an object and then use HTTP to transfer the object between the client and the server over the Internet. Deserialization, on the other hand, will rebuild the object from the stream.

5. Summarize the principle of o/r mapping.

With reflection, the configuration will be similar to database table mapping.

6. Class members have an accessible form of ().

Accessible form? I don't understand.

Accessibility: public, protected, private, internal

7. What are the characteristics of classes decorated with seals?

The seal modifier is used to prevent other classes from deriving from the modified class. If a sealed class is designated as the base class of other classes, a compile-time error will occur.

Sealed classes cannot be abstract classes at the same time.

The seal modifier is mainly used to prevent unintentional derivation, but it can also promote some runtime optimizations. Specifically, since sealed classes will never have any derived classes, calls to virtual function members of sealed class instances can be converted into non-virtual function calls.

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

Connection, command, dataReader, transaction, dataset ...

9. After executing the following code:

String strTemp = " abcdefg XXX

Int i system text. encoding.default.getbytes (strtemp). Length;

Int j = strTemp。 Length;

q:I =( 14); j=( 1 1)

I =( 14); J=( 1 1) two Chinese bytes.

At 10. C#, string str = null and string str = ",please try to explain the difference in words. (Important: Explain the detailed allocation of memory space)

String str = ""Allocate space

1 1. Describes classes and structures in. Net!

Classmate: Put it in? Put the structure in?

Structure value transmission

Classes have many similarities with structures: structures can implement interfaces and have the same member types as classes. However, structures differ from classes in several important ways: they are value types rather than reference types, and they do not support inheritance. The value of the structure is stored on the stack or inline. Careful programmers can sometimes improve performance by using structures wisely.

12. Summarize the understanding and practical application of remoting and webservice. Net.

Remote logical call, remote interface can only be used in. Net.

13. What is code hiding technology?

Aspx and cs

14. Overview of three-tier structure system

Network/business/data access

How to realize MVC pattern with 15.asp.net, give an example!

Network/business/data access

-

1. What does the object-oriented idea mainly include?

A: This question is so broad that I don't know what to say.

What are the user controls in 2.ASP.net?

A: User controls are provided with. Ascx extension, which can be dragged to different pages to save code. For example, logins may exist on multiple pages, so you can create user controls. But there is a problem, that is, after user controls are dragged to different levels of directories, the relative paths of pictures and so on will become inaccurate, and you need to adjust the writing method yourself.

3. What is an application domain? What is a controlled code? What is a strongly typed system? What is packing and unpacking? What is overload? What are the explanations of CTS, CLS and CLR?

A: Boxing is to convert a value type into a reference type. From Ms. IL's point of view, it looks like boxing. If I remember correctly, it is to transfer the value from the stack to the heap. On the contrary, unpacking refers to methods with the same name, different parameters and the same return value. The CLR is the common language runtime, and the rest is not clear.

4. List the XML technologies you know and their applications.

Answer: XML is a good thing. It is used to save configuration, inter-site communication and WEB services.

5. What's the difference between a value type and a reference type? Write C# sample code.

Answer: The structure is a value type and the class is a reference type, so the transfer structure is an application of a value type, and the transfer object or class is a reference type, so I won't write much about this.

What are the common things in 6.ADO.net? Describe them separately.

A: the connection command SQL adapter dataset datatable dataview and so on. I can't finish it.

7. How to understand entrustment?

Answer: 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.

This is explained in msdn2005:

Delegation has the following characteristics:

Delegates are similar to C++ function pointers, but they are type-safe.

Delegates allow methods to be passed as parameters.

Delegates can be used to define callback methods.

Agents can be linked together; For example, you can call multiple methods on an event.

This method does not need to match the delegate signature exactly. For more information, see covariance and inversion.

Version C# 2.0 introduces the concept of anonymous method, which allows code blocks to be passed as parameters instead of separately defined methods.

8. What are the similarities and differences between interfaces and classes in 8.C #?

A: There are many similarities and differences. It is really not easy to make it clear.

9.。 What classes are needed to read and write a database in. Net? Their roles

A: This class can be written by yourself. You mean the base class? Then you should use configuration, sqlconnection, sqlcommand and so on.

10. Similarities and differences between UDP and TCP connections.

Answer: The former only transmits data, no matter whether the data can't arrive, there is no need to establish a connection. The latter needs a connection to ensure the accuracy of data transmission.

What are the authentication methods of 1 1? ASP.net? What is the principle?

A: The principles of form authentication and windows integrated authentication are not clear.

12. How to understand a process and a thread respectively?

A: The process is Lao Zi and the thread is son. Without Laozi, there would be no son. One Lao Zi can have many sons. A son can be someone else's son, and an old man can also have sons for other old men.

13. What is code hiding technology?

A: code separation is a very wise thing, and it is difficult to mix together like ASP. Or it can be understood as writing HTML code in the foreground and C# code in the background. Of course there are scripts and class calls in the foreground, but they can also be written together.

14. Functions of Active Directory.

A: I don't understand this. Please add it clearly.

What namespace does the class that reads and writes XML in 15 use ... which network belongs to?

A: System. extensible markup language (XML)

I wrote it myself, not necessarily, hehe.

16. Explain the significance and function of UDDI and WSDL.

A: What's this?

17. What is SOAP and what are its applications?

Answer: SOAP (Simple Object Access Protocol) is an XML-based protocol for exchanging information and executing remote procedure calls in a distributed or distributed environment. Using SOAP, regardless of any specific transport protocol (the most commonly used is HTTP protocol), it can allow any type of object or code to communicate with each other in any language on any platform. This mutual communication uses messages in XML format. Please see:

18. How to deploy the ASP.net page?

Answer: Whatever, upload it directly if you want, and package it as EXE if you want, depending on your personal preference.

19. How to understand the garbage collection mechanism in? Net.

A: GC? When you create an object, you must clear it. How else would there be enough memory?

20. What are the common methods of calling webservice?

A: As soon as I make a phone call. Are there many other ways?

The above answers are for reference only (not necessarily correct). If you have a better answer, please let me know.