关于SharedPreferences的下面正确的是()A、SharedPreferences pref=new SharedPreferences();B、Editor editor=new Editor();C、SharedPreferences对象用于读取和存储常用数据类型。D、Editor对象存储数据最后都要调用commit()方法。

题目

关于SharedPreferences的下面正确的是()

  • A、SharedPreferences pref=new SharedPreferences();
  • B、Editor editor=new Editor();
  • C、SharedPreferences对象用于读取和存储常用数据类型。
  • D、Editor对象存储数据最后都要调用commit()方法。

相似考题
参考答案和解析
正确答案:D
更多“关于SharedPreferences的下面正确的是()A、SharedPreferences pref=new SharedPreferences();B、Editor editor=new Editor();C、SharedPreferences对象用于读取和存储常用数据类型。D、Editor对象存储数据最后都要调用commit()方法。”相关问题
  • 第1题:

    This room is ______.

    Athe editor’s-in-chief’s office

    Bthe editor-in-chief’s office

    Cthe editor-in-chief office

    Dthe editor’s-in-chief office


    正确答案:B

  • 第2题:

    对于SharedPreferences的下面正确的是()

    A.SharedPreferences pref=new SharedPreferences();

    B.Editor editor=new Editor();

    C.SharedPreferences对象用于读取和存储常用数据类型

    D.Editor对象存储数据最后都要调用commit()方法。


    参考答案:D

  • 第3题:

    SharedPreferences和Preferences的修改支持事务吗?()

    A.支持,不支持

    B.不支持,不支持

    C.不支持,支持

    D.支持,支持


    参考答案:A

  • 第4题:

    SharedPreferences存放的数据类型不支持()

    • A、boolean
    • B、int
    • C、String
    • D、double

    正确答案:D

  • 第5题:

    下面哪几个前端控件能绑定和使用数据字典()

    • A、编辑器(Editor)
    • B、表单(DataForm)
    • C、表格(DataGriD.
    • D、树(DataTreE.

    正确答案:A,B,C

  • 第6题:

    只能在Curver Editor中给对象指定控制器。()


    正确答案:错误

  • 第7题:

    SharedPreferences和Preferences的修改支持事务吗?()

    • A、支持,不支持
    • B、不支持,不支持
    • C、不支持,支持
    • D、支持,支持

    正确答案:A

  • 第8题:

    Your network has client computers that run Windows 7 Enterprise.   You plan to deploy new administrative template policy settings by using custom ADMX files.   You create the custom ADMX files, and you save them on a network share. You start Group Policy Object Editor (GPO Editor).   The custom ADMX files are not available in the Group Policy editing session.   You need to ensure that the ADMX files are available to the GPO Editor.   What should you do?()

    • A、Set the network share permissions to grant all Windows 7 users Read access for the share.
    • B、Copy the ADMX files to the central store,and then restart the GPO Editor.
    • C、Copy the ADMX files to the %systemroot%/inf folder on each Windows 7 computer,and then restart the GPO Editor
    • D、Copy the ADMX files to the %systemroot%/system32 folder on each Windows 7 computer,and then restart the GPO Editor.

    正确答案:B

  • 第9题:

    单选题
    sharedPreferences获取其编辑器的方法是哪个()
    A

    getEdit()

    B

    edit()

    C

    setEdit()

    D

    getAll()


    正确答案: B
    解析: 暂无解析

  • 第10题:

    单选题
    关于SharedPreferences的下面正确的是()
    A

    SharedPreferences pref=new SharedPreferences();

    B

    Editor editor=new Editor();

    C

    SharedPreferences对象用于读取和存储常用数据类型。

    D

    Editor对象存储数据最后都要调用commit()方法。


    正确答案: D
    解析: 暂无解析

  • 第11题:

    单选题
    The Tribune was different from all other American papers because it was _____.
    A

    available by subscription only

    B

    printed in New York city

    C

    distributed throughout the nation

    D

    it offered the editor’s personal opinions only


    正确答案: C
    解析:
    句意:Horace创办《论坛报》的时候已经很富有,并且熟悉报纸行业的各项技能。文章第十五段开头提到,随着Greeley的技艺越来越好,他开始有好的工作机会,能够购置好的衣服并搬出昏暗的房子,由此可以得出Greeley当时技能纯熟,也很富有,排除B、C,D项符合原文意思。A项Greeley变得出名发生在其创办《论坛报》之后。

  • 第12题:

    单选题
    SharedPreferences和Preferences的修改支持事务吗?()
    A

    支持,不支持

    B

    不支持,不支持

    C

    不支持,支持

    D

    支持,支持


    正确答案: D
    解析: 暂无解析

  • 第13题:

    SharedPreferences存放的数据类型不支持()

    A.boolean

    B.int

    C.String

    D.double


    参考答案:D

  • 第14题:

    对于一个已经存在的SharedPreferences对象setting,想向其中存入一个字符串"person",setting应该先调用什么方法?()

    A.edit()

    B.save()

    C.commit()

    D.putString()


    参考答案:A

  • 第15题:

    Android智能手机操作系统可以使用简单存储SharedPreferences存储数据。()

    此题为判断题(对,错)。


    参考答案:正确

  • 第16题:

    Which action change the default editor for ALL users on the system from vi to edit()

    • A、Issue the command: export EDITOR=/usr/bin/edit edit each user .profile to change the EDITOR value to /usr/bin/edit
    • B、Modify /.profile and change the EDITOR variable to /usr/bin/edit
    • C、Modify /etc/environment and add EDITOR=/usr/bin/edit export EDITOR
    • D、Modify /etc/security/defaults and change the EDITOR value to /usr/bin/edit

    正确答案:C

  • 第17题:

    Which action changes the default editor for ALL users on the system from vi to edit of the following?()

    • A、Issue the command:  export EDITOR=/usr/bin/edit
    • B、Modify /.profile and change the EDITOR variable to /usr/bin/edit
    • C、Modify /etc/environment and add  EDITOR=/usr/bin/edit  export EDITOR
    • D、Modify /etc/security/defaults and change the EDITOR value to /usr/bin/edit

    正确答案:C

  • 第18题:

    sharedPreferences获取其编辑器的方法是哪个()

    • A、getEdit()
    • B、edit()
    • C、setEdit()
    • D、getAll()

    正确答案:B

  • 第19题:

    以下关于访问其他应用程序的SharedPreferences的说法不正确的是()

    • A、Preferences能在不同包之间使用。
    • B、共享者需要将SharedPreferences的访问模式设置为全局读或全局写。
    • C、访问者需要知道共享者的包名称和SharedPreferences的名称,以通过Context获得SharedPreferences对象。
    • D、访问者需要确切知道每个数据的名称和数据类型,用以正确读取数据。

    正确答案:A

  • 第20题:

    单选题
    The only lucid arguments printed in the newspaper concerning the new bond proposal was put forth by the high school principal who wrote a series of letters to the newspaper’s editor.
    A

    The only lucid arguments printed in the newspaper concerning the new bond proposal was put forth by the high school principal in a series of letters to the newspaper’s editor.

    B

    The principal of the high school wrote a series of letters to the newspaper’s editor that put forth the only lucid argument concerning the new bond proposal that was printed in the newspaper.

    C

    In a series of letters to the newspaper’s editor, the principal of the high school put forth the only lucid argument concerning the new bond proposal to be printed in the newspaper.

    D

    The high schoolh principal’s series of letters to the newspaper’s editor lucidly put forth the only arguments concerning the new bond proposal to be printed in the newspaper.

    E

    Putting forth the only lucid arguments concerning the new bond proposal to be printed in the newspaper, the series of letters to the newspaper’s editor were written by the high school’s principal.


    正确答案: C
    解析:
    A、D项“arguments…was”和“series…puts forth”表达存在主谓不一致问题;B项表达与句意不符;E项不符合习惯表达,故本题应选C项。

  • 第21题:

    单选题
    以下关于访问其他应用程序的SharedPreferences的说法不正确的是()
    A

    Preferences能在不同包之间使用。

    B

    共享者需要将SharedPreferences的访问模式设置为全局读或全局写。

    C

    访问者需要知道共享者的包名称和SharedPreferences的名称,以通过Context获得SharedPreferences对象。

    D

    访问者需要确切知道每个数据的名称和数据类型,用以正确读取数据。


    正确答案: A
    解析: 暂无解析

  • 第22题:

    判断题
    只能在Curver Editor中给对象指定控制器。()
    A

    B


    正确答案:
    解析: 暂无解析

  • 第23题:

    单选题
    Your network has client computers that run Windows 7 Enterprise.   You plan to deploy new administrative template policy settings by using custom ADMX files.   You create the custom ADMX files, and you save them on a network share. You start Group Policy Object Editor (GPO Editor).   The custom ADMX files are not available in the Group Policy editing session.   You need to ensure that the ADMX files are available to the GPO Editor.   What should you do?()
    A

    Set the network share permissions to grant all Windows 7 users Read access for the share.

    B

    Copy the ADMX files to the central store,and then restart the GPO Editor.

    C

    Copy the ADMX files to the %systemroot%/inf folder on each Windows 7 computer,and then restart the GPO Editor

    D

    Copy the ADMX files to the %systemroot%/system32 folder on each Windows 7 computer,and then restart the GPO Editor.


    正确答案: C
    解析: 暂无解析