下面哪个是合法的序列化数据格式?() A: O:7:"Student":2:{s:4:"name";s:4:"qian";s:3:"age";s:25;} B: O:7:"Student":2:{s:4:"name";s:4:"qian";s:3:"age";i:25;} C: O:8:"Student":2:{s:4:"name";s:4:"qian";s:3:"age";s:25;} D: O:8:"Student":2:{s:4:"name";s:4:"qian";s:3:"age";i:25;}
下面哪个是合法的序列化数据格式?() A: O:7:"Student":2:{s:4:"name";s:4:"qian";s:3:"age";s:25;} B: O:7:"Student":2:{s:4:"name";s:4:"qian";s:3:"age";i:25;} C: O:8:"Student":2:{s:4:"name";s:4:"qian";s:3:"age";s:25;} D: O:8:"Student":2:{s:4:"name";s:4:"qian";s:3:"age";i:25;}
以下程序段实现的输出是()。for(i=0;i<;=9;i++)s[i]=i;for(i=9;i>;=0;i--)printf("%2d",s[i]);[/i][/i] A: 9 7 5 3 1 B: 1 3 5 7 9 C: 9 8 7 6 5 4 3 2 1 0 D: 0 1 2 3 4 5 6 7 8 9
以下程序段实现的输出是()。for(i=0;i<;=9;i++)s[i]=i;for(i=9;i>;=0;i--)printf("%2d",s[i]);[/i][/i] A: 9 7 5 3 1 B: 1 3 5 7 9 C: 9 8 7 6 5 4 3 2 1 0 D: 0 1 2 3 4 5 6 7 8 9
不等式|x+3|﹤5的解集为()。 A: {x|x>2} B: {x|-8﹤x﹤2} C: {x|x﹤-8} D: {x|2﹤x﹤8}
不等式|x+3|﹤5的解集为()。 A: {x|x>2} B: {x|-8﹤x﹤2} C: {x|x﹤-8} D: {x|2﹤x﹤8}
下面说法错误的是( )。知识点:列表推导式 A: dict([(x, x**2) for x in range(6)]) 创建的字典是{0: 0, 1: 1, 2: 4, 3: 9, 4: 16, 5: 25} B: [[x*3+y for y in range(1,4)] for x in range(3)] 创建的是二维列表 [[1, 2, 3], [4, 5, 6], [7, 8, 9]] C: number = [-2, 4, 6, -5]string = 'ab'z = [(i, j) if i>0 else (-i, j) for i in number for j in string]这段代码创建的列表为[(2, 'a'), (2, 'b'), (4, 'a'), (4, 'b'), (6, 'a'), (6, 'b'), (5, 'a'), (5, 'b')] D: ' '.join([i for i in range(1,11)])的运算结果为字符串'1 2 3 4 5 6 7 8 9 10'
下面说法错误的是( )。知识点:列表推导式 A: dict([(x, x**2) for x in range(6)]) 创建的字典是{0: 0, 1: 1, 2: 4, 3: 9, 4: 16, 5: 25} B: [[x*3+y for y in range(1,4)] for x in range(3)] 创建的是二维列表 [[1, 2, 3], [4, 5, 6], [7, 8, 9]] C: number = [-2, 4, 6, -5]string = 'ab'z = [(i, j) if i>0 else (-i, j) for i in number for j in string]这段代码创建的列表为[(2, 'a'), (2, 'b'), (4, 'a'), (4, 'b'), (6, 'a'), (6, 'b'), (5, 'a'), (5, 'b')] D: ' '.join([i for i in range(1,11)])的运算结果为字符串'1 2 3 4 5 6 7 8 9 10'
下列程序段的执行结果为 i=9 x=5 Do i=i + 1 x=x + 2 Loop Until i>=7 Print "i=":i Print "x=":X A.i=4x=5 B.i=7x=15 C.i=6x=8 D.i=10x=7
下列程序段的执行结果为 i=9 x=5 Do i=i + 1 x=x + 2 Loop Until i>=7 Print "i=":i Print "x=":X A.i=4x=5 B.i=7x=15 C.i=6x=8 D.i=10x=7
Public Sub Proc(a%( )) Static i% Do a(i) = a(i) + a(i + 1) i = i + 1 Loop While i < 2 End Sub Private Sub Command1_Click( ) Dim m%, i%, x%(10) For i = 0 To 4: x(i) = i + 1: Next i For i = 1 To 2: Call Proc(x): Next i For i = 0 To 4: Print x(i);: Next i End Sub A: 3 4 7 5 6 B: 3 5 7 4 5 C: 2 3 4 4 5 D: 4 5 6 7 8
Public Sub Proc(a%( )) Static i% Do a(i) = a(i) + a(i + 1) i = i + 1 Loop While i < 2 End Sub Private Sub Command1_Click( ) Dim m%, i%, x%(10) For i = 0 To 4: x(i) = i + 1: Next i For i = 1 To 2: Call Proc(x): Next i For i = 0 To 4: Print x(i);: Next i End Sub A: 3 4 7 5 6 B: 3 5 7 4 5 C: 2 3 4 4 5 D: 4 5 6 7 8
求不定积分[img=121x54]17da653839aa6ae.png[/img]; ( ) A: log(x^2 + 3*x + 25/4)/4 + (5*atan(x/2 + 3/4))/4 B: log(x^2 + 3*x + 25/4)/4 C: (5*atan(x/2 + 3/4))/4 D: log(x^2 + 3*x + 25/4)/4 - (5*atan(x/2 + 3/4))/4
求不定积分[img=121x54]17da653839aa6ae.png[/img]; ( ) A: log(x^2 + 3*x + 25/4)/4 + (5*atan(x/2 + 3/4))/4 B: log(x^2 + 3*x + 25/4)/4 C: (5*atan(x/2 + 3/4))/4 D: log(x^2 + 3*x + 25/4)/4 - (5*atan(x/2 + 3/4))/4
产生25个[101,300]上的随机整数,求出其中能被5整除的所有数的和。 #include "stdio.h" #include (1) int main() { int i,a[25],s=0; for(i=0;i<25;i++) { a[i]= (2) ; printf("%5d",a[i]); } printf("\n"); for(i=0;i<25;i++) if( (3) ) (4) ; printf("s=%d\n",s); }
产生25个[101,300]上的随机整数,求出其中能被5整除的所有数的和。 #include "stdio.h" #include (1) int main() { int i,a[25],s=0; for(i=0;i<25;i++) { a[i]= (2) ; printf("%5d",a[i]); } printf("\n"); for(i=0;i<25;i++) if( (3) ) (4) ; printf("s=%d\n",s); }
函数 [img=197x96]1803dbfc46ca27a.png[/img]表示的曲面称为椭圆锥面,绘制这个曲面的程序是: A: s=-5:0.1:5;t=-5:0.1:5;[x, y]=meshgrid(s, t);z=sqrt(x.^2+y.^2);mesh(x,y,z) B: a=3;b=2;s=-5:0.1:5;t=-5:0.1:5;[x, y]=meshgrid(s, t);z=sqrt(x.^2/a/a+y.^2/b/b);mesh(x, y, z) C: a=3;b=2;s=-5:0.1:5;t=-5:0.1:5;[x, y]=meshgrid(s, t);z=sqrt(x.^2/a*a+y.^2/b*b);mesh(x, y, z) D: a=3;b=2;s=-5:0.1:5;t=-5:0.1:5;[x, y]=meshgrid(s, t);z=sqrt(x^2/a/a+y^2/b/b);mesh(x, y, z);
函数 [img=197x96]1803dbfc46ca27a.png[/img]表示的曲面称为椭圆锥面,绘制这个曲面的程序是: A: s=-5:0.1:5;t=-5:0.1:5;[x, y]=meshgrid(s, t);z=sqrt(x.^2+y.^2);mesh(x,y,z) B: a=3;b=2;s=-5:0.1:5;t=-5:0.1:5;[x, y]=meshgrid(s, t);z=sqrt(x.^2/a/a+y.^2/b/b);mesh(x, y, z) C: a=3;b=2;s=-5:0.1:5;t=-5:0.1:5;[x, y]=meshgrid(s, t);z=sqrt(x.^2/a*a+y.^2/b*b);mesh(x, y, z) D: a=3;b=2;s=-5:0.1:5;t=-5:0.1:5;[x, y]=meshgrid(s, t);z=sqrt(x^2/a/a+y^2/b/b);mesh(x, y, z);
若2y-5x=0,则x:y等于( ) A: 2:5 B: 4:25 C: 5:2 D: 25:4
若2y-5x=0,则x:y等于( ) A: 2:5 B: 4:25 C: 5:2 D: 25:4