ASP.net interview written questions [with answers] 1th 3 page _ Practical Tips

Source: Internet
Author: User
Tags modifier

An entry-level ASP.net programmer should know:
(1) Proficiency in SQL Server Enterprise Manager, Query Analyzer and Profiler, skilled in writing T-SQL, stored procedures, user-defined functions, views, triggers;
(2) Understand the life cycle of the ASP.net server control;
(3) master Html,css,javascript,xml,web Service,ajax;
(4) to master multi-layer structure and class design method;
(5) To understand the relevant aspects of site security vulnerabilities and optimization techniques;

1. Can I use abstract functions to override virtual functions in a base class?
A: Yes, you need to use the new modifier modifier explicitly declaration to hide the implementation of the function in the base class.

Copy Code code as follows:

Class BaseClass
{
public virtual void A ()
{
HttpContext.Current.Response.Write ("Ah will Nan");
}
}

Abstract class Dclass:baseclass
{
Public new abstract void A ();
}

2, which members can the interface contain?
A. Interfaces can contain properties, methods, index indicators, and events, but cannot contain constants, fields, operators, constructors, and destructors
Number, and it cannot contain any static members.
3. How to copy an array into the ArrayList.
Copy Code code as follows:

string[] Arra = new string[]{"Ah", "will", "Nan"};
ArrayList ARRB = new ArrayList ();
foreach (String A in Arra)
{
Arrb.add (a);
}
foreach (string b in Arrb)
{
Response.Write (b);
}

4, overview of the three-tier structure system.
Answer: mainly include interface layer, business logic layer, data access layer.

5, the difference between StringBuilder and string.
A: Using the String class, a new object will be generated when assigning a value, and StringBuilder will not, so in a large number of string concatenation or frequency
It is best to use StringBuilder when manipulating a string.

6, what is a virtual function? What is an abstract function?
For:
virtual function: A function that is not implemented and can be inherited and overridden by subclasses.
Abstract function: A function that stipulates that its non-virtual subclass must be implemented must be overridden.

7, what is the Web Service?
A: Web service is a network-based, distributed modular component that performs specific tasks and adheres to specific technical specifications, which
Specification allows Web service to interoperate with other compatible components.

8, ado.net commonly used objects have what?
For:
Connection: Database Connection objects
Command: Database command
DataReader: Data reader
DataSet: Datasets

9. What is the key word for the declaration of Entrustment?
Answer: Delegate

10. All custom user controls in asp.net must inherit from?
Answer: Control class
Current 1/3 page 123 Next read the full text
Related Article

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.