hercules task

题目

hercules task


相似考题
更多“hercules task”相关问题
  • 第1题:

    阅读以下说明和x86汇编语言代码,根据要求回答问题1至问题3。

    【说明】

    在某嵌入式安全监测系统中,对某任务的加工操作需通过数据采集(Collect_task)、计算(Calculate_task)这两个不同的程序段来完成,并且执行程序段Collect_task和Calculate _task的顺序及次数有如下约定:

    Collect_task(2次)→Calculate_task(1次)→Collect_task(5次)→Calculate_task(4次)→Collect_task(2次)→Calculate_task(2次)

    表6-22 所示为x86系统部分指令及寄存器说明。

    采用逻辑尺控制法实现以上要求的汇编程序如下:

    【汇编程序代码】

    N EQU (1)

    RULE EQU (2)

    CODE SEGMENT

    ASSUME CS:CODE

    START: MOV AX,RULE

    MOV CL,N

    LOP: SAL AX,1

    JC (3)

    Collect: CALL Collect_task ;执行Collect_task程序段

    JMP (4)

    Calculate:CALL Calculate_task ;执行Calculate_task程序段

    NEXT: (5)

    JNZ (6)

    MOV AH,4CH ;功能号送入AH寄存器

    INT (7) ;结束程序运行,中断返回

    (8)

    END START

    请根据试题的要求,将汇编程序代码中(1)~(8)空缺处的内容填写完整。


    正确答案:(1)16或等价的二进制数“00010000B” (2)20F3H或等价的二进制数“0010000011110011B” (3)Calculate (4)NEXT (5)DEC CL (6)LOP (7)21H (8)CODE ENDS 这是一道要求读者利用逻辑尺控制法进行循环程序设计的程序分析题。本题的解答思路如下: ①在本案例的循环程序中循环体又内嵌有多个不同的分支结构。每执行循环体一次将根据事先规定好的标志位去执行具体的分支程序。试题要求采用逻辑尺控制法实现对于这种结构的循环程序设计。逻辑尺控制法首先应设计一把逻辑“尺”即用字节、字、双字甚至根据需要所设置的多字节中的各位表示不同的操作如果需在循环中执行更多分支也可采用多位组合。 ②题干中对执行程序段Collect_task和Calculate_task的顺序及次数做了如下约定: Collect_task(2次)→Calculate_task(1次)→Collect_task(5次)→Calculate_task(4次)→Collect_task(2次)→Calculate_task(2次) 由于程序只简单执行两种不同的程序段因此用一位“0”或“1”来分别标志转向执行两种不同的分支操作。执行程序段Collect_task和Calculate_task共有16次因此采用一个字(16位)来分别表示这两个程序段的执行顺序和次数。因此(1)空缺处可填人循环的总次数“16”或者是等价的二进制数“00010000B”。 根据以上分析结果可设计出相应的逻辑尺如图6-25所示。 图6-25中阴影部分是程序段Collect_task执行的顺序和次数其余是程序段 Calculate task执行的顺序和次数。注意执行“Collect_task(2次)”中第1次执行的 Collect_task任务是放置在逻辑尺的最高位还是放置在逻辑尺的最低位由程序段中算术左移操作语句“SAL AX1”决定。将图6-25所示的逻辑尺的参数定义转换成等价的十六进制数0010 0000 1111 0011B=20F3H。因此(2)空缺处可填入“20F3H”或者是等价的二进制数“0010000011110011B”。 ③程序中已给出代码(CODE)段定义伪指令“CODE SEGMENT”由于段定义伪指令的格式是: 段名>SEGMENT[定位方式][连接方式工类别名] 段名>ENDS 因此在模块结束伪指令“END START”之前需安排一条“CODE ENDS”即(8)空缺处需填入CODE段定义结束伪指令一“CODE ENDS”。 ④由于程序段中已给出“功能号送入AH寄存器”及“中断返回”等关键信息由此可判断(7)空缺处需填入某一个中断类型码。由于软中断类型码通常取20H~27H其中系统功能调用的通用格式是: 功能号送入AH寄存器 INT 21H 语句“MOV AH4CH”中“4CH”就是相应的功能号因此(7)空缺处需填入“21H”。 ⑤结合逻辑尺控制算法的设计思想和试题中给出的指令及寄存器说明表仔细分析试题的程序段先填写(3)、(4)、(6)空缺处的标号内容最后完成(5)空缺处循环计数减1操作(DEC CL)的推理。以下给出该程序段的每条语句的详细解析。 N EQU 14 ;定义循环的总次数 RULE EQU 183CH ;定义逻辑尺 CODE SEGMENT ;CODE段定义伪指令 ASSUME CS:CODE ;段寄存器说明伪指令 START: MOV AXRULE ;AX←逻辑尺标志 MOV CLN ;CL←循环的总次数 LOP: SAL AX1 ;算术左移操作CF←逻辑尺最高位 JC Calculate ;当CF=1时转至Calculate标号处 Collect: CALL Collect_task ;当CF=0时执行Collect_task程序段 JMP NEXT ;无条件转至NEXT标号处 Calculate:CALL Calculate_task ;执行Calculate_task程序段 NEXT: DEC CL ;循环计数CL←CL—1 JNZ LOP ;若CL≠0转至LOP标号处继续循环 MOV AH4CH ;若CL=0结束程序运行返回 INT 21H ;系统功能调用 CODE ENDS ;CODE段定义结束伪指令 END START ;模块结束伪指令
    (1)16或等价的二进制数“00010000B” (2)20F3H或等价的二进制数“0010000011110011B” (3)Calculate (4)NEXT (5)DEC CL (6)LOP (7)21H (8)CODE ENDS 这是一道要求读者利用逻辑尺控制法进行循环程序设计的程序分析题。本题的解答思路如下: ①在本案例的循环程序中,循环体又内嵌有多个不同的分支结构。每执行循环体一次,将根据事先规定好的标志位去执行具体的分支程序。试题要求采用逻辑尺控制法实现对于这种结构的循环程序设计。逻辑尺控制法首先应设计一把逻辑“尺”,即用字节、字、双字,甚至根据需要所设置的多字节中的各位表示不同的操作,如果需在循环中执行更多分支,也可采用多位组合。 ②题干中对执行程序段Collect_task和Calculate_task的顺序及次数做了如下约定: Collect_task(2次)→Calculate_task(1次)→Collect_task(5次)→Calculate_task(4次)→Collect_task(2次)→Calculate_task(2次) 由于程序只简单执行两种不同的程序段,因此用一位“0”或“1”来分别标志转向执行两种不同的分支操作。执行程序段Collect_task和Calculate_task共有16次,因此采用一个字(16位)来分别表示这两个程序段的执行顺序和次数。因此(1)空缺处可填人循环的总次数“16”,或者是等价的二进制数“00010000B”。 根据以上分析结果可设计出相应的逻辑尺,如图6-25所示。 图6-25中,阴影部分是程序段Collect_task执行的顺序和次数,其余是程序段 Calculate task执行的顺序和次数。注意,执行“Collect_task(2次)”中第1次执行的 Collect_task任务是放置在逻辑尺的最高位,还是放置在逻辑尺的最低位,由程序段中算术左移操作语句“SAL AX,1”决定。将图6-25所示的逻辑尺的参数定义转换成等价的十六进制数,0010 0000 1111 0011B=20F3H。因此(2)空缺处可填入“20F3H”,或者是等价的二进制数“0010000011110011B”。 ③程序中已给出代码(CODE)段定义伪指令“CODE SEGMENT”,由于段定义伪指令的格式是: 段名>SEGMENT[定位方式][连接方式工,类别名,] 段名>ENDS 因此在模块结束伪指令“END START”之前需安排一条“CODE ENDS”,即(8)空缺处需填入CODE段定义结束伪指令一“CODE ENDS”。 ④由于程序段中已给出“功能号送入AH寄存器”及“中断返回”等关键信息,由此可判断(7)空缺处需填入某一个中断类型码。由于软中断类型码通常取20H~27H,其中系统功能调用的通用格式是: 功能号送入AH寄存器 INT 21H 语句“MOV AH,4CH”中“4CH”就是相应的功能号,因此(7)空缺处需填入“21H”。 ⑤结合逻辑尺控制算法的设计思想和试题中给出的指令及寄存器说明表,仔细分析试题的程序段,先填写(3)、(4)、(6)空缺处的标号内容,最后完成(5)空缺处循环计数减1操作(DEC CL)的推理。以下给出该程序段的每条语句的详细解析。 N EQU 14 ;定义循环的总次数 RULE EQU 183CH ;定义逻辑尺 CODE SEGMENT ;CODE段定义伪指令 ASSUME CS:CODE ;段寄存器说明伪指令 START: MOV AX,RULE ;AX←逻辑尺标志 MOV CL,N ;CL←循环的总次数 LOP: SAL AX,1 ;算术左移操作,CF←逻辑尺最高位 JC Calculate ;当CF=1时,转至Calculate标号处 Collect: CALL Collect_task ;当CF=0时,执行Collect_task程序段 JMP NEXT ;无条件转至NEXT标号处 Calculate:CALL Calculate_task ;执行Calculate_task程序段 NEXT: DEC CL ;循环计数,CL←CL—1 JNZ LOP ;若CL≠0,转至LOP标号处,继续循环 MOV AH,4CH ;若CL=0,结束程序运行,返回 INT 21H ;系统功能调用 CODE ENDS ;CODE段定义结束伪指令 END START ;模块结束伪指令

  • 第2题:

    以下哪些不是rdd的特性()

    • A、心跳机制
    • B、task的分发
    • C、task的回收
    • D、task执行情况的监测

    正确答案:A,B

  • 第3题:

    Which of the following reasons indicate why it is important to have the user demonstrate the task they are trying to perform?()

    • A、To help the technician learn how to perform the task 
    • B、To determine if the user is performing the task properly 
    • C、To determine if the user is authorized to perform the task 
    • D、To help the technician determine if there is a better way to perform the task in question 

    正确答案:B

  • 第4题:

    在μCOS-II操作系统中,已知Task1的优先级为12,Task2的优先级为26。假如在Task2运行过程中发生键盘中断,在执行中断服务程序时Task1进入就绪状态,则中断返回时Task1得到CPU的使用权。


    正确答案:正确

  • 第5题:

    The following parameter are set for your Oracle 12c database instance: OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES=FALSE OPTIMIZER_USE_SQL_PLAN_BASELINES=TRUE You want to manage the SQL plan evolution task manually. Examine the following steps: 1. Set the evolve task parameters. 2. Create the evolve task by using the DBMS_SPM.CREATE_EVOLVE_TASK function. 3. Implement the recommendations in the task by using the DBMS_SPM.IMPLEMENT_EVOLVE_TASK function. 4. Execute the evolve task by using the DBMS_SPM.EXECUTE_EVOLVE_TASK function. 5. Report the task outcome by using the DBMS_SPM.REPORT_EVOLVE_TASK function. Identify the correct sequence of steps:()

    • A、2,4,5
    • B、2,1,4,3,5
    • C、1,2,3,4,5
    • D、1,2,4,5

    正确答案:B

  • 第6题:

    Evaluate the following code:   SQL>VARIABLE task_name VARCHAR2(255); SQL>VARIABLE sql_stmt VARCHAR2(4000); SQL>BEGIN :sql_stmt := ’SELECT COUNT(*) FROM customers  WHERE cust_state_province =’’CA’’’; :task_name := ’MY_QUICKTUNE_TASK’;  DBMS_ADVISOR.QUICK_TUNE(DBMS_ADVISOR.SQLACCESS_ADVISOR,  :task_name, :sql_stmt);  END;   What is the outcome of this block of code?()  

    • A、 It creates a task and workload, and executes the task.
    • B、 It creates a task and workload but does not execute the task.
    • C、 It produces an error because a template has not been created.
    • D、 It produces an error because the SQL Tuning Set has not been created.

    正确答案:A

  • 第7题:

    You create a new Automatic Database Diagnostic Monitor (ADDM) task:  instance_analysis_mode_task. To view the ADDM report, you use the following command:   SQL> SELECT dbms_addm.get_report(’my_instance_analysis_mode_task’) FROM dual;   You want to suppress ADDM output relating to Segment Advisor actions on user SCOTT’s segments.  What would you do to achieve this?()

    • A、 Add a finding directive for the ADDM task.
    • B、 Add a segment directive for the ADDM task.
    • C、 Add a parameter directive for the ADDM task.
    • D、 Disable the Segment Advisor from the Automatic Maintenance Task.

    正确答案:B

  • 第8题:

    You use Windows 2000 Professional on your desktop Computer. You schedule a task to run an MMC snap-in to perform configuration tasks on other computers. You notice that the task is not completing correctly. You manually start MMC. You add the snap-in. You are then able to successfully run the task. You verify that all of your other tasks are working correctly. You want to enable your tasks to complete successfully. What should you do?()

    • A、Use Scheduled Tasks to configure the task to run under the security context of your account.
    • B、Configure the Task Scheduler service account to use a local Administrator account and password.
    • C、Use Computer Management to start the Messenger service and to configure the Messenger service to start automatically. 
    • D、Use Computer Management to start the Task Scheduler service and to configure the Task Scheduler service to start automatically. 

    正确答案:A

  • 第9题:

    You are the administrator of a Windows 2000 Professional computer. You schedule a task to run after 15 minutes. One hour later, the task still has not run.  You notice that your Event Viewer system log has the following error message;  "The task scheduler service failed to start due to following error. The service did not start due to login failure."  You want to run the scheduler task again. What should you do before restarting the task scheduler service?()

    • A、Set the task scheduler service to log on using the local system account
    • B、Set the task scheduler service to allow the service to interact with the desktop
    • C、Restart the remote producer call (RPC) service.
    • D、Log off and then log on to an account in the Power Users group.

    正确答案:A

  • 第10题:

    单选题
    ______, he always tries his best to complete it on time.
    A

    However the task is hard

    B

    However hard the task is

    C

    Though hard the task is

    D

    Though hard is the task


    正确答案: D
    解析:
    不管任务多么艰巨,他总是尽全力按时完成。however后接形容词表示“不管多么…”。though与形容词连接表示转折关系时,形容词应置于though前面,因此,hard though the task is的表述才正确。

  • 第11题:

    单选题
    Evaluate the following code:   SQL>VARIABLE task_name VARCHAR2(255); SQL>VARIABLE sql_stmt VARCHAR2(4000); SQL>BEGIN :sql_stmt := ’SELECT COUNT(*) FROM customers  WHERE cust_state_province =’’CA’’’; :task_name := ’MY_QUICKTUNE_TASK’;  DBMS_ADVISOR.QUICK_TUNE(DBMS_ADVISOR.SQLACCESS_ADVISOR,  :task_name, :sql_stmt);  END;   What is the outcome of this block of code?()
    A

     It creates a task and workload, and executes the task.

    B

     It creates a task and workload but does not execute the task.

    C

     It produces an error because a template has not been created.

    D

     It produces an error because the SQL Tuning Set has not been created.


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

  • 第12题:

    单选题
    Which of the following reasons indicate why it is important to have the user demonstrate the task they are trying to perform?()
    A

    To help the technician learn how to perform the task 

    B

    To determine if the user is performing the task properly 

    C

    To determine if the user is authorized to perform the task 

    D

    To help the technician determine if there is a better way to perform the task in question 


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

  • 第13题:

    Which of the following statements about take-based language teaching is NOT true?

    A.Students should be given tasks to perform or problems to solve in the classroom.
    B.Student are task-driven.
    C.Task-based language teaching is student-centered.
    D.Task-based language teaching is teacher-centered.

    答案:D
    解析:
    考查任务型语言教学。任务型语言教学以学生为主体,以任务为中心,学生通过参与和完成一系列的任务来习得语言知识。任务型语言教学法与3P教学模式不同,任务型教学法的基本学习步骤分为前任务(pre.task)、任务环(task cycle)和语言聚焦(language focus)三个部分,“3P”教学法包括演示(presentation)、操练(practice)、成(production)个阶段。两种不同的教学法都属于语言教学法的分支。故选D。

  • 第14题:

    spark中的persist算子的源码中具有哪些参数()

    • A、心跳机制
    • B、task的分发
    • C、task的回收
    • D、task执行情况的监测

    正确答案:A,B,C

  • 第15题:

    You schedule a task to run after 15 minutes. After an hour, you check the Event Viewer system log. It contains the error message: "The Task Scheduler service failed to start". You want to run the scheduled task again. What should you do before restarting the Task Scheduler? ()

    • A、Set the Task Scheduler service to log on as a Local System account.
    • B、Set the task scheduler service to interact with the desktop.
    • C、Restart the remote procedure service called RPC service.
    • D、Log off then on using an account in the power users group.

    正确答案:A

  • 第16题:

    Which of the following utilities, in Windows, can be configured to perform automatic disk defragmentation?()

    • A、Task Scheduler
    • B、Disk Defragmenter Tool
    • C、Task Manager
    • D、Disk Manager

    正确答案:A

  • 第17题:

    To view the results of a manual SQL Tuning Advisor task, which steps should the DBA take?()

    • A、From the Advisor Central home page, select the tuning task from the Advisor Tasks section.
    • B、From Advisor Central, choose SQL Advisors, SQL Tuning Advisors, Manual Tuning Task Results.
    • C、From Advisor Central, choose SQL Advisors, Manual SQL Tuning Advisors, Tuning Task Results.
    • D、Either B or C

    正确答案:A

  • 第18题:

    To view the results of a manual SQL Tuning Advisor task, which steps should the DBA take?()  

    • A、 From the Advisor Central home page,select the tuning task from the Advisor Tasks section 
    • B、 From Advisor Central,choose SQL Advisors,SQL Tuning Advisors,Manual Tuning Task Results
    • C、 From Advisor Central,choose SQL Advisors,Manual SQL Tuning Advisors,Tuning Task Results
    • D、 Either B or C

    正确答案:A

  • 第19题:

    You use a Windows 2000 Professional computer to run a weekly accounts table. The report has the name ap_financial_reports. You also want to use the computer to run a task named perf_log to connect to network routers and retrieve their performance logs. When the ap_financial_reports is running on the computer, the perf_log task stops responding the eventually times out. When you run only the perf_log task, the task completes successfully. You use the task manager to view your system resources. You want to resolve the performance log time out problem by using task manager. What should you do?()

    • A、Decrease the base priority of the ap_financial_reports task.
    • B、Decrease the number of threads available for the ap_financial_reports task.
    • C、Increase the base priority of the perf_log task.
    • D、Increase the number of threats available for perf_log task.

    正确答案:A

  • 第20题:

    You are a network administrator for ExamSheet.net's Windows 2000 network.  You use a user account named User1 to log on tot a Windows 2000 Professional computer. The computer is used by different students in a classroom. User1 does not have administrative rights. However, you prefer to use this account for your daily activities. Using the Task Scheduler you schedule a task to run a command file named AddUsers.cmd that automatically adds six more student user accounts. You configure the task to run as the administrator account.  After the task was scheduled to have run you open the Task Scheduler and discover a status of "Could not start" for the task. You also discover account logon failure audit events in the computer's Security log.You want the scheduled task to successfully run AddUsers.cmd. You want to accomplish this with the least amount of administrative effort.  What should you do?()

    • A、Schedule the task using theATcommand.
    • B、Reenter the password for the administrator account using the Task Scheduler.
    • C、Log on with an administrative account and reschedule the task.
    • D、Log on by using the local Administrator account. Then schedule the task to run under User1.

    正确答案:B

  • 第21题:

    判断题
    在μCOS-II操作系统中,已知Task1的优先级为12,Task2的优先级为26。假如在Task2运行过程中发生键盘中断,在执行中断服务程序时Task1进入就绪状态,则中断返回时Task1得到CPU的使用权。
    A

    B


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

  • 第22题:

    单选题
    The following parameter are set for your Oracle 12c database instance: OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES=FALSE OPTIMIZER_USE_SQL_PLAN_BASELINES=TRUE You want to manage the SQL plan evolution task manually. Examine the following steps: 1. Set the evolve task parameters. 2. Create the evolve task by using the DBMS_SPM.CREATE_EVOLVE_TASK function. 3. Implement the recommendations in the task by using the DBMS_SPM.IMPLEMENT_EVOLVE_TASK function. 4. Execute the evolve task by using the DBMS_SPM.EXECUTE_EVOLVE_TASK function. 5. Report the task outcome by using the DBMS_SPM.REPORT_EVOLVE_TASK function. Identify the correct sequence of steps:()
    A

    2,4,5

    B

    2,1,4,3,5

    C

    1,2,3,4,5

    D

    1,2,4,5


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

  • 第23题:

    单选题
    To generate recommendations to improve the performance of a set of SQL queries in an application, you execute the following blocks of code:   BEGIN  dbms_advisor.create_task(dbms_advisor.sqlaccess_advisor,’TASK1’);  END; /  BEGIN  dbms_advisor.set_task_parameter(’TASK1’,’ANALYSIS_SCOPE’,’ALL’); dbms_advisor.set_task_parameter(’TASK1’,’MODE’,’COMPREHENSIVE’);  END;  /  BEGIN  dbms_advisor.execute_task(’TASK1’);  dbms_output.put_line(dbms_advisor.get_task_script(’TASK1’));  END;  /  The blocks of code execute successfully;however,you do not get the required outcome.  What could be the reason?()
    A

     A template needs to be associated with the task.

    B

     A workload needs to be associated with the task.

    C

     The partial or complete workload scope needs to be associated with the task.

    D

     The type of structures (indexes, materialized views, or partitions) to be recommended need to be  specified for the task.


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