对IPv6地址AF00:0000:0000:0000:0045:0000:0000:1000进行零压缩表示,以下选项中正确的是()。 A: AF::45::1 B: AF00::0045::1000 C: AF00::45:0:0:1 D: AF00:0:0:0:45::1000
对IPv6地址AF00:0000:0000:0000:0045:0000:0000:1000进行零压缩表示,以下选项中正确的是()。 A: AF::45::1 B: AF00::0045::1000 C: AF00::45:0:0:1 D: AF00:0:0:0:45::1000
下面程序输出结果是x, y, z = 10, 0, 0def f(x): y = 0 global z for i in range(x): y += i z += i return y, zx = f(x)print(x, y, z) A: (45, 45) 45 45 B: (0, 45) 0 45 C: (45, 45) 0 45 D: 10 0 45
下面程序输出结果是x, y, z = 10, 0, 0def f(x): y = 0 global z for i in range(x): y += i z += i return y, zx = f(x)print(x, y, z) A: (45, 45) 45 45 B: (0, 45) 0 45 C: (45, 45) 0 45 D: 10 0 45
对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
对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
编写程序,创建下列10*10的数组,数组边界全为1,里面全为0。 [[1 1 1 1 1 1 1 1 1 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 1 1 1 1 1 1 1 1 1]]
编写程序,创建下列10*10的数组,数组边界全为1,里面全为0。 [[1 1 1 1 1 1 1 1 1 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 1 1 1 1 1 1 1 1 1]]
以下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码中,哪些可以确定其中有误码 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……
编写程序,创建下列10*10的数组,数组边界全为1,里面全为0。 [[1 1 1 1 1 1 1 1 1 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 1 1 1 1 1 1 1 1 1]] 提示:可以先创建全为0或者全为1的数组,再通过索引和切片机制进行修改
编写程序,创建下列10*10的数组,数组边界全为1,里面全为0。 [[1 1 1 1 1 1 1 1 1 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 0 0 0 0 0 0 0 0 1] [1 1 1 1 1 1 1 1 1 1]] 提示:可以先创建全为0或者全为1的数组,再通过索引和切片机制进行修改
对信码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
对信码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
已知逻辑函数式为 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
已知逻辑函数式为 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
执行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
执行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 1 1 1 1 0 1 1 1 1 0 0 1 1 1 0 0 0 1 1 0 0 0 0 1
1 1 1 1 1 0 1 1 1 1 0 0 1 1 1 0 0 0 1 1 0 0 0 0 1