• 1. iOS中程序正常载入UIViewControlle时,下面四个方法哪个最先运行?

    A.viewVillAppear
    B.viewDidLoad
    C.viewDidAppear
    D.viewWillDisappear
  • 2. 类方法用什么符号标识?

    A.+
    B.-
    C.static
    D.*
  • 3. iOS中以下哪个方法不能自己手动调用?

    A.dealloc
    B.release
    C.retain
    D.new
  • 4. 以下哪个类型不能够放到NSArray中?

    A.NSString
    B.NSInteger
    C.NSDictionary
    D.NSArray
  • 5. object-c中的输出对象用哪个符号?

    A.@
    B.$
    C.&
    D.*
  • 6. protocol的方法怎样定义要求必须实现?

    A.@required
    B.@must
    C.@optional
    D.@should
  • 7. iOS中定义一个 SEL a = @selector(b),b中应该填什么?

    A.方法名字
    B.方法名字的字符串
    C.SEL參数
  • 8. Object-c的类能够多重继承么?

    A.能够
    B.不能够
  • 9. float a = 4.45;

    int b = 2.1;

    int c = a/b;

    NSLog(@"%d",c);

    请问输出结果是多少

    A.1
    B.2
    C.4
    D.5
  • 10. kvo属于哪种设计模式?

    A.观察者模式
    B.代理模式
    C.单例模式
    D.訪问者模式
  • 11. int a = 5;

    int b = 6;

    int c = a+ b++;

    请问c等于多少?

    A.5
    B.6
    C.11
    D.12
  • 12. object-c,调用c++代码须要把文件后缀改成

    A..mm
    B..m
    C..c
    D..cpp
  • 13. Cocoa中有虚基类吗?

    A.有
    B.没有
  • 14. int a = 3;

    int b = a++;

    int c = ++b;

    int d = a + b+ c++;

    NSLog(@"%d",d);

    请问输出结果是多少

    A.3
    B.6
    C.9
    D.12
  • 15. UIView * view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 20, 40)]; view 的 宽度是多少?

    A.0
    B.20
    C.30
    D.40
  • 16. 以下哪个引入文件不会引起反复包括?

    A.#import
    B.#include
    C.@class
    D.@include
  • 17. Xcode中选择模拟器编译,在Products中生成的二进制文件后缀是以下哪个?

    A..app
    B..apk
    C..ipa
    D..lib

    错误应该选择:A..app

  • 18. int a = 28;

    int b = 0;

    for (int i = 0; i<2; i++) {

    b = a%3;

    b++;

    ++b;

    }

    NSLog(@"%d",b);

    请问输出结果是多少

    A.1
    B.2
    C.3
    D.28
  • 19. Object-C中与retain语义相反的方法是?

    A.dealloc
    B.release
    C.autoRelease
    D.delete
  • 20. int m = 0;

    int n = m++;

    m = n++;

    请问m结果是多少 ?

    A.0
    B.1
    C.2
    D.3

最新文章

  1. Dagger2 (二) 进阶篇
  2. 转:C++项目中的extern &quot;C&quot; {}
  3. IOS managerTime
  4. [Config]Zabbix的Mongodb插件安装,centos
  5. Hibernate一些防止SQL注入的方式
  6. mysqldump使用方法
  7. 【MySQL】MySQL的group_concat使用例子
  8. js encodeURI方法认识
  9. ajax的data传参的两种方式
  10. 安装程序无法初始化。请下载Adobe Support Advisor检测该问题
  11. java.lang.ClassFormatError: Illegal UTF8 string in constant pool in class file Server/Request
  12. CAF(C++ actor framework)使用随笔(send sync_send)(二)
  13. xxx app 项目问题解决一览
  14. 前端MVVM框架:Knockout.JS(一)
  15. java获取类加载路径和项目根路径的5种方法
  16. UVA 10474 - Where is the Marble?--vector
  17. MySQL MGR+ Consul之数据库高可用方案
  18. optional install error: Package require os(darwin) not compatible with your platform(win32)
  19. .NetCore实践篇:分布式监控Zipkin持久化之殇
  20. [development][security][modsecurity][nginx] nginx / modsecurity development things

热门文章

  1. SonarQube Scanner for MSBuild
  2. 关于在windows下部署发布QT程序的总结
  3. POJ1456 supermarket [堆]
  4. linux 服务器之间文件传送
  5. 从Linux下载文件到Windows没有换行问题
  6. 设计模式-迭代器模式(Iterator Pattern)
  7. UML动态模型(顺序图、协作图、状态图)
  8. Codeforces 804D Expected diameter of a tree(树形DP+期望)
  9. Java并发(三):重排序
  10. Spring+Spring MVC+MyBatis整合