intx=5,y=8,z=7;表达式z=!(x>y)||(x=1,y=3)计算后的结果 A: x=1,y=3,z=1 B: x=1,y=3,z=0 C: x=5,y=8,z=0 D: x=5,y=8,z=1
intx=5,y=8,z=7;表达式z=!(x>y)||(x=1,y=3)计算后的结果 A: x=1,y=3,z=1 B: x=1,y=3,z=0 C: x=5,y=8,z=0 D: x=5,y=8,z=1
【单选题】rev(c(1,3,2,6,7,8,8,1,1,0))的运行结果 ? A. [1] 0 1 1 1 2 3 6 7 8 8 B. [1] 1 3 2 6 7 8 8 1 1 0 C. [1] 0 1 1 8 8 7 6 2 3 1 D. [1] 8 8 7 6 3 2 1 1 1 0
【单选题】rev(c(1,3,2,6,7,8,8,1,1,0))的运行结果 ? A. [1] 0 1 1 1 2 3 6 7 8 8 B. [1] 1 3 2 6 7 8 8 1 1 0 C. [1] 0 1 1 8 8 7 6 2 3 1 D. [1] 8 8 7 6 3 2 1 1 1 0
已知函数定义def demo(a=1,**b):return b则demo(2,x=7,y=8,z=9)的返回值是什么? A: 2 B: (x:7,y:8,z:9) C: (7, 8, 9) D: {'x':7, 'y':8, 'z':9}
已知函数定义def demo(a=1,**b):return b则demo(2,x=7,y=8,z=9)的返回值是什么? A: 2 B: (x:7,y:8,z:9) C: (7, 8, 9) D: {'x':7, 'y':8, 'z':9}
int x,y,z; x=7; y=8; z=9; if(x>y) x=y; y=z; z=x; printf(“x=%d y=%d z=%d\n”,x,y,z);以上程序段的输出结果是:() A: x=7 y=8 z=9 B: x=7 y=9 z=7 C: x=8 y=9 z=7 D: x=8 y=9 z=8
int x,y,z; x=7; y=8; z=9; if(x>y) x=y; y=z; z=x; printf(“x=%d y=%d z=%d\n”,x,y,z);以上程序段的输出结果是:() A: x=7 y=8 z=9 B: x=7 y=9 z=7 C: x=8 y=9 z=7 D: x=8 y=9 z=8
【单选题】下面程序的运行结果是 () 。 void main() { int x=7,y=8,z=9; if(x>y) x=y,y=z; z=x; printf("x=%d y=%d z=%d ",x,y,z); } A. x=7 y=8 z=7 B. x=7 y=9 z=7 C. x=8 y=9 z=7 D. x=8 y=9 z=8
【单选题】下面程序的运行结果是 () 。 void main() { int x=7,y=8,z=9; if(x>y) x=y,y=z; z=x; printf("x=%d y=%d z=%d ",x,y,z); } A. x=7 y=8 z=7 B. x=7 y=9 z=7 C. x=8 y=9 z=7 D. x=8 y=9 z=8
已知x(n)={1, 2, 3},y(n)={1, 2, 1},则x(n)*y(n)=________。(下划线表示n=0) A: {1, 4, 8, 8, 3} B: {1, 4, 8, 8, 3} C: {1, 4, 8, 8, 3} D: {1, 4, 8, 8, 3}
已知x(n)={1, 2, 3},y(n)={1, 2, 1},则x(n)*y(n)=________。(下划线表示n=0) A: {1, 4, 8, 8, 3} B: {1, 4, 8, 8, 3} C: {1, 4, 8, 8, 3} D: {1, 4, 8, 8, 3}
set1 = {x for x in range(10)} print(set1) 以上代码的运行结果为? A: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} B: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10} C: {1, 2, 3, 4, 5, 6, 7, 8, 9} D: {1, 2, 3, 4, 5, 6, 7, 8, 9,10}
set1 = {x for x in range(10)} print(set1) 以上代码的运行结果为? A: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} B: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10} C: {1, 2, 3, 4, 5, 6, 7, 8, 9} D: {1, 2, 3, 4, 5, 6, 7, 8, 9,10}
下列变量属于离散型随机变量的是( ) A: {3≤x≤8│x∈Z} B: {3≤x≤8│x∈R} C: {3≤x≤8│x∈Q} D: {3≤x≤8│x∈Z}或{3≤x≤8│x∈R}
下列变量属于离散型随机变量的是( ) A: {3≤x≤8│x∈Z} B: {3≤x≤8│x∈R} C: {3≤x≤8│x∈Q} D: {3≤x≤8│x∈Z}或{3≤x≤8│x∈R}
下列程序段的执行结果是( )。 x = 5: y = 7: z = 8 If x < y Then t = x: x = y: y = t End If If y < z Then t = y: y = z: z = t If x < y Then t = x: x = y: y = t End If End If Print x, y, z A: 8 5 7 B: 8 7 5 C: 5 7 8 D: 7 5 8
下列程序段的执行结果是( )。 x = 5: y = 7: z = 8 If x < y Then t = x: x = y: y = t End If If y < z Then t = y: y = z: z = t If x < y Then t = x: x = y: y = t End If End If Print x, y, z A: 8 5 7 B: 8 7 5 C: 5 7 8 D: 7 5 8
>>>x= [10, 6, 0, 1, 7, 4, 3, 2, 8, 5, 9]>>>print(x.sort()) 语句运行结果正确的是( )。 A: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] B: [10, 6, 0, 1, 7, 4, 3, 2, 8, 5, 9] C: [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0] D: ['2', '4', '0', '6', '10', '7', '8', '3', '9', '1', '5']
>>>x= [10, 6, 0, 1, 7, 4, 3, 2, 8, 5, 9]>>>print(x.sort()) 语句运行结果正确的是( )。 A: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] B: [10, 6, 0, 1, 7, 4, 3, 2, 8, 5, 9] C: [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0] D: ['2', '4', '0', '6', '10', '7', '8', '3', '9', '1', '5']