易搜题 > 资格证大类 > 计算机编程 > 问题详情
问题详情

有以下程序: void fun(int a*a,int i,int i) {int t; if(i<j); {t=a[i];a[i]=a[j];a[j]=t; fun(a,++i,--j); } } main() {inta[]={1,2,3,4,5,6},i; fun(a,0,5); for(i=0;i(6;i++) cout<(a[i]; } 执行后输出结果是()。

A.6 5 4 3 2 1

B.4 3 2 1 5 6

C.4 5 6 1 2 3

D.1 2 3 4 5 6

未找到的试题在搜索页框底部可快速提交,在会员中心"提交的题"查看可解决状态。 收藏该题
查看答案

相关问题推荐

  • In your database, all the tablespaces are locally managed. You started Recovery Manager (RMAN) using recovery catalog. The following commands are used in the process of recovering the database by using the backup control file:  1.RESTORE CONTROLFILE;  2.RESTORE DATABASE;  3.ALTER DATABASE MOUNT;  4.SQL ALTER TABLESPACE temp ADD TEMPFILE  5.ALTER DATABASE OPEN RESETLOGS;  6.RECOVER DATABASE;  7.STARTUP NOMOUNT;  In what sequence would you use this process to perform the recovery?()

    A、 2, 7, 3, 5, 1, 6, 4

    B、 2, 1, 7, 6, 3, 5, 4

    C、 7, 1, 3, 2, 6, 5, 4

    D、 7, 2, 3, 1, 4, 6, 5

  • You are using the Database Resource Manager to manage database resources. You created a resource plan directive for the MANAGERS resource consumer group under the SALES_PLAN by using the following statement:   SQL>EXEC DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE   (PLAN => ’SALES_PLAN’,   GROUP_OR_SUBPLAN => ’MANAGERS’,   CPU_P1 => 100, CPU_P2 =>0,   SWITCH_GROUP => ’CLERKS’,   SWITCH_TIME_IN_CALL => 600);   A user, SCOTT, who is assigned to the MANAGERS group, starts a database session and executes a query on the database. What is the outcome if the query takes approximately 15 minutes to complete?()  

    A、 The query starts under the CLERKS group and the user, SCOTT, switches back to the MANAGERS group after the query completes.

    B、 The query starts under the MANAGERS group but terminates with an error when the execution time exceeds 10 minutes.

    C、 The query starts under the MANAGERS group and switches automatically to the CLERKS group when the execution time exceeds 10 minutes. The query does not switch back to the MANAGERS group after the query completes.

    D、 The query starts under the MANAGERS group, the user SCOTT switches automatically to the CLERKS group when the execution time exceeds 10 minutes, and then switches back to the MANAGERS group after the query completes.

  • You are shrinking the SCOTT.EMP table by executing the ALTER TABLE SCOTT.EMP SHRINK SPACE CASCADE statement. What is a prerequisite for shrinking the SCOTT.EMP table?()

    A、 You must enable the block change tracking feature.

    B、 You must have enable the flashback feature.

    C、 You must use the OMF in your database.

    D、 You must define the tablespace of the SCOTT.EMP table for automatic segment space management.

  • Exhibit,View the Exhibit and examine the Resource Manager settings for the groups at different levels. Which two effects would be the result of this setting? ()

    A

     The members of LOW_GROUP would get more priority than those of OTHER_GROUPS.

    B

     The members of SYS_GROUP would get most of the CPU allocation at level 1.

    C

     The members of LOW_GROUP would get most of the CPU allocation because it has CPU allocation at two different levels.

    D

     The members of LOW_GROUP would get no CPU allocation at level1 if the members of OTHER_GROUPS are using all the CPU at level 2.

    E

     The members of SYS_GROUP would get no CPU allocation at level 1 if the members of OTHER_GROUPS are using all the CPU at level 2.

  • You are working as a DBA on Oracle Database 9i. You plan to upgrade your 9i database to Oracle 10g. To be familiar with the new database technology, you decide to install Oracle Database 10g on your workstation at home. You create a general purpose database.   After the installation, you make the following changes in your initialization parameter file:LOG_ARCHIVE_DEST_1=’LOCATION=USE_DB_RECOVERY_FILE_DEST’   DB_RECOVERY_FILE_DEST =    ’LOCATION=d:/product/10.1.0/flash_recovery_area’  DB_RECOVERY_FILE_DEST_SIZE=10g   Where are the archived redo logs stored for your database?()

    A、 The archived redo logs are stored in an operating system-dependent location.

    B、 The archived redo logs are stored in the location specified by LOG_ARCHIVE_DEST_1.

    C、 The archived redo logs are stored in the location specified by DB_RECOVERY_FILE_DEST.

    D、 The archived redo logs are stored in the locations specified by both LOG_ARCHIVE_DEST_1 and  DB_RECOVERY_FILE_DEST.

联系客服 会员中心
TOP