niusouti.com
更多“Which command is used to restore a Junos device to its default state?() ”相关问题
  • 第1题:

    针对以下程序段,对于变量c的取值,至少需要(61)个测试用例才能够满足语句覆盖的要求。c=((u8_t*)q->payload)[i];switch(c){case SLIP_END: sio_send(SLIP_ESC,netif->state); sio_send(SLIP_ESC_END,netif->state); break;case SLIP_ESC: sio_send(SLIP_ESC,netif->state); sio_send(SLIP_ESC_ESC,netif->state); break;default: sio_send(c,netif->state); break; }

    A.4

    B.3

    C.2

    D.1


    正确答案:B
    解析:本题考查白盒测试中测试用例的设计方法——语句覆盖法。
      语句覆盖法的概念如下。
      每一个可执行语句至少执行一次。
      此程序段中开关语句共有三个分支,对于变量c的取值,需要三个测试用例能够满足语句覆盖的要求。

  • 第2题:

    下述程序中能够实现安全状态机设计的是:

    A.Parameter s0=0,s1=1,s2=2,s3=3,s4=4,s5=5,s6=6,s7=7; ... s5: next_state =s0; S6: next_state =s0; S7: next_state =s0; default:begin next_state =s0;#B.`define s0=1,s1=2,s2=4,s3=4,s4=8 s5: next_state =s1; S6: next_state =s1; S7: next_state =s2; default:begin next_state =s0;#C.Parameter s0=40,s1=41,s2=42,s3=43,s4=44,s5=45,s6=46,s7=47; ... s5: next_state =s0; S6: next_state =s0; S7: next_state =s0;#D.以上都正确
    Parameter s0=0,s1=1,s2=2,s3=3,s4=4,s5=5,s6=6,s7=7; ... s5: next_state =s0; S6: next_state =s0; S7: next_state =s0; default:begin next_state =s0;;`define s0=1,s1=2,s2=4,s3=4,s4=8 s5: next_state =s1; S6: next_state =s1; S7: next_state =s2; default:begin next_state =s0;

  • 第3题:

    定义状态机当前状态为state ,次态为next _state; 输入a,输出b, 则下列为Mealy状态机的写法是:

    A.always@(posedge clk) case (state ) 0:next_state<=1; 1:next_state<=x;#B.always@(posedge clk) case (state ) 0: if(a==0)next_state<=1; else next_state<=x; 1:next_state<=x;#C.always@(posedge clk) case (state ) 0: if(state==0)next_state<=1; else next_state<=x; 1:next_state<=x;#D.以上都不对
    MACP

  • 第4题:

    InwhichofthefollowinglistsofAPSActionRequestsistheprioritycorrectlyarrangedfromlowesttohighest?()

    A.Wait-to-Restore,ForcedSwitch,ManualSwitch,LockoutofProtection

    B.ManualSwitch,Wait-to-Restore,LockoutofProtection,ForcedSwitch

    C.LockoutofProtection,ForcedSwitch,ManualSwitch,Wait-to-Restore

    D.LockoutofProtection,ManualSwitch,ForcedSwitch,Wait-to-Restore

    E.Wait-to-Restore,ManualSwitch,ForcedSwitch,LockoutofProtection

    F.Wait-to-Restore,ManualSwitch,LockoutofProtection,ForcedSwitch


    参考答案:E

  • 第5题:

    下面这段程序是否能够实现安全编码: Parameter s0=0,s1=1,s2=2,s3=3,s4=4,s5=5,s6=6,s7=7; ... s5: next_state =s0; S6: next_state =s0; S7: next_state =s0; default:begin next_state =s0;


    正确

  • 第6题:

    下述程序中能够实现安全状态机设计的是

    A.Parameter s0=0,s1=1,s2=2,s3=3,s4=4,s5=5,s6=6,s7=7; ... s5: next_state =s0; S6: next_state =s0; S7: next_state =s0; default:begin next_state =s0;#B.define s0=1,s1=2,s2=4,s3=4,s4=8 s5: next_state =s1; S6: next_state =s1; S7: next_state =s2; default:begin next_state =s0;#C.Parameter s0=40,s1=41,s2=42,s3=43,s4=44,s5=45,s6=46,s7=47; ... s5: next_state =s0; S6: next_state =s0; S7: next_state =s0;#D.以上都是正确选型
    Parameter s0=0,s1=1,s2=2,s3=3,s4=4,s5=5,s6=6,s7=7; ... s5: next_state =s0; S6: next_state =s0; S7: next_state =s0; default:begin next_state =s0;;define s0=1,s1=2,s2=4,s3=4,s4=8 s5: next_state =s1; S6: next_state =s1; S7: next_state =s2; default:begin next_state =s0;