C # and. NET Programmer Interview Cookbook

Source: Internet
Author: User
Tags soap manage connection shallow copy money back silverlight what is asp



Although there are a lot of questions, they are the most common ones. If you are ready to participate in the relevant interview, it is best to see. In particular, the last dozens of multinational companies face questions. Now many domestic enterprises are beginning to learn this set of ways to embarrass everyone. It is easy to succeed if you are prepared.

Even if you're not looking for a job this year, you can look at it as a level and see how much you can handle.

Interview Question 1 Introduction to ASP.

A: ASP. NET is a program architecture built on the common language runtime, which enables the development of very powerful Web applications through ASP.


Interview 2 Introduce the difference between ASP
Answer: 1, ASP. NET supports precompilation.

2, ASP. NET with a more powerful ADO, authentication system, numerous server controls, and support for custom control authoring.

3, ASP. NET has event-driven controls.

Interview Question 3 illustrates the application feature of ASP.

A: The Application object is used to record information left by different users visiting a Web site, such as the number of IP addresses that can be used to access a Web page, and to persist data during service operation. Application supports events such as start and end.


Interview Question 4 brief description of the page running mechanism of ASP

A: 1, IIS receives a customer request.

2. IIS gives the request to aspnet_ispai.dll for processing.

3, (first run) load the DLL in the bin directory.

4, (first run) read the Web. config configuration.

5. (First run) Initialize HttpApplication instance

6, create HttpContext, create Httptextwrite.

7. Locate the corresponding HttpHandler (. aspx page) and process the HTTP request

8, processing session.

9, return the results of the customer.


Interview Question 5 brief description of the life cycle of a page in ASP.

Answer: Client Request page

Pre-initialization (Onpreinit)

Initialize (OnInit)

Completion of initialization (ONINITCOMPLETE)

Load ViewState (LoadViewState)

Processing loopback data (IPostBackDataHandler)

Page_onpreload-"Page_onload

Postback change notification (raisepostdatachangedevent)

Handling Postback events (RaisePostBackEvent)

Page_onloadcomplete

Pre-rendering (OnPreRender)

Complete pre-rendering (Onprerendercomplete)

Save ControlState (SaveControlState)

Save ViewState (SaveViewState)

Render (Render)

Page_Unload.


Interview Question 6 What is managed code in C #

A: Code that is executed by the common language runtime environment (not directly by the operating system). Managed code applications can obtain common language runtime services, such as automatic garbage collection, runtime type checking, and security support. These services help provide platform-and language-independent, unified managed-code application behavior.


Interview question 7 What is unmanaged code in C #

A: Outside of the common language runtime environment, code that is executed directly by the operating system. Unmanaged code must provide its own garbage collection, type checking, security support, and other services, unlike managed code, which obtains these services from the common language runtime.


Interview questions 8 Il language how to run under. Net

A: IL (MSIL) is the intermediate language, based on high-level languages and assembly language intermediate pseudo-assembly language.


Interview question 9 How to use real-time compilation for code optimization
Interview question 10 what is. Private assemblies in net
Interview question 11 what is. Shared Assemblies in net
Interview question 12 How to resolve conflicts between applications that are caused by shared components
Interview question 13. NET program development and operation of the basic environment is what
Interview 14 does a project under the solution represent an assembly
Interview question 15. What is the application domain of net
Interview question 16 How to protect the source code and maintenance of the version
Interview question 17 What is XCOPY deployment

A: Use the xcopy command to copy a project or application from one location to another in a simple way under the console.


Interview 18 How to configure a Web site with the Setup Wizard

A: Create a Setup Project---Configure the Setup project---Build the installation package files---Run the installation package on the specified server.


Interview Question 19 Brief introduction to ClickOnce deployment in C #
Interview questions what predefined value types are supported in C #

Answer: Int,float,bool,decmail,char
Interview questions what predefined reference types are supported in C #

Answer: Object,string,arraylist
Interview 22 How to solve the performance problems caused by boxing and unpacking

A: You can use generic types to resolve performance issues that are caused by boxing and unpacking


Interview 23 There are several ways to judge value types and reference types

A: Value types are allocated space in the stack, and reference types are allocated space in the heap. There are three ways of judging:

1, through the assignment operation.

2, the detection type whether inherit System.ValueType.


