iOS face Test 9

Source: Internet
Author: User
iOS face test 9
1. When you use Xcode to create a project, the version management library that supports simultaneous creation is (C)
A.subversion
B.mercurial
C.git
D.concurrent Version System


2.UIEdgeInsets edgeinsets = Uiedgeinsetsmake (10,10,10,10);
@synchronized (edgeinsets) {}


About this code, the correct statement: (D)
A. Code written inside curly braces that will ensure multithreaded access edgeinsets not error
B. Uiedgeinsetsmake is a method of constructing uiedgeinsets data types
C. Uiedgeinsets is essentially the basic data type in OC
D. Code Errors


Explain
Only the object type ID can be stored, and now is a basic data type


Uiedgeinsets is a special type, and Nsrange,cgrect is essentially a struct type.
Because OC does not have a namespace, it can only be distinguished using prefixes, but many of the non-object types in OC use the same prefix as the object type, paying attention to the screening (general non-object types are created with no * numbers, except IDs)
@synchronized used to protect the object being accessed can have only one thread at a time, ensuring that the thread accesses the object without error.


3. How to add a child view, which is the embodiment of object-oriented features. C
A. Package B. Inherit C. Polymorphism D. Protocol


Polymorphism: Addsubview parent class pointer to subclass object
View Type-label


4. Excellent program design, which should follow the following guidelines. B
A. High cohesion, high coupling
B. High cohesion, low coupling
C. Low cohesion, high coupling
D. Low cohesion, low coupling


5. When creating Windows for an application, which of the following is the necessary reason for declaring a property. B
A. The inside of a class can be accessed
B. External access to the class
C. Extension of the Declaration cycle
D. copy window copy




Copyright statement: This article by http://www.bestnathan.com/Original, Welcome to reprint share. Please respect the work of the author, reprinted when the statement and the author blog link, thank you
Related Article

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.