更多“ContentResolver用什么方法查询ContentProvider提供的内容()A、select()B、retrieve()C、query()D、execute()”相关问题
  • 第1题:

    继承ContentProvider不需要实现()等方法。

    A.add

    B.delete

    C.update

    D.query


    参考答案:A

  • 第2题:

    ContentResolver用什么方法查询Content Provider提供的内容()

    A.select()

    B.retrieve()

    C.query()

    D.execute()


    参考答案:C

  • 第3题:

    EJB3.0中的查询接口是()

    A.Select API

    B.Find API

    C.Selected API

    D.Query API


    参考答案:D

  • 第4题:

    根据你的理解,ContentProvider和ContentResolver两者间是什么关系?


    正确答案: (1)应用程序可以通过客户端ContentResolver对象访问一个ContentProvider中数据,ContentResolver有与ContentProvider对象中对应名称的方法(Method),调用这些方法完成基本的“CRUD”(Create,Retrieve,Update,andDelete)操作。
    (2)ContentResolver对象在客户应用进程中,而ContentProvider对象是在数据提供者的应用中,两者配合处理进程间通讯。
    (3)ContentProvider实际上还负责将内部数据转换成对外的表格形式,ContentProvider可以为多个不同的ContentResolver提供服务。

  • 第5题:

    EJB3.0中的查询接口是()

    • A、Select API
    • B、Find API
    • C、Selected API
    • D、Query API

    正确答案:D

  • 第6题:

    A user executes a query on the EMPtable, which contains thousands of rows, to get details about employees in one of the departments. The user receives the following error:  SQL> SELECT ename FROM emp WHERE deptno=10 ORDER BY sal;  SELECT ename FROM emp WHERE deptno=10 ORDER BY sal  ERROR at line 1:  ORA-01157: cannot identify/lock data file  201 - see DBWR trace file ORA-01110: data file 201:’/u01/app/oracle/oradata/orcl/temp01.dbf’  What is a possible reason?()

    • A、 The tempfile belonging to the default temporary tablespace is missing.
    • B、 The database is opened in restricted mode, so queries are not allowed
    • C、 The default temporary tablespace required to execute the query is offline.
    • D、 The default temporary tablespace required to execute the query is dropped.
    • E、 The default temporary tablespace required to execute the query is read-only.

    正确答案:A

  • 第7题:

    下列关于ContentProvider的说法错误的是()

    • A、ContentProvider的作用是实现数据共享和交换
    • B、要访问ContentProvider,只需调用ContentProvider的增删改查相关方法
    • C、ContentProvider提供的URI必须以“content://”开头
    • D、Android对于系统里的音视频、图像、通讯录提供了内置的ContentProvider

    正确答案:B

  • 第8题:

    Staternent类提供3种执行方法,用来执行更新操作的是()。

    • A、executeQuery()
    • B、executeUpdate()
    • C、execute()
    • D、query()

    正确答案:B

  • 第9题:

    What is necessary for your query on an existing view to execute successfully? ()

    • A、The underlying tables must have data.
    • B、You need SELECT privileges on the view.
    • C、The underlying tables must be in the same schema.
    • D、You need SELECT privileges only on the underlying tables.

    正确答案:B

  • 第10题:

    单选题
    What is necessary for your query on an existing view to execute successfully?()
    A

    The underlying tables must have data.

    B

    You need SELECT privileges on the view.

    C

    The underlying tables must be in the same schema.

    D

    You need SELECT privileges only on the underlying tables.


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

  • 第11题:

    问答题
    根据你的理解,ContentProvider和ContentResolver两者间是什么关系?

    正确答案: (1)应用程序可以通过客户端ContentResolver对象访问一个ContentProvider中数据,ContentResolver有与ContentProvider对象中对应名称的方法(Method),调用这些方法完成基本的“CRUD”(Create,Retrieve,Update,andDelete)操作。
    (2)ContentResolver对象在客户应用进程中,而ContentProvider对象是在数据提供者的应用中,两者配合处理进程间通讯。
    (3)ContentProvider实际上还负责将内部数据转换成对外的表格形式,ContentProvider可以为多个不同的ContentResolver提供服务。
    解析: 暂无解析

  • 第12题:

    单选题
    以下关于ContentResolver的说法错误的是()
    A

    当外部应用需要对ContentProvider中的数据进行添加、删除、修改和查询操作时,可以使用ContentResolver类来完成。

    B

    ContentResolver类提供了与ContentProvider类相同签名的insert、delete、update方法,但是没有提供query方法。

    C

    通过ContentResolver对ContentProvider中的数据进行操作的时候,当需要将id为1时记录的name字段值更改为csg的时候,使用ContentValues的put方法,put(name,csg)。

    D

    要获取ContentResolver对象,可以使用Activity提供的getContentResolver()方法。


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

  • 第13题:

    下列关于ContentProvider的说法错误的是:()

    A.ContentProvider的作用是实现数据共享和交换

    B.要访问ContentProvider,只需调用ContentProvider的增删改查相关方法

    C.ContentProvider提供的URI必须以“content://”开头

    D.Android对于系统里的音视频、图像、通讯录提供了内置的ContentProvider


    参考答案:B

  • 第14题:

    What is necessary for your query on an existing view to execute successfully? ()

    A. The underlying tables must have data.

    B. You need SELECT privileges on the view.

    C. The underlying tables must be in the same schema.

    D. You need SELECT privileges only on the underlying tables.


    参考答案:B

  • 第15题:

    继承ContentProvider不需要实现()等方法。

    • A、add
    • B、delete
    • C、update
    • D、query

    正确答案:A

  • 第16题:

    应用组件获得一个ContentResolver对象的方法名称是什么?ContentResolver访问的数据由什么对象提供?


    正确答案: (1)ContentResolver是访问Provider的客户端对象。可以通过应用组件(Activity、Service或者其他Context对象)的成员方法getContentResolver。
    获取:ContentResolver cr=getContentResolver()
    (2)ContentResolver访问的数据由ContentProvider对象提供。

  • 第17题:

    A user executes a query on the EMP table, which contains thousands of rows, to get details about employees in one of the departments. The user receives the following error: SQL> SELECT ename FROM emp WHERE deptno=10 ORDER BY sal; SELECT ename FROM emp WHERE deptno=10 ORDER BY sal  *  ERROR at line 1:  ORA/x7f01157: cannot identify/lock data file 201 /x7f see DBWR trace file  ORA/x7f01110: data file 201: ’/u01/app/oracle/oradata/orcl/temp01.dbf’  What is a possible reason?()

    • A、The tempfile belonging to the default temporary tablespace is missing.
    • B、The database is opened in restricted mode, so queries are not allowed.
    • C、The default temporary tablespace required to execute the query is offline.
    • D、The default temporary tablespace required to execute the query is dropped.
    • E、The default temporary tablespace required to execute the query is read­only.

    正确答案:A

  • 第18题:

    You are creating the DEPT_SAL data block from the PAYHIST form. Users should be able to enter a valid department ID number, which will then display the employee salary information for that department. This data block could potentially retrieve a large number of records. Since users will probably only view a small number of these records, only 10 records should be fetched at one time. How would you create the data block?()

    • A、Select The Data Blocks node in the Object Navigator and click the Create button. Choose to build the data block manually, enter the procedure name in the Query Data Source Columns property, and the procedure code in the Query Data Source Arguments property. 
    • B、Choose Tools -> Data Block Wizard, select Table as the data source type, and base the block on the columns from the tables. 
    • C、Choose Tools -> Data Block Wizard, select, View as the data source type, and base the block on the columns from the tables. 
    • D、Select the Data Blocks node in the Object Navigator and click the Create button. Choose to build the data block manually, alter the Query Data Source Type property to 'FROM clause query', and enter the SELECT statement in the Query Data Source Name property. 
    • E、Select the Data Block node in the Object Navigator and click the Create button. Alter the Query Data Source Type, Query Data Source Name, Query Data Sources Columns, and Query Data Source Arguments properties to create a stored procedure that uses a red cursor.

    正确答案:E

  • 第19题:

    以下关于ContentResolver的说法错误的是()

    • A、当外部应用需要对ContentProvider中的数据进行添加、删除、修改和查询操作时,可以使用ContentResolver类来完成。
    • B、ContentResolver类提供了与ContentProvider类相同签名的insert、delete、update方法,但是没有提供query方法。
    • C、通过ContentResolver对ContentProvider中的数据进行操作的时候,当需要将id为1时记录的name字段值更改为csg的时候,使用ContentValues的put方法,put("name","csg")。
    • D、要获取ContentResolver对象,可以使用Activity提供的getContentResolver()方法。

    正确答案:B

  • 第20题:

    Which two statements about subqueries are true? ()

    • A、A subquery should retrieve only one row.
    • B、A subquery can retrieve zero or more rows.
    • C、A subquery can be used only in SQL query statements.
    • D、Subqueries CANNOT be nested by more than two levels.
    • E、A subquery CANNOT be used in an SQL query statement that uses group functions.
    • F、When a subquery is used with an inequality comparison operator in the outer SQL statement, the column list in the SELECT clause of the subquery should contain only one column.

    正确答案:B,F

  • 第21题:

    单选题
    ContentResolver用什么方法查询ContentProvider提供的内容()
    A

    select()

    B

    retrieve()

    C

    query()

    D

    execute()


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

  • 第22题:

    问答题
    应用组件获得一个ContentResolver对象的方法名称是什么?ContentResolver访问的数据由什么对象提供?

    正确答案: (1)ContentResolver是访问Provider的客户端对象。可以通过应用组件(Activity、Service或者其他Context对象)的成员方法getContentResolver。
    获取:ContentResolver cr=getContentResolver()
    (2)ContentResolver访问的数据由ContentProvider对象提供。
    解析: 暂无解析

  • 第23题:

    多选题
    Which two statements about subqueries are true? ()
    A

    A subquery should retrieve only one row.

    B

    A subquery can retrieve zero or more rows.

    C

    A subquery can be used only in SQL query statements.

    D

    Subqueries CANNOT be nested by more than two levels.

    E

    A subquery CANNOT be used in an SQL query statement that uses group functions.

    F

    When a subquery is used with an inequality comparison operator in the outer SQL statement, the column list in the SELECT clause of the subquery should contain only one column.


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