• 2022-06-06
    以下程序代码能执行的是()
    A: ifa=1thenb=0elsec=0endif
    B: ifa=1then:b=0:elseifc=0then:d=0
    C: ifa=1thenb=0elseifc=0thend=0endif
    D: ifa=1thenb=0elseifc=0d=0endif
  • C

    内容

    • 0

      执行eye(3,5)后,其结果是( ) A: ans = <br> 1 0 0 0 1 0 0 0 1 B: ans = <br> 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 C: ans = <br> 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 D: ans = <br> 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0

    • 1

      在MATLAB中,A = 1:9,现在执行如下指令L1 = ~(A>;5),则MATLAB的执行结果应该是L1 =() A: 0 0 0 0 0 1 1 1 1 B: 1 1 1 1 1 0 0 0 0 C: 1 1 1 1 1 1 0 0 0 D: 0 0 0 0 0 0 1 1 1

    • 2

      IF di1 = 1 AND di2 = 0 THEN !1、_____________________ ryuan; !2、_____________________ ELSEIF di1 = 0 AND di2 = 1 THEN rfang; ENDIF 解释1、2处的程序的功能及作用

    • 3

      对信码1000100100001000011000011进行HDB3编码,结果可能是( )。 A: -1 0 0 0 +1 0 0 -1 0 0 0 -V +1 0 0 0 +V -1 +1 -B 0 0 -V +1 -1 B: +1 0 0 0 -1 0 0 +1 0 0 0 +V -1 0 0 0 -V +1 -1 +B 0 0 +V -1 +1 C: +1 0 0 0 -1 0 0 +1 0 0 0 +1 -1 0 0 0 -1 +1 -1 +1 0 0 +1 -1 +1 D: -1 0 0 0 +1 0 0 -1 0 0 0 +V +1 0 0 0 +V -1 +1 +B 0 0 -V +1 -1

    • 4

      已知逻辑函数式为 F = A B + B C,可列出真值表如表2中的是( ) A B C ① ② ③ ④ 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 0 0 0 0 1 0 1 0 0 1 1 0 1 1 0 1 0 0 0 0 0 1 0 0 0 0 0 1 1 0 1 1