更多“error”相关问题
  • 第1题:

    下列代码的执行结果是______。

    public class Test{

    public static void main(String[]args){

    int[]x={0, 1, 2, 3};

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

    try{

    System.out println(x[i+23/x[i]+x[i+1]);

    }catch(ArithmeticException e){

    System.out.println("error1");

    }catch (Exception e){

    System.out.println("error2");

    }

    }

    }

    }

    A) error1

    B) error2

    C) error1

    D) 2

    error2 error2

    A.

    B.

    C.

    D.


    正确答案:C

  • 第2题:

    VBA中不能进行错误处理的语句是( )。

    A.On Error Goto标号

    B.On Error Then标号

    C.On Error Resume Next

    D.On Error Goto 0


    正确答案:B
    解析: 本题考查VBA中程序运行错误处理的知识。在VBA中,程序运行错误处理的语句有3种,分别是:On Error GoTo标号,在遇到错误发生时程序转移到标号所指位置代码执行;On Error Resume Next,在遇到错误发生时不会考虑错误并继续执行下一条语句:On Error GoTO 0,关闭错误处理。

  • 第3题:

    下列代码的执行结果是( )。

    A.error1

    B.error2

    C.error1 error2

    D.2 error2


    正确答案:C
    当0作为除数时,会产生异常,而Arith-meticException和Exception两类异常都内部被捕捉到。

  • 第4题:

    VBA中不能进行错误处理的语句结构是A.On Error Then 标号B.On Error Goto 标号SXB

    VBA中不能进行错误处理的语句结构是

    A.On Error Then 标号

    B.On Error Goto 标号

    C.On Error Resume Next

    D.On Error Goto 0


    正确答案:A
    "OnErrorGoto标号"语句在遇到错误发生时程序转移到标号所指位置代码执行,一般标号之后都是安排错误处理程序。"OnErrorResumeNext"语句在遇到错误发生时不会考虑错误,并继续执行下一条语句。"OnErrorGoto0"语句用于取消错误处理。所以本题答案是A。

  • 第5题:

    If the gyrocompass error is east,what describes the error and the correction to be made to gyrocompass headings to obtain true headings?

    A.The readings are too low (small numerically) and the amount of the error must be added to the compass to obtain true

    B.The readings are too low and the amount of the error must be subtracted from the compass to obtain true

    C.The readings are too high (large numerically) and the amount of the error must be added to the compass to obtain true

    D.The readings are too high and the amount of the error must be subtracted from the compass to obtain true


    正确答案:A
    假如电罗经的误差偏东,怎样描述误差和改正点罗经首向而获得真首向?读数偏小且误差量必须加上点罗经的首向便获得真首向。

  • 第6题:

    用户计算机网卡损坏,拨号时会出现的错误代码为().

    • A、Error602
    • B、Error645
    • C、Error691
    • D、Error735

    正确答案:B

  • 第7题:

    Automatic error notification can be configured to manage which type of disk error?()  

    • A、 Hard errors
    • B、 Media errors
    • C、 Temporary errors
    • D、 All disk error types

    正确答案:A

  • 第8题:

    When an emulated error notification method is complete, an administrator can view the error log  By typing the errpt command to be sure the emulation took place.  To verify that the error log entry is the result of the emulated event,the log entry resource name is set to EMULATOR,or which of the following?()  

    • A、 A user defined Resource Name
    • B、 A cluster defined Resource Name
    • C、 An error daemon specific Resource Name
    • D、 A Resource Name generated by Automatic Error Notification

    正确答案:A

  • 第9题:

    单选题
    Reliable delivery of messages is ensured by()techniques.
    A

    forward error correction

    B

    aftward error correction

    C

    DGPS

    D

    error-free and low error reception


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

  • 第10题:

    单选题
    Automatic error notification can be configured to manage which type of disk error?()
    A

     Hard errors

    B

     Media errors

    C

     Temporary errors

    D

     All disk error types


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

  • 第11题:

    单选题
    Which technique retrieves the error number when explicit DML fails?()
    A

    SQLCODE in an On-Error trigger. 

    B

    SQLCODE in an exception handler. 

    C

    DBMS_ERROR_CODE in an On-Error trigger. 

    D

    DBMS_ERROR_CODE in an exception handler. 


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

  • 第12题:

    单选题
    Which of the following is TRUE about error processing?()
    A

    The error daemon runs in the foreground and reads the /etc/errpt file. 

    B

    The error daemon is invoked by the user when required and it reads the /usr/lib/errpt. 

    C

    The error daemon is invoked whenever the error occurs and it reads the /usr/lib/errpt. 

    D

    The error daemon /usr/lib/errdemon runs in the background on most machines and reads the /dev/error special file.


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

  • 第13题:

    如果A为整数且,|A|>=10,则打印“OK”,否则打印“Error”,表示这个条件的单行格式If语句是( )。

    A.If Int(A)=A And Sqr(A)>=10 Then Print"OK"Else Print "Error"

    B.If Fix(A)=a And Abs(A)>=-10 Then Print"OK"Else Print "Error"

    C.If Int(A)=A And(A>=10,A<-10) Then Print"OK"Else Print "Error"

    D.If Fix(A)=A And A>=10,And A<=-10 Then Print"OK" Else Print "Error"


    正确答案:B
    解析:解答本题考生需了解题中用到的3个函数的作用,Int和Fix都会删除参数的小数部分而返回剩下的整数。Abs函数返回参数的绝对值,其类型和参数相同。而Int和Fix的不同之处在于,如果参数为负数,则Int返回小于或等于参数的第一个负整数,而Fix则会返回大于或等于参数的第一个负整数。

  • 第14题:

    下列程序的运行结果是( )。 A.error1:10.5B.error2C.error1:10.5 error2S

    下列程序的运行结果是( )。

    A.error1:10.5

    B.error2

    C.error1:10.5 error2

    D.以上都不对


    正确答案:C
    try-catoh块是可以嵌套分层的,并且通过异常对象的数据类型进行匹配,以找到正确的catchblock异常错误处理代码。以下是通过异常对象的数据类型进行匹配找到正确的catchblock的过程。①首先在抛出异常的try-catch块中查找catchblock,按顺序先与第-个catchblock块匹配,如果抛出的异常对象的数据类型与catchblockee传入的异常对象的临时变量(就是catch语句后面参数)的数据类型完全相同,或是它的子类型对象,则匹配成功,进入catchblock中执行,否则到第②步;②如果有两个或更多的catchblock,则继续查找匹配第二个、第三个,乃至最后-个catchblock,如匹配成功,则进入对应的catchblock中执行,否则到第③步;③返回到上-级的try-catch块中,按规则继续查找对应的catchblock。如果找到,进入对应的catchblock中执行,否则到第4步;④再到上上级的try-catch块中,如此不断递归,直到匹配到顶级的try-catch块中的最后-个catchblock,如果找到,进入到对应的catchblock中执行;否则程序将会执行terminate()退出。所以选C。

  • 第15题:

    VBA中不能进行错误处理的语句是( )。 A.On Error Got0标号B.On Error Then标号

    VBA中不能进行错误处理的语句是( )。

    A.On Error Got0标号

    B.On Error Then标号

    C.On Error Resume Next

    D.On Error Got0 0


    正确答案:B
    B.【解析】本题考查VBA中程序运行错误处理的知识。在VBA中,程序运行错误处理的语句有3种:0nErrorGoT0标号,在遇到错误发生时程序转移到标号所指位置代码执行;OnErrorResumeNext,在遇到错误发生时不会考虑错误并继续执行下一条语句;0nErrorGoT00,关闭错误处理。

  • 第16题:

    Reliable delivery of messages is ensured by ______ techniques.

    A.forward error correction

    B.aftward error correction

    C.DGPS

    D.error-free and low error reception


    正确答案:A

  • 第17题:

    写出下列电磁流量计故障代码的含义:Error06(),Error07(),Error08(),Error20()。


    正确答案:输入信号错误,线圈开路,量程设定错误,未满管或空管

  • 第18题:

    Which of the following statements best describes error logging?()

    • A、Syslogd creates error log entries in the system error log. 
    • B、The default error log is stored in /var/adm/ras/error.log. 
    • C、All entries in the error log are related to software problems. 
    • D、Error logging is automatically enabled during system initialization.

    正确答案:D

  • 第19题:

    What is the default message level configured for IBM Tivoli Federated Identity Manager?()

    • A、error messages only
    • B、disable all messages
    • C、error and warning messages only
    • D、info, error and warning messages

    正确答案:D

  • 第20题:

    Which of the following is TRUE about error processing?()

    • A、The error daemon runs in the foreground and reads the /etc/errpt file. 
    • B、The error daemon is invoked by the user when required and it reads the /usr/lib/errpt. 
    • C、The error daemon is invoked whenever the error occurs and it reads the /usr/lib/errpt. 
    • D、The error daemon /usr/lib/errdemon runs in the background on most machines and reads the /dev/error special file.

    正确答案:D

  • 第21题:

    单选题
    ()用于声明当前页为error页?
    A

    <%@ page errorPage=true %>

    B

    <%@ page info=error %>

    C

    <%@ page pageEndcoding=error %>

    D

    <%@ page isErrorPage=true %>


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

  • 第22题:

    单选题
    In writing up the log book at the end of your watch , you make an error .which of the following is the way to correct the error?().
    A

    Carefully and neatly erase the entryand rewrite it correctly

    B

    Remove this page of the log book and rewrite all entries on a clean page

    C

    Blot out the error completely and rewrite the entry correctly

    D

    Cross out the error with a single line and rewrite the entry correctly


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

  • 第23题:

    单选题
    The error in a magnetic compass caused by the vessel’s magnetism is called().
    A

    variation

    B

    deviation

    C

    compass error

    D

    bearing error


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

  • 第24题:

    单选题
    Which of the following statements best describes error logging?()
    A

    Syslogd creates error log entries in the system error log. 

    B

    The default error log is stored in /var/adm/ras/error.log. 

    C

    All entries in the error log are related to software problems. 

    D

    Error logging is automatically enabled during system initialization.


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