Interview question 24 How to understand the scope of variables in C #
Interview question 25 Methods of passing parameters
Interview question 26 How to understand preprocessor directives in C #
Interview Question 27 Please outline the main () method in C #
Interview question 28 How to understand pointers in C #
Interview Question 29 Please give examples of the members commonly used in System.Collections
What kind of loop structure does C # provide?
What is the difference between StringBuilder and string in an interview question?
Interview question 32 How to implement a custom format string output
Interview question 33 How to achieve flexible and powerful formatted output
Interview 34 Please list several commonly used traversal methods of Hashtable
Interview question System.String is a reference type or a value type
Interview questions What is the difference between string and string in C #
Interview question 37 How to convert between byte[] and string
The difference between the interview question array and the ArrayList

Answer: Array initialization size is different, it is one-dimensional, it is isomorphic

ArrayList can add a delete item, it is multidimensional, it is heterogeneous.


How to convert an interview question to an array with ArrayList

1, Araylist.adapter (array)

2, through the loop to add the array to the ArrayList;

3, Arraylist.toarray (ArrayList);


Interview questions what is the role of checked and unchecked in C #
Interview questions what is the ternary operator in C #
Interview questions what does the is operator and the as operator do in C #
How to get quarterly with DateTime in C # in the interview question
Interview question 44 How to add a working day to a datetime time
Interview question 45 How to convert a datetime time to a string time
Interview Question 46 What is the difference between the class and the structure
Interview Question 47 brief description of virtual methods in C #
Interview Question 48 brief description of sealing class and sealing method in C #
Interview 49 Please describe the characteristics of static class construction methods in C #
Interview Question 50 brief description of constructors in C # derived classes
Interview Question 51 Brief introduction interface and interface inheritance

Answer: 1, define only

2, can have methods, events, properties

3, the public

4. Cannot instance

5. Cannot have field

6, you can also inherit the interface.


Interview Question 52 What is an event mechanism
Interview 53 Listing An instance of a delegate and an event
Interview Question 54 Please briefly describe the role of EventHandlerList
Interview question 55 What is a delegate
Interview questions is the method that is delegated in C # must be static?
Interview question 57 What is a multicast delegate
Interview 58 listing a delegate application in C #
Interview problem of the ASP. NET, what are the request objects
Interview problem ASP. NET, what are the response objects
Interview questions ASP. NET, what are the server objects
Interview question 62 What is a Web form, what is a Web user control
Interview question 63 what is ViewState

A: The state of the client can be persisted.


What are the pros and cons of ViewState interview question?

Do not boast pages. The performance base when the data volume is large.


What is the difference between an interview Session, a ViewState, and a cookie?
Interview question 66 How to use the GridView control to bind a data source
Interview 67 Please briefly describe the common page jump method in ASP.
Interview question 68 What is a Web Part
Interview questions how Web Parts communicate
Interview question 70 How to do Web Part personalization
What is the role of the interview question, Master page?
Interview question 72 How to nest the master Page
Interview 73 Please describe the principle and configuration process of ASP.
Interview 74 Please describe the control process for ASP.
Interview Question 75 Please demonstrate the security of the cookie generated by authentication
The interview problem is ASP. NET has several ways to store session state

A: InProc (IIS Process), StateServer (state server), SQL Server (database)


Interview 77 Please describe the features of the ASP. NET Session state InProc

A: Shutting down IIS is not the case, higher than the other two. Cannot boast server sharing
Interview 78 Please describe the features of the ASP. NET Session state StateServer

A: You need to boast that the server can use StateServer.
Interview 79 Please describe the features of the ASP. NET session state SQL Server

For:
The interview problem is ADO. NET and database relationships
Interview questions Bayi ADO. NET number of data sources supported

Answer: sql\oledb\odbc\xml\oracle


Interview question 82 How to improve the efficiency of database connection usage

Answer: Avoid using data sources such as OLEDB\ODBC


Interview question 83 How to securely manage connection strings

Answer: Write the string in the Web. config file. And can encrypt connectionstring encryption.


How to manage database connections with the using clause of the interview question

Answer: Get, use, release, it can automatically close the database link.


Interview questions in ADO. NET how to control database connection pooling

For:


Interview questions in the ADO. How to execute dynamic SQL statements in. Net

Answer: Use the Executeread, ExecuteNonQuery, ExecuteScalar methods of the SqlCommand object


