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
举一反三
- 补全下面的程序,使程序满足:输入正整数a,判断,如果能被9整除,打印a,否则,打印错误!() A: ifa%9==0 B: ifa%9==0: C: ifa%9=0 D: ifa%9=0:
- Ifa>0andb>0,isa/b>b/a?<br/>(1)a=b-2<br/>(2)a/4b=1/5
- 以下程序代码能执行的是()。 A: If a=1 Then b=0 Else c=0 End If B: If a=1 Then B=0ElseIf C=0 Then D=0 C: If a = 1 Then b = 0 Else If c = 0 Then d = 0 End If D: If a = 1 Then b = 0ElseIf c = 0 Then d = 0End If
- 以下HDB3码中,哪些可以确定其中有误码 A: +1 0 0 0 -1 0 +1 -1 +1 0 0 +1 0 -1 +1 -1 0 0 -1 +1…… B: +1 0 0 -1 +1 0 0 0 +1 -1 0 0 -1 0 0 0 +1 0 0 +1 -1…… C: -1 0 0 0 -1 0 +1 0 0 0 +1 -1 +1 0 0 +1 0 0 -1 +1…… D: -1 0 +1 0 0 0 -1 +1 0 0 0 +1 -1 +1 -1 0 0 -1 +1 0 -1……
- 对HDB3码-1000+100-1000-1+1000+1-1+1-100-1+1-1进行译码,结果是( )。 A: 1 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 1 1 B: 1 0 0 0 1 0 0 1 0 0 0 1 1 0 0 0 0 1 1 0 0 0 0 0 1 C: 1 0 1 0 1 0 0 1 0 0 0 0 1 1 0 0 0 1 1 0 0 0 0 1 1 D: 1 0 0 0 1 0 0 1 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0 1 1
内容
- 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