1. What is the advantage of the difference between property and attribute in C #, and what are the benefits of such a mechanism?
2. Tell me about the Web service you understand, how well the XML is combined in the dot NET Framework. (Speaking of concepts)
3. C #, Java and C + + features, what are the same places, different places, C # from C + + and Java to draw their advantages?
4. Can C # directly manipulate memory? (This is a difficult point oh?) Be careful! )
5. Code written in Visual C + + 6.0 (unmanaged code), how to combine with other dot net component under the CLR?
6. A number of projects that have been previously made? Introduce your own programming.Experience。 (This is not the past, the basic question will know is true)
7. What do you expect from the company? What is your salary expectation? Why learn computer? Previous work experience (this is very important)?
Q3: Maintain database integrity, consistency, do you prefer to use triggers or self-write business logic? Why
Q4:ado. What are some of the major improvements in net versus ADO?
Q5:asp. NET compared with ASP, what is the main progress?
What are the delegates in q6:c#? Is the event a delegate?
Q7: Describe the implementation of indexers in C #, and can they be indexed only by numbers?
What is the implementation process for a class to support a foreach traversal in q8:c#?
Q10: Write an HTML page, to achieve the following functions, left click on the page to display "Hello", right click on the display "No right button." and automatically closes the page after 2 minutes.
Q11: Do you know anything about XMLHTTP and WEBSERVICE? Briefly describe its characteristics, function
Q12: What is the difference between an interface and an abstract class? What is the basis of your choice to use interfaces and abstract classes?
Q13: What are the similarities and differences between custom controls and general user controls? What would you choose if you were to use one of these two? Why
Q14: Probably describe the ASP. NET server control's life cycle
Q15:uml
Q16: Object-oriented concepts, key Features
Q17: The basis of class partitioning. Granularity of Classproblem
Q18: Issues in the management of things
First, to talk about final, finally, finalize the difference.
Second, Anonymous Inner class (anonymous inner Class) can extends (inherit) other classes, can implements (implement) interface (interface)?
Thirdly, the difference between Static Nested class and Inner class is that the more you say the better (InterviewThe problem is very general).
The difference between,& and &&.
The difference between HashMap and Hashtable.
The difference between the Collection and the collections.
VII, when to use the Assert.
What's the GC? Why do you have a GC?
Ninth, String s = new string ("XYZ"; the creation of several string Object?)
Tenth, Math.Round (11.5) how much? Math.Round (-11.5) how much?
11th, short S1 = 1; S1 = s1 + 1; what's wrong? Short S1 = 1; S1 + = 1; what's wrong?
12th, what is the difference between sleep () and wait ()?
13th, does Java have a goto?
14th, does the array have the length () method? Does string have the length () method?
15th, the difference between overload and override. Can the overloaded method change the type of the return value?
16th, the elements in set cannot be duplicated, so what is the method used to distinguish between duplicates or not? Are you using = = or equals ()? What is the difference between them?
17th, give me one of your most common runtime exception.
18th, what is the difference between error and exception?
19th, List, Set, map inherit from collection interface?
20th, what is the difference between abstract class and interface?
21st, whether the abstract method can be static at the same time, whether it can be native at the same time, can it be synchronized?
22nd, can interfaces inherit interfaces? is an abstract class achievable (implements) interface? Does an abstract class inherit entity classes (concrete Class)?
23rd, start a thread with run () or start ()?
24th, can the constructor constructor be override?
25th, is it possible to inherit the string class?
26th, when a thread enters an synchronized method of an object, does the other thread have access to other methods of this object?
27th, there is a return statement in the try {}, then the code in the finally {} immediately after the try will not be executed, when executed, before or after the return?
28th, the programming question: the most efficient way to figure out 2 times 8 and so on?
29th, two object values are the same (x.equals (y) = = true), but can have different hash code, this sentence is not correct?
30th, when an object is passed as a parameter to a method, this method can change the properties of the object and return the changed result, so is this a value pass or a reference pass?
31st, whether the Swtich can function on a byte, whether it can function on a long, whether it can work on a string?
32nd, the programming question: Write a singleton out.
Database aspects:
1. Differences between stored procedures and functions
2. What is a transaction?
3. What is the role of cursors? How do I know that the cursor is at the end?
4. The trigger is divided into pre-trigger and post-trigger, and the two triggers have and differ from each other. What is the difference between a statement-level trigger and a row-level trigger.
1. The following features are implemented in C #
A generates an int array with a length of 100 and a random insertion of 1-100 into it, and cannot be duplicated.
b sort the array generated above, need to support ascending, descending order of two
2. Please describe the methods used to pass parameters between pages in. NET, and say their pros and cons.
3. Please describe the error handling mechanism in. NET, and for example
4. Please say the meaning of strong name
5. Please list several methods of looping in C #, and indicate their differences
6. Please indicate the base class for all types in. Net
7. Please indicate what the GAC means
8. In SQL Srever, new data is inserted into a table, how to quickly get the current value from the Increment field
Under what circumstances do you use virtual methods? How does it differ from the interface?
What is the difference between q:override and overloading?
Q: What is the difference between a value type and a reference type?
Q: How do I understand static variables?
Q: How many ways are there to send requests to the server?
What is the difference between a q:datareader and a dataset?
Q: If you need to pass the variable value in a B/s structure, but you can not use session, Cookie, application, how many methods do you handle?
Q: Using. NET to do b/s structure of the system, you are using a few layers of structure to develop, each layer of the relationship between and why so layered?
Q: How many stages does the software development process generally have? The role of each stage?
Q: Microsoft has launched a series of application blocks, please name what you know Application block and explain its role?
Q: Please list some of the design patterns you have used and under what circumstances do you use this mode?
Q: How do you feel about webservice?
Q: What is your interest in programming? How to solve the problem that you don't understand at work? How do you generally improve your programming level?
Q: What is the reason for your departure?
Q: How can I pass the Chinese parameters via hyperlinks?
Q: Do you programmatically traverse all TextBox controls on the page and assign it a value of String.Empty?
Q: Do you programmatically implement a bubbling sorting algorithm?
1, override and overload of the difference
2. What is the error handling mechanism for. Net
3. The similarities and differences between interfaces and classes in C #
4. Similarities and differences between DataReader and datasets
1. There are several ways to implement a class to access the member functions and properties of another class, and to give a list to illustrate and analyze.
2. If you need to record the number of instances of the class, how to implement, please write a simple class to prove.
3.A class is the base class of Class B, and has its own structure, destructors, please give examples of Class B from instantiation to extinction process of construction, destructor execution process.
4. You need to implement the processing of a string, first of all, the string is removed, if there are contiguous spaces in the middle of the string, only one space is allowed, that is, allow more than one space in the middle of the string, but the number of consecutive spaces must not exceed a single.
A. Fill in the blanks
is the ternary operator in 1.c# a __?:___?
2. When the integer A is assigned to an object, the integer a will be boxed (encapsulated) __?
3. Does the class member have an accessible form of _____? this.; New Class (). Method;
4.public static const int a=1; Is this code wrong? What is it? Const cannot be modified with static
5.float f=-123.567f;
int i= (int) F;
The value of I is now _____? 123
6. Is there anything wrong with operator statement and only declaring "= ="?
7. What is the keyword of the delegate declaration? Delagete
8. What are the characteristics of sealed-modified classes? Sealed, cannot inherit
9. All custom user controls that are in ASP. NET must inherit from ________? Control
10. All serializable classes in. NET are marked as _____?
11. We don't have to worry about memory leaks in. NET managed code because of the ______?GC
12. Are there any errors in the following code? _______
Copy Save
Using System;
Class A
{
public virtual void F ()
{
Console.WriteLine ("A.F");
}
}
Abstract class B:a
{
Public abstract override void F (); New public abstract void F ();
}
13. When the class T only declares the private instance constructor, then outside of the program text of T, ___ can derive a new class from T, either ___ (or not), and no instance of T can be created directly by ____ (or not).
14. Is there an error in the following code?
Copy Save
Switch (i)
{
Case 0:
Casezero ();
Break
Case 1:
Caseone ();
Break
Case 2:
Dufault; Wrong
Casetwo ();
Break
}
15. In. NET, can a class System.Web.UI.Page be inherited? OK
Two. Brief answer
1. What is the meaning of the two keywords using and new in C #, please write the meaning you know? Using directives and statement new Create instance new hides methods in base class
4. What is the difference between class and structure? A class is a reference type, a struct is a value type
5. A string of length 10000 that consists of randomly extracting 10,000 characters from A-Z. Please write the main program in C # language to implement.
6. For one of these enumeration types:
Copy Save
Enum Color:byte
{
Red,
Green,
Blue,
Orange
}
string[] ss = Enum.getnames (typeof (Color));
byte[] bb = enum.getvalues (typeof (Color));
Try to write a program that shows all the symbol names defined in the enumeration type and their corresponding values.
7. Do you understand design patterns? Please list the name of the design pattern you know. //
8. Design a table in SQL Server to hold an organization chart of a tree structure (assuming that only the name in the structure is required to save), what do you think if I want to query all the positions in a position and use a stored procedure to implement it?
9. What is SQL injection and how do I prevent it? Please illustrate.
10. What does the following code output? Why?
Copy Save
int i = 5;
int j = 5;
if (Object.referenceequals (i, J))
Console.WriteLine ("Equal");
Else
Console.WriteLine ("Not Equal");
Not equal, because the object is compared
1. Write a method that implements the flip of a string, attaching some conditions, such as ",", ".", to the design of the test case.
2. Design a test case for a paper cup (can be a generalized cup, not necessarily a specific function of the cup)
Developing language concept Questions
3. What is reflection?
4. How to write design patterns with Singleton
What is the garbage collection mechanism in 5.c#?
6. What is Application Pool?
7. The difference between the list and the array, what are the advantages and disadvantages.
8.Remoting How is the client server implemented?
9. What is a friend function?
10. How to achieve polymorphism with standard C?
11. What is a virtual function?
12. What are abstract functions?
13. What is a memory leak, and what is the simplest way to determine which leaks are stored?
English questions
14. Introduce the project using c#/c++ in English, the main function
15. How to communicate with U.S. engineers if you want to have a conference call with us
16. What would you say if your boss thinks your skills are lagging behind?
Database knowledge problem
17. What tools are used to invoke the stored procedure
What are the two types of indexes for 18.SQL server? The role of the index? What are the advantages and disadvantages of indexes?
19. Effects of triggers
Other knowledge questions and problems
20. What is a Web Service?
21. What is XML?
How is 22.Socket implemented?
Someone's answer, please point out my mistakes.
1. What is the advantage of the difference between property and attribute in C #, and what are the benefits of such a mechanism?
One is a property, a field for accessing a class, one is an attribute, an additional property used to identify a class, a method, etc.
2. Tell me about the Web service you understand, how well the XML is combined in the dot NET Framework. (Speaking of concepts)
No, I'm learning.
3. C #, Java and C + + features, what are the same places, different places, C # from C + + and Java to draw their advantages?
Same point: All C-Systems, object-oriented
Different points: java,c# are built on the virtual machine mechanism, and C + + is not
4. Can C # directly manipulate memory? (This is a difficult point oh?) Be careful! )
OK
5. Code written in Visual C + + 6.0 (unmanaged code), how to combine with other dot net component under the CLR?
Compile Dll,[dllimport]
6. A number of projects that have been previously made? Introduce your own programming experience. (This is not the past, the basic question will know is true)
7. What do you expect from the company? What is your salary expectation? Why learn computer? Previous work experience (this is very important)?
Q3: Maintain database integrity, consistency, do you prefer to use triggers or self-write business logic? Why
Triggers, good performance, transactional
Q4:ado. What are some of the major improvements in net versus ADO?
new datasets, etc., no need to stay connected at all times, improved performance
Q5:asp. NET compared with ASP, what is the main progress?
ASP explanation form, aspx compiler type, improve performance, help protect the source code
What are the delegates in q6:c#? Is the event a delegate?
A delegate is a safe function pointer, and an event is a message mechanism
Q7: Describe the implementation of indexers in C #, and can they be indexed only by numbers?
No
What is the implementation process for a class to support a foreach traversal in q8:c#?
Implementing an interface
Q10: Write an HTML page, to achieve the following functions, left click on the page to display "Hello", right click on the display "No right button." and automatically closes the page after 2 minutes.
JS Code
Q11: Do you know anything about XMLHTTP and WEBSERVICE? Briefly describe its characteristics, function
XMLHTTP can proactively get remote Web code, similar to HttpWebRequest
Q12: What is the difference between an interface and an abstract class? What is the basis of your choice to use interfaces and abstract classes?
Interfaces are used for specifications, and abstract classes are used for commonalities.
Q15:uml
Unified Modeling Language
Q16: Object-oriented concepts, key Features
Package, base, polymorphic
Database aspects:
1. Differences between stored procedures and functions
A stored procedure is a compiled operation that is stored in a database, and the function goes without saying ...
2. What is a transaction?
Have atomic characteristics
3. What is the role of cursors? How do I know that the cursor is at the end?
Indicates the location of the current record, checking for null
4. The trigger is divided into pre-trigger and post-trigger, and the two triggers have and differ from each other. What is the difference between a statement-level trigger and a row-level trigger.
One is before operation, one is after operation
1. The following features are implemented in C #
A generates an int array with a length of 100 and a random insertion of 1-100 into it, and cannot be duplicated.
Copy Save
int[] intarr = new int[100];
ArrayList myList = new ArrayList ();
Random rnd = new Random ();
while (Mylist.count < 100)
{
int num = rnd. Next (1, 101);
if (!mylist.contains (num))
Mylist.add (num);
}
for (int i = 0; i <; i++)
Intarr[i] = (int) mylist[i];
b sort the array generated above, need to support ascending, descending order of two
ArrayList itself can be sorted
2. Please describe the methods used to pass parameters between pages in. NET, and say their pros and cons.
Session (viewstate) simple, but easy to lose
Application Global
Cookies are simple, but may not be supported, may be forged
Input ttype= "hidden" is simple and may be forged
URL parameter is simple, display in the address bar, the length is limited
The database is stable and secure, but the performance is relatively weak
3. Please describe the error handling mechanism in. NET, and for example
Try Catch final
4. Please say the meaning of strong name
Has its own key, which can be used in the GAC for public
5. Please list several methods of looping in C #, and indicate their differences
For Wile foreach
6. Please indicate the base class for all types in. Net
Object
7. Please indicate what the GAC means
Global Assembly Cache
8. In SQL Srever, new data is inserted into a table, how to quickly get the current value from the Increment field
SELECT @ @id ... Something, forget it.
Under what circumstances do you use virtual methods? How does it differ from the interface?
It's been said before
What is the difference between q:override and overloading?
One is to rewrite the parent class function, and one is the same function in several forms
Q: What is the difference between a value type and a reference type?
difference between a value and a pointer
Q: How do I understand static variables?
A variable that is common to all instances
Q: How many ways are there to send requests to the server?
Get post
What is the difference between a q:datareader and a dataset?
One is a forward-only read-only cursor, one is an in-memory table
Q: If you need to pass the variable value in a B/s structure, but you can not use session, Cookie, application, how many methods do you handle?
Input Type= ""
Url
Database
Q: Using. NET to do b/s structure of the system, you are using a few layers of structure to develop, each layer of the relationship between and why so layered?
Three layers, performance, logic, data, security, maintainability
Q: How many stages does the software development process generally have? The role of each stage?
Requirements analysis, architecture design, code authoring, QA, deployment
Q: Please list some of the design patterns you have used and under what circumstances do you use this mode?
The famous singleton
Q: What is your interest in programming? How to solve the problem that you don't understand at work? How do you generally improve your programming level?
Q: What is the reason for your departure?
Q: How can I pass the Chinese parameters via hyperlinks?
UrlEncode UrlDecode
Q: Do you programmatically traverse all TextBox controls on the page and assign it a value of String.Empty?
Foreach
1. There are several ways to implement a class to access the member functions and properties of another class, and to give a list to illustrate and analyze.
The same name control is directly, or reflected
2. If you need to record the number of instances of the class, how to implement, please write a simple class to prove.
const static int classnum=0;
classnum++;
3.A class is the base class of Class B, and has its own structure, destructors, please give examples of Class B from instantiation to extinction process of construction, destructor execution process.
After the formation of the father, the analysis of the reverse
4. You need to implement the processing of a string, first of all, the string is removed, if there are contiguous spaces in the middle of the string, only one space is allowed, that is, allow more than one space in the middle of the string, but the number of consecutive spaces must not exceed a single.
String inputstr= "xx xx";
Inputstr=regex.replace (Inputstr.trim (), "*", "";
Two. Brief answer
1. What is the meaning of the two keywords using and new in C #, please write the meaning you know? Using directives and statement new Create instance new hides methods in base class
Using to introduce namespaces or use unmanaged resources
New instance or hide parent method
4. What is the difference between class and structure?
A class is a reference type, a struct is a value type
5. A string of length 10000 that consists of randomly extracting 10,000 characters from A-Z. Please write the main program in C # language to implement.
Same as the one in front.
6. For one of these enumeration types:
Copy Save
Enum Color:byte
{
Red,
Green,
Blue,
Orange
}
string[] ss = Enum.getnames (typeof (Color));
byte[] bb = enum.getvalues (typeof (Color));
Try to write a program that shows all the symbol names defined in the enumeration type and their corresponding values.
Foreach
9. What is SQL injection and how do I prevent it? Please illustrate.
Use the SQL keyword to attack a website. Filter keywords ' etc
10. What does the following code output? Why?
Copy Save
int i = 5;
int j = 5;
if (Object.referenceequals (i, J))
Console.WriteLine ("Equal");
Else
Console.WriteLine ("Not Equal");
Not equal, because the object is compared
1. Write a method that implements the flip of a string, attaching some conditions, such as ",", ".", to the design of the test case.
Inputstr=inputstr.tochararray (). Reverse (). ToString ();
2. Design a test case for a paper cup (can be a generalized cup, not necessarily a specific function of the cup)
It's too wide ...
Developing language concept Questions
3. What is reflection?
Dynamically getting assembly information
4. How to write design patterns with Singleton
Static property inside new, constructor private
What is the garbage collection mechanism in 5.c#?
Three generation, check references when each generation memory is full, reclaim memory without references
6. What is Application Pool?
Web application, similar to thread Pool, improves concurrency performance
7. The difference between the list and the array, what are the advantages and disadvantages.
One can dynamically grow, a fixed (VB can be ReDim), performance array teaches good
8.Remoting How is the client server implemented?
9. What is a friend function?
Friendly declaration, you can access the Protect level method
11. What is a virtual function?
Can be rewritten
12. What are abstract functions?
Must be rewritten
13. What is a memory leak, and what is the simplest way to determine which leaks are stored?
C++,c forgot to release memory, memory will not be allocated again
Database knowledge problem
17. What tools are used to invoke the stored procedure
Any one language
What are the two types of indexes for 18.SQL server? The role of the index? What are the advantages and disadvantages of indexes?
Cluster and non-cluster, speed up lookups, take up extra controls, and maintain indexing time consuming
19. Effects of triggers
Ensure database operation changes can be notified
Other knowledge questions and problems
20. What is a Web Service?
Enables applications to be called throughout the Web
21. What is XML?
Extensible Markup Language, can make configuration files, can transfer data, can store data
How is 22.Socket implemented?
This does not know how to say ...
ASP. NET Knowledge Point Summary (eight)