Interview 87 explaining the transaction processing effect in ADO

A: Transactions are used to execute multiple SQL statements to make sure that each SQL statement executes correctly before the database is permanently modified, otherwise no changes will be made to the database.


Interview question 88 How to generate an update command for SqlDataAdapter
Interview question 89 what is LINQ

Answer: LINQ to Object, linqto xml,linq to ADO
Interview question-LINQ query keyword
Interview question 91 what is LINQ to SQL query technology
Interview question 92 what is LINQ to DataSet query technology
Interview question 93 what is LINQ to XML query technology
Interview questions 94 XML document structure including which

A: XML is a proliferation-tagged language; declarations, elements, notes, character references, processing instructions


Interview Question 95 brief description of the advantages and disadvantages of XML
Interview question which parts of the SOAP protocol are composed

A: SOAP is the base protocol for WebService. It is a simple object access protocol. Based on XML. Serializable.
Interview Question 97 what is a WSDL language

Answer: WebService description Language.
Interview questions 98 how to convert an XML data island to HTML format in C #
Interview 99 how to manipulate XML documents using the DOM
Interview question 100 How to sort XML data in C #
Interview Question 101. How to read and write XML in stream format in net
Interview question 102. How to implement XML serialization in net
How to interview question 103 in. NET project, call the Web Service
Interview question 104 What is the asynchronous request Web Service
Interview question 105 how to cache Web service data
Interview questions 106 What are the transactions in the Web service
Interview question 107 How to handle exceptions in Web service
Interview Question 108 Please list Common Web Service security measures
Interview 109 How to use Windows Authentication and authorization in Web service
Interview 110 How to use SOAP headers to customize authentication in a Web service
Interview question 111 what is WPF
Interview Question 112 What is XML extension XAML
Interview question 113 How to understand the WPF foundation architecture
Interview questions summary of commands in WPF
Interview question 115 How to make WPF data binding
Interview topic the Multimedia development of WPF
Interview 117 explaining the process of Windows system
Interview 118 explanation of Windows system threads
Interview 119 Please briefly describe the differences between Windows system processes and threads
Interview question 120 what is multithreading
Interview Question 121 What is Hyper-threading
Interview 122 Please explain the concurrency in multi-threading
Interview 123 Please outline the pros and cons of multithreaded programming
Interview question 124 How to understand deadlocks in C #
Interview Question 125 Please describe the heap in C #
Interview 126 Please describe the stacks in C #
Interview Question 127 What is the difference between heaps and stacks in C #
Interview questions the difference between a deep copy and a shallow copy in C #
Interview question 129 What is a generic type
Interview question 130 What are the primary and secondary constraints of generics
Interview Question 131 What is a generic collection
Interview Question 132 Please introduce the use and characteristics of SortedList
Interview Question 133 Please describe the use and characteristics of the queue
Interview Question 134 Please describe the use and characteristics of stack
Interview question 135 what is reflection
Interview question 136 How to use reflective technology to implement Factory mode
Interview questions 137 how C # calls a class defined within a DLL by reflection
Interview Question 138 please explain. NET Features
Interview 139 Please list how to customize a feature
Interview question 140 How to control in the program. NET's thread pool
Interview questions 141 How to control multithreaded programming in C #
Interview question 142 How to define thread priority
Interview Question 143 Please explain the join () method in the Thread class
Interview 144 Please describe C # in System.Threading.Timer
Interview question 145 How to retrieve the thread pool maximum number of threads and available threads
Interview questions 146 How to control the connection between multiple threads in multi-threading programming
Interview question 147 How to create a thread-exclusive global data
Interview 148 How to use flow type
Interview questions 149 How to implement the serialization of object instances with serializable features
Interview question 150. What types of serialization operations are available in net
Interview questions 151 how to customize serialization and deserialization in C #
Interview question 152 How to capture exceptions in a C # program
Interview questions 153 How to customize exceptions in C #
Interview question 154 How to avoid the exception of type conversion
Interview question 155 Introduction to trace and debug classes in C #
Interview question 156 How to create a custom log using EventLog in C #
Interview question 157 What is a GC
Interview question 158 How to manually release unmanaged resources
Interview question 159 explaining weak references in C #
Interview question 160 What is generation (GC-related)
Interview 161 Please briefly describe the Dynamic data of ASP.
Interview question 162 How to configure the ASP. NET Dynamic Data
Interview question 163 what is Silverlight
Interview question 164 How to configure the Silverlight development environment
Interview question 165 What is dynamically Typed
Interview Question 166 explanation for the ADO Entity Framework
Interview question 167 What is the ADO-Data model?
Interview 168 please profile ADO Data Services
Interview question 169 how to implement ADO Data Services
Interview 170 explaining the ASP. NET MVC Framework
Interview question 171 what is ASP. Routing
Interview Question 172 Please briefly describe how to configure ASP.
Interview question 173 What is a workflow
Interview question 174 How to apply the Workflow engine (Workflow Foundation)
Interview question 175 How to invoke an existing Workflow foundation in a new project
Interview question 176 what is an array
Interview question 177 what is recursion
Interview question 178 What is a sequential table
Interview Question 179 What is a single linked list
Interview question 180 What is a two-fork tree
Interview 181 Please introduce the sequential storage structure of binary tree
Interview 182 Please introduce the binary tree's pre-sequence traversal and the middle sequence traversal method.
Interview question 183 What is a binary search algorithm
Interview 184 What is bubble sort algorithm
Interview question 185 What is a fast sorting algorithm
Interview question 186 What is a merge sort algorithm
Interview question 187 What is the depth-first traversal of graphs
Interview 188 please design and program to achieve the K-large prime problem
Interview 189 please design and program the implementation of a Yang Hui triangle
Interview question 190 Please design and implement 250 million numbers, the number of non-repetition
Interview 191 please design and program the Spiral matrix algorithm
Interview 192 please design and program a Fibonacci sequence
Interview 193 Please design and implement a KMP algorithm
Interview question 194 What is automated testing
Interview question 195 What is a performance test
Interview question 196 What is unit testing
Interview Question 197 Please describe the necessity of unit testing
Interview 198 Please briefly describe the Unit test task
Interview question 199 How to install NUnit
Interview question What are the properties of the NUnit framework?
How to interview question 201 in. NET using NUnit test code The following is a unique question for multinational companies
Interview Question 202 How did you find your summer job?
Interview Question 203 How do you plan your future career
Interview question 204 are you willing to do regular work
Interview 205 Do you want to find a long-term or temporary job?
Interview 206 Do you feel uncomfortable or hurt when you are receiving guidance from others?
Interview 207 What do you think about the operation of the enterprise?
Interview 208 Do you think as the first unit you apply for, whether you should consider your grades in school
Interview 209 What other companies have you been recruited in addition to our company
Interview 210 How do you think your boss will react if you leave your current position?
Interview 211 How do you rate the company you are currently working for and why you are leaving
Interview Question 212 Why want to enter the company
Interview question 213 How much do you know about the company?
Interview Questions 214 likes What's the point of the job?
Interview question 215 What to learn at work
Interview 216 What are the expectations and goals of the job?
Interview 217 What do you think about the development of related industries?
Interview question 218 What are the pros and cons?
Interview question 219 How much do you want to be treated?
Interview question 220 When can I work in the post?
Interview 221 explanation of frequent job-hopping reasons
Interview 222 Explain why you are changing careers
Interview 223 explaining the career gap period
Interview question 224 Do you think there is an irreconcilable contradiction between family and career?
Interview 225 Are you married or are you going to have a child recently?
Interview 226 The position is often overtime, travel, you can be competent
Interview question 227 How many cars in the United States?
Interview question 228 How to turn on the lock
Interview 229 cover of Sewer
230-point cake for the interview question
Interview questions 231 28 days
Interview questions 232 3 lamp
Interview questions 233 Black ball and white ball
Number of 234 mad dogs in the interview question
Interview Question 235 lying words
Interview questions 236 honest and lying countries
Interview question 237 catch jelly
Interview question 238 draw straight line
Interview question 239 Clock
Interview questions 240 kinds of trees
Interview question 241 snail climb wellhead
Interview Questions 242 birds flying distance
Interview question 243 cut gold bars
Interview question 244 is called water
Interview Question 245 Burn Incense
Interview Questions 246 age of 3 daughters
Interview 247 cans loaded with pills
Interview question 248 Burn the rope time
Interview question 249 How to get the money back
Interview 250 What kind of alarm clock is designed for deaf people
Interview question 251 How to design a coffee machine for a car
Interview question 252 What to add to Microsoft's Word Office suite

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.