If you want to work for a big company, if you have been an iOS developer for 3 years or so, if you are not completely confident about the unknown of the interview, if you are looking for a salary of 15K+, then please carefully read the 100 interview questions, which are real company experience… You want to think from oneself first, see individual those respects return inadequacy!
1. Introduce yourself
2, how to achieve a countdown function, similar to the mushroom street in the second kill.
3. How to understand this in es6 arrow function? What is the difference between this and ordinary function?
4, a rectangle, a cherry inside, make a straight line across the cherry, and no data and measurement tools, how to achieve scoring rectangle?
5. The same origin policy
6. How to manage routing in VUE? Do you know how he does it?
7. Mentions my blog and asks questions about my blog.
8. Understanding retina screens
9. Talk about the mobile layout. Flexible.
10, do you know the principle, how to achieve a flexible. The realization principle of REM layout. Mobile terminal penetration is what, there is no understanding of 11, say what are the ways of asynchronous programming.
12. How about the design in the project? Talk about the design.
Your blog in the round cast chart, if you want to optimize, how will you optimize.
14. What is your favorite feature in ES6 and why?
15, why choose the front end (not koban, this question is often asked…)
16, what are the properties of the CSS layout?
17, have you ever met such a problem: a border div, there is a picture, found that the picture and the border below the baseline.
18. What are the ways in which functions are called? What’s the difference between them?
19. Talk about the prototype chain (be very clear about this).
What framework has been used. Jquery before?
Who is the front end leader of your internship company?
Do you use jquery or Vue or React when given a project? Why. (This question is often asked.)
23. Talk about asynchronous programming.
Say what is the callback hell, what is the problem. How to do exception catch.
Say promise. A promise has multiple “THEN” s. If the first “THEN” fails, will the following “THEN” be executed? How to catch exceptions? If the first “then” is wrong, AND I want the next one to continue, what should I do?
26, when you learn JS, you have encountered js pit, what do you think JS knowledge will be more difficult.
27. What are the advantages of MVC? How do modules communicate with each other?
28. Determine whether two lists of infinite length (which may have rings) intersect
UITableView related optimization
30. Advantages and disadvantages, efficiency and usage scenarios of KVO, Notification and Delegate respectively
31. How do I manually notify KVO
Copy methods in Objective-C
33, Runtime, SEL and IMP difference
34. Usage scenarios and principles of AutoReleasepool
35, The implementation principle and data structure of RunLoop, when will it be used
36. Why do blocks have circular references
37, how to use GCD to achieve this requirement: A, B, C three tasks concurrently, after completion of task D.
The difference between NSOperation and GCD
The use of CoreData, how to deal with multi-threading problems
40. How to design image cache?
Have you ever designed a network control?
42. How to check whether a cell is displayed on the screen
43. The difference between processes and threads
44. Differences between TCP and UDP
45. TCP flow control
46. The difference between arrays and lists
UIView life cycle
If page A jumps to page B, which method is called first, viewDidDisappear or viewDidAppear?
Block circular reference problem
50. The nature of ARC
51. Basic concepts of RunLoop, how does it sleep?
When will Autoreleasepool be released and in what scenarios?
How do I find the first non-repeating character in a string
How do hash tables handle conflicts
How about your grades? Why not study your original major?
How to maintain login status?
Why use local storage, rather than session, session is simpler ah!
58. What is the difference between HTTP and HTTPS? (HTTP, HTTPS, http2 are all frequently asked)
59, What’s the difference between POST and GET?
What are your skills?
What do you do in the school club? What do you do?
Why don’t you want to stay in the summer internship company?
63. Why use Alamofire instead of native NSURLSession? What is the advantage of Alamofire?
64. If you had to package a web library like Alamofire or SDWebImage, how would you do it?
65, in the network library, how to optimize the image rendering in the process of fast scrolling TableView (network library can not hold TableView)?
What is the system architecture of iOS? What SDKS are commonly used?
Do you know HTTP protocol? What’s the difference between GET and POST?
What do you know about safety? How to deal with Web page hijacking? Do you know HTTPS encryption and decryption process
What’s the difference between a vue and a react?
Angular used?
What about the same origin policy? Name a JSONP? (Same origin policy and multiple approaches across domains still need to be practiced.)
What’s the difference between 72, 304 and 200? (Status codes are also a must to master, including the differences)
73. What do you know about front-end optimization? (Summary of frequently asked questions would be good)
Does Linux know? What Linux commands do you know?
What is the difference between V-if and V-show in VUE? (I can’t remember this, but it shows that Vue is bad because there are too many apis.)
What books have you read? (For example, several specialized computer courses, JavaScript advanced programming, CSS debunking, JavaScript you don’t know, Deep dive into the React technology stack, diagram HTTP, etc.)
What technology will you include
Why not learn the original major, but to change careers.
Why choose Beijing rather than Xi ‘an.
80. Project problems.
A DOM tree with two nodes, find the common parent of the two nodes. (Video interview)
What about binary trees?
What if we reverse the binary tree?
84, Concise, for different types, how to make a comparison?
React/VUE routing
What about strong and negotiated caches? (The browser cache mechanism also needs to be clear.)
87. Cross domains?
Talk about design patterns?
What optimization did you make for one of the projects?
If sending fails, how do you resolve the problem? How to send pictures? With different data types such as text and pictures, how do you realize data storage, how do you design, and how do you get the front end?
91, Websocket chat rooms have input fields, so how to get, to use a div to imitate a textarea, I said to use the re to get rid of the div, so the user entered a div? What if the delivery fails? Whether it should be sent first, or stored in Redux first, considering the user experience (like wechat).
Why is mongodb used instead of mysql?
93. What is XSS and how can I prevent it?
While buying the project to say? What is the whole process of logging in? How does the shopping cart store the design? If the value of the data in LocalStorage is out of range, how do you handle the problem? If an item is removed, how do you display it? During the login process, one user logs out and another user logs in, so whether the shopping cart still exists. Talk about the different modules of the side purchase project.
95, Tell me about the problem you encountered during the project, and how did you solve it? (This can be prepared well ~)
The use of websocket, the bottom is how to deal with. (Similar to XHR.) ,
97, WebSocket in the process of connection, there will be a new package. Balabala was a bunch of words I didn’t understand. It was embarrassing. I just said no.
98, handwritten code to determine whether the browser environment.
HTTP and HTTPS The whole process of HTTPS is drawn
100, how much time does httPS take? How much slower than HTTP
If you want to discuss these interview questions with me, please add qq: 2296575155