A company ASP. NET application on machine questions

Source: Internet
Author: User

Asp. NET written exam questions are required to be experienced by an ASP. The general will ask you to fill in two tables one is your detail table One is the interview answer sheet

Two should pay attention to the anti-positive whether there are content do not miss, if you test your machine generally also have two, is the program to connect the database or some basic algorithm (binary search, recursion, etc.), the company is generally testing your basic skills is solid, if you are good at the basic skills need not be nervous!

So here are some of the net pen questions that I hope will help you prepare for your interview.

1.new has several uses

First type: New Class ();

The second type: Coverage method

Public new XXXX () {}

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

2. How to copy an array into the ArrayList

foreach (object o in array) arraylist.add (o);

What data sources can 3.datagrid.datasouse connect to [Dataset,datatable,dataview]

Dataset,datatable,dataview, IList

4. Overview of Reflection and serialization

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

Serialization: Serialization is the process of converting an object into a format that is easy to transfer. For example, you can serialize an object and then use HTTP to transfer 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 the principles of the O/R mapping

Use reflection to configure the mapping of classes to database tables

6. Class members have () accessible form

Accessible form? Do not understand.

Accessibility: public, protected, private,internal

7. What are the characteristics of a class decorated with sealed?

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

The sealed modifier is primarily used to prevent unintended derivation, but it also enables some runtime optimizations. Specifically, because sealed classes never have any derived classes, calls to virtual function members of instances of sealed classes can be converted to non-virtual calls to handle.

8. Enumerate the five main objects in ADO, and briefly describe

Connection,command,datareader,trans,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= (+); j= (11)

I= (+); j= (11) Chinese two bytes

10.c#, string str = null with string str = "", please try to explain the differences in text. (Important: Description of detailed memory space allocation)

String str = "" Allocates space

11. Detailed. The similarities and differences between class and struct in net!

Class: Put in? The struct is placed in?

struct Value passing

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

12. Overview. NET in the understanding and practical application of the two technologies of remoting and webservice.

Remote logic calls, the Remoing interface can only be used in. Net

13. What is Code-behind technology?

ASPX and CS

14. Overview of the three-tier structure system

Web/business/dataaccess

15.asp.net How to implement the MVC pattern, illustrate!

Web/business/dataaccess

Asp. NET written questions to introduce you here, I hope you have some help, the answer is for reference only.

Asp. Net written question is basically a necessary thing for an ASP, so what questions and answers are often present? This article collects some common ASP. NET written questions for your reference.

1. ASP. Net written questions of the SQL section:

Q: Clustered indexes and nonclustered indexes differ:

A: The body content itself is a directory that is arranged according to certain rules called "Clustered index". Asp. NET Server directory is purely a directory, the body is purely a sort of body is called "nonclustered index"

Q: What does indexing mean? Simple explanation of cluster index (clustered) and its pros and cons

A: Clustered indexes often speed up UPDATE and DELETE operations because they require a large amount of data to be read. It can take a long time to create or modify a clustered index because the rows of the table are reorganized on disk when you perform both operations. But the insert slows down. Consider using a clustered index for a column that contains a limited number of unique values, such as the State column contains only 50 unique states codes. Use the following operators to return a query for a range value: Between, >, >=, <, and <=.

Q: What does the isolation level mean? There are several isolation levels, which are explained briefly?

A: The level of transaction readiness to accept inconsistent data is called the isolation level. The isolation level is the degree to which a transaction must be isolated from other transactions. A lower isolation level can increase concurrency, but at the cost of reducing data correctness. Conversely, a higher isolation level ensures that the data is correct, but can negatively affect concurrency. The isolation level required by the application determines the locking behavior that SQL Server uses.

SQL-92 defines the following four isolation levels, which SQL Server supports for all of these isolation levels:
READ UNCOMMITTED (the lowest level of transaction isolation, guaranteed not to read physically corrupted data).
Commit read (SQL Server default level).
REPEATABLE read.
Serializable (the highest level of transaction isolation, complete isolation between transactions).

If transactions run at the serializable read isolation level, then any concurrent overlapping transactions can be guaranteed to be serial.

Q: A brief description of the understanding of the transaction

A: Transactions must be run at a repeatable read or higher isolation level to prevent the loss of updates. A missing update occurs when two transactions retrieve the same row, and then update the row based on the value retrieved from the original. If two transactions update the row with an UPDATE statement and do not update based on the previously retrieved value, no missing updates occur at the default commit read isolation level.

2. ASP. NET written Examination topic programming Language section (c/c++/c#)

Q: Processes and Threads

A: The general process is defined as a running instance of a program. The process is made up of two parts
Asp. NET Server 1. System kernel Object (Process control block)
Asp. NET Server 2. Run space (the code, data, and resources, such as heaps and stacks) that are required to run across the package;
Asp. NET Server (ASP) server process is inactive, it only provides a running environment.
Asp. NET Server ASP is a running branch in a process that executes code in the environment provided by the process. A process has at least one thread, otherwise there is no need to exist.
Asp. NET Server ASP. Thread package spans one kernel object and one stack. The thread is the dispatch unit of the CPU.
Asp. NET Server ASP is the smallest unit of process running, the process participates in allocating resources, such as handle, memory, etc., thread does not participate in allocation, hehe, process through synchronization, mutual exclusion, sharing to maintain communication!

Q: When to do boxing, unpacking

A. When converting between a reference type and a value type

Q: What is the CLR

A: The CLR (Common Language Runtime) Common language runtime is the basis for the entire. NET Framework build and is the implementation. NET cross-platform, cross-language, code security and other core features of the key

Ask:. What is the relationship between net and COM

A:. NET supports interoperability between COM and. NET components, which can actually be implemented through the runtime callable Wrapper (RCW). NET gets the COM component through COM callable Wrapper (CCW) to get. NET components in COM.

Ask:. What is intermediate language (IL) in net

For:. The intermediate language in net is defined as a family of instructions that can be converted to local code by an immediate (Just in time) compiler when executed, in the normal language runtime specification. It's in. NET platform is the implementation of language interoperability of a core link, all. NET platform must first be compiled into intermediate (IL) languages.

3. ASP. Net written questions of the Web Development Section

Q: What words to write in the header of an ASP file will cause Web server to force check that variables used in any program must first be defined

Answer: Option Explicit

Q: If you do not want an error to affect the execution of the entire ASP page, write a sentence in the head to do

Answer: On Error Resume Next

Q: I hope the ASP page does not enter the cache, that is, each time the execution is automatically refreshed, write a sentence what can be done

Answer: Response.Expires = 1
Asp. NET Server Response.ExpiresAbsolute = Now () –1
Asp. NET Server Response.CacheControl = "No-cache"

A company ASP. NET application on machine questions

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.