. NET research and development staff (i)

Source: Internet
Author: User
Tags closure

1. Describe the difference between "=, = =, = = =" in JavaScript?

= assigned value

= = comparison is generally equal to "3" ==3//true

= = = Comparison is strictly equal to "3" ==3//false

2, see the following code output why? explain why
var a = null;
Alert (typeof a);
var b;
Alert (typeof B);
alert (c);

A is null and an object, so typeof (a) is object.

b only the declaration is not defined, so typeof (b) is undefinded.

C does not have a declaration or definition, so alert (c) will error.


3. Write JavaScript code to merge two arrays and delete the second element.

Combine JS arrays with the Concat method, Array1.concat (array2).

Delete elements using the Splice method, splice, function prototype splice (INDEX,COUNT), which deletes 1 elements from the array index 1, deletes the second element.


4. A brief description of the scope and closure of JavaScript

The scope of the JS variable is that the local variables defined within the function are valid only within this function, and global variables can be globally valid.

Closure is the ability to change the scope of local variables, save the value, but if used improperly can cause the variable can not be recycled, causing performance problems, or even crashes.


5. Enumerate the JavaScript frameworks you've used, and describe their pros and cons

JS frame: JQuery Easyui, ExtJS, Bootstrap, Angularjs and so on.

jquery Easyui: A lightweight web front-end UI development framework, especially suited to the interface development of MIS systems, and the ability to reuse jquery plugins.

ExtJS: A unified front-end UI development framework that is moderately difficult to learn. Especially suitable for MIS system interface development, development documentation and example code are more complete. The disadvantage is a large number of JS scripts, reducing the speed of operation.

Bootstrap: Responsive Web development Framework, the advantage is to reduce the back-end developers to develop front-end page difficulty, unified interface style, the disadvantage is that the interface style is relatively single.

AngularJS: Introduce the excellent features of Java backend into JS front-end, chatty framework. The disadvantage is that the learning curve is high and Angular2 is almost rewritten.


6. Brief introduction of A. What is the difference between Equals (b) and a==b?

The Equals method compares the content (the value is equal), = = compares the reference address (whether it points to the same object).


7, ASP. What is the difference between application, Session, Cookie, viewstate, and cache variables?

Application application level

Session-level user tracking

Cookie Client stores a small amount of information

ViewState mechanism for maintaining the state of the ASP.

Cache caching


8. There are several types of return values for the enumeration of ASP. ActionResult?

There are several types of view (view), Partialview (partial view), content (contents), JSON (JSON string), Javascript (JS script), file (files).


9. Briefly describe the advantages of ASP. NET Webapi vs. ASP.
10. Describe the life cycle of the ASP.
11. What are the similarities and differences between delay loading and direct loading in ORM?
12, briefly describe the difference between func<t> and action<t>?
13. How to open an asynchronous thread? What are the considerations when multithreaded programming?
14. What is LINQ and how LINQ works? and write a sample code for LINQ to Object

Linq (Language Integrated Query),

Sample code: LINQ Grouping statistics

var  from inch list. AsEnumerable ()              group p by p.province into G              Selectnew              {                  G.key,                  = g.sum (p = p.value)              + =     {":" +

15. What are the characteristics of object-oriented? How do you understand that?

Inheritance, encapsulation, polymorphism.


16. List the design patterns you know? What have you used in a real project? What's your experience?

Singleton mode, template method, Factory mode, appearance mode


17, write SQL from a table to identify the name field to repeat more than three records, and write SQL to delete these duplicate records

. NET research and development staff (i)

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.