The face test of a certain music of higher-order surface of iOS

Source: Internet
Author: User

before interviewing a lot of enterprises, has not had time to summarize, today the interview encountered some of the classic topics listed, the answer will be added later, for everyone to learn:

1, arc in weak and assign difference, respectively used in what scene, weak the realization principle is what?

Weak property used to modify a weak reference, in the ARC environment, all weak pointers pointing to this object will be set to nil.

Asssign relative to the pointer assignment, do not operate the reference count, note that the original object is not used, be sure to set this to nil; simple Assignment, simple data types are applied to the underlying data types (for example, nsinteger,cgfloat) and C data types (int, float, double, char, and so on).

2, Gb2312,utf-8,utf-16,unicode the difference and the connection, NSString internal storage uses what code, why chooses this kind of code?

3, what data structure is the key in Nsset and Std::map stored? What are the design reasons? Why is there no nsstack,nsqueue of these two containers?

4, a IPV4 computer can directly and a IPV6 computer through the IP protocol direct communication?

5. Write a request Message containing the first byte data of a file that is requested to be http://qq.com/1.mp3 with a Get method, starting with the letter get, which contains a series of request field.

6, the function void Dispatch_async (dispatch_queue_t queue,dispatch_block_t block) in the first parameter function what does the queue mean, and what is the relationship between thread precedence?

7, the compiler is how to make block blocks of code access to the variables outside the block blocks, if you modify the variables outside the block, add the __block prefix to the variable what is the meaning?

8, implement a string comparison function, if two pointers to the same string content, return ture

BOOL strcmp (const char*psz1,const char *psz2)

9, the implementation of an OC class, this class can hold the data of the int type, the need to implement the following interface: You can pop an int data in the class, the data is stored in the time order of the pop; you can push an int data from a class, each time the data you push out is the most recent time the data is inserted. ; You can get the largest of the int data from the class. Requirements for TIME complexity O (1)

The face test of a certain music of higher-order surface of iOS

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.