网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

请在下面空格处填写答案(两行结果中间用一个半角分号分隔)。 >>> import numpy as np >>> a = np.array([(1, 2, 3), (4, 5, 6), (7, 8, 9)]) >>> a.shape (______) >>> a[[2]].sum() _______


参考答案和解析
第一空: C 第二空: B 第三空: A 第四空: D 第五空: D 第六空: B
更多 “请在下面空格处填写答案(两行结果中间用一个半角分号分隔)。 >>> import numpy as np >>> a = np.array([(1, 2, 3), (4, 5, 6), (7, 8, 9)]) >>> a.shape (______) >>> a[[2]].sum() _______” 相关考题
考题 {0、2、1、4、3、9、5、8、6、7}是以数组形式存储的最小堆,删除堆顶元素0后的结果是()A.{2、1、4、3、9、5、8、6、7}B.{1、2、5、4、3、9、8、6、7}C.{2、3、1、4、7、9、5、8、6}D.{1、2、5、4、3、9、7、8、6}

考题 有以下程序: void sum(int a[]) {a[0]=a[-1]+a[1];} main() {int a[10]={1,2,3,4,5,6,7,8,9,10}; sum(&a[2]); printf("%d\n",a[2]); } 程序运行后的输出结果是( )。A.6B.7C.5D.8

考题 有以下程序: void sum(int *a) { a[0]= a[1]; } main() { int aa[10]={1,2,3,4,5,6,7,8,9,10},i; for(i=2;i>=0;i--)sum(aa[i]); printf("%d\n",aa[0]); } 执行后的输出结果是 ______。A.4B.3C.2D.1

考题 下面程序的输出结果是()。includemain(){int a[]={1,2,3,4,5,6,7,8,7,10},*p;p=a;print 下面程序的输出结果是( )。 #include<stdio.h> main() {int a[]={1,2,3,4,5,6,7,8,7,10},*p; p=a; printf("%d\n",*p+8); }A.0B.1C.10D.9

考题 下面程序段是计算()公式的。s=0:t=1Fori=1To10t=t*is=s+tNextiA.s=1+2+3+4+5+6+7+8+9+10B.s=1*2*3*4*5*6*7*8*9*10C.s=1!+2!+3!+4!+5!+6!+7!+8!+9!+10!D.s=1+2*3+3*4+4*5+5*6+6*7+7*8+8*9+9*10

考题 有以下程序: void sum(int *A) { a[0] =a[1]; } main ( ) { int aa[10]={1,2,3,4,5,6,7,8,9,10}, i; for (i=2 ;i>=0;i--) sum(aa[i] ); print f ("%d\n",aa[0]); } 执行后的输出结果是A.4B.3C.2D.1

考题 有以下程序:include void sum(int a[ ] ){a[0]=a[-1] +a[1];}main ( ){int a[10] = { 有以下程序:#include <stdio, h>void sum(int a[ ] ){ a[0]=a[-1] +a[1];}main ( ){ int a[10] = {1,2,3,4,5,6,7,8,9,10}; sum(a[2]); prinff("% d \n",a[2]); }程序运行后的输出结果是( )。A.6B.7C.5D.8

考题 有以下程序:程序运行后的输出结果是( )。A.1,2,3,4,5,6,7,8,9,10,B.10,9,8,7,6,5,4,3,2,1,C.2,3,1,6,8,7,5,4,10,9,D.10,9,8,7,6,1,2,3,4,5,

考题 当执行下面的语句定义一维数组a后,此数组的所有元素为 ( ) inta[10];A.a[1],a[2],a[3],a[4],a[5],a[6],a[8],a[9],a[10],a[10]B.a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9]C.a[0],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10]D.a[1],a[2],a [3],a[4],a [5],a [9],a [7],a [8],a [9],a [10],a [11]

考题 有以下程序:include void sum(int *a){a[0]=a[1];}main(){int aa[10]={1,2,3,4,5,6,7, 有以下程序: #include <stdio.h> void sum(int *a) { a[0]=a[1]; } main() { int aa[10]={1,2,3,4,5,6,7,8,9,10},i; for(i=2;i>=0;i--) sum(aa[i]); printf("%d\n",aa[0]); } 执行后的输出结果是( )。A.4B.3C.2D.1

考题 下面程序的输出结果是includemain(){int a[]={1,2,3,4,5,6,7,8,9,0},*p;p=a;printf("% 下面程序的输出结果是 #include<stdio.h> main() { int a[]={1,2,3,4,5,6,7,8,9,0},*p; p=a; printf("%d\n",*p+9);}A.0B.1C.10D.9

考题 下面程序执行结果为:1×1=12×1=2 2×2=43×1=3 3×2=6 3×3=99×1=9 9×2=18 9×3=27 9×4=36 9×5=45 9×6=54 9×7=63 9×8=72 9×9=81请在每条横线处填写一个语句,使程序的功能完整。注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。public class ForLoopStatement{public static void main(String args[]){int m,n;for(m=1;m<10;_____________)________________;System.out.print(m+ "*" + n + "=" + m * n + " " );_____________}}

考题 下面程序输出的结果是 include void main( ) { inti; int a[3] [3] ={1,2,3,4,5,6, 下面程序输出的结果是#include<iostream.h>void main( ){ inti;int a[3] [3] ={1,2,3,4,5,6,7,8,91;for(i=0;i<3;i++)cout < < a[2-i] [i] < < " ";}A.1 5 9B.7 5 3C.3 5 7D.5 9 1

考题 IT服务工程师需填写的文档有以下那些类别?(1)故障解决(2)在线支持(3)健康检查(4)补丁安装(5)值守服务(6)安装配置服务(7)软件支持服务(8)系统状况评估(9)性能优化( ) A.1、2、3、7、9B.2、3、4、5、8、9C.1、3、4、5、6、7、8、9D.1、2、3、4、5、6、9E.3、4、5、6、7、8、9

考题 下列秸序在运行时输出的结果是( )。A. 1 3 5 7 9B. 9 7 5 3 1C. 1 2 3 4 5 6 7 8 9 10D. 10 9 8 7 6 5 4 3 2 1

考题 下面程序输出的结果是includevoid main( ){ int i;int a[3][3]={1,2,3,4,5,6,7,8,9 下面程序输出的结果是 #include<iostream.h> void main( ) { int i; int a[3][3]={1,2,3,4,5,6,7,8,9}; for(i=0;<3;i++) cout << a[2-i][i]<<" "; }A.1 5 9B.7 5 3C.3 5 7D.5 9 1

考题 有以下程序程序运行后的输出结果是( )。A.1,2,3.4,5,6,7,8,9,10,B.10,9,8,7,6,5,4,3,2,1,C.2,3,1,6,8,7,5,4,10,9,D.10,9,8,7,6,1,2,3,4,5,

考题 下面程序输出的结果是()includevoid main(){inti:int a[3][3]={1,2,3,4,5,6,7,8,9} 下面程序输出的结果是( ) #include<iostreas.h> void main() {inti: int a[3] [3]={1,2,3,4,5,6,7,8,9}; for(i=0;i<3;i++= cout<<a [i] [i]<<" ";}A.1 5 9B.7 5 3C.3 5 7D.5 9 1

考题 有下列程序:程序运行后的输出结果是( )。A.1,2,3,4,5,6,7,8,9,10,B.1,2,7,6,3,4,5,8,9,10,C.1,2,7,6,5,4,3,8,9,10,D.1,2,9,8,7,6,5,4,3,10,

考题 有以下程序程序的运行结果是( )。A.1,2,3,4,5,6,7,8,9,0,B.2,1,4,3,6,5,8,7,0,9,SXB 有以下程序程序的运行结果是( )。A.1,2,3,4,5,6,7,8,9,0,B.2,1,4,3,6,5,8,7,0,9,C.0,9,8,7,6,5,4,3,2,l,D.0,1,2,3,4,5,6,7,8,9,

考题 有以下程序:A.1,2,3,4,5,6,7,8,9,0,B.0,9,8,7,6,5,1,2,3,4,C.0,9,8,7,6,5,4,3,2,1,D.1,2,3,4,9,8,7,6,5,0,

考题 下面程序输出的结果是includevoid main(){ int i; int a[3][3]={1,2,3,4,5,6,7,8,9 下面程序输出的结果是 #include<iostream.h> void main() { int i; int a[3][3]={1,2,3,4,5,6,7,8,9}; for(i=0;<3;i++) cout<<a[2-i][i]<<" "; }A.1 5 9B.7 5 3C.3 5 7D.5 91

考题 有以下程序:程序运行后的输出结果是( )。A.2,3,1,6,8,7,5,4,10,9,B.10,9,8,7,6,5,4,3,2,l,C.1,2,3,4,5,6,7,8,9,10,D.10,9,8,7,6,1,2,3,4,5,

考题 下面程序的输出结果是 ( )public class ex2{ public static void main(String []args) { for(int cnt=1;cnt<=10;cnt++) { if(cnt<=5) continue; System.out.print(cnt+""); } }}A.1 2 3 4B.6 7 8 9C.1 2 3 4 6 7 8 9 10D.6 7 8 9 10

考题 下面程序的运行结果是()。include void main(){static int a[][4]={ 1,2,3,4,5,6,7, 下面程序的运行结果是( )。#include <iostream.h>void main(){static int a[][4]={ 1,2,3,4,5,6,7,8,9,10,11,12};int i, j, sum=0;for(i=0;i<3;i++)for(j=0;j<4;j++)if(j>i)sum+=a[i][j];cout<<sum<<end1;}A.24B.30C.36D.40

考题 单选题从四个选项中选出下面程序段实现的计算公式()  sum:=0;i:=0;  repeat  sum:=sum+i;    i:=i+2;  until i10;  writeln(‘sum=’,sum:6:4);A 2+4+6+…+10B 2+4+6+…+12C 2+4+6+…+8D 1+3+5+7+…+9

考题 单选题有以下程序 void sum(int a[]) { a[0]=a[-1]+a[1]; } main() { int a[10]={1,2,3,4,5,6,7,8,9,10}; sum(a[2]); printf("%d/n",a[2]); } 程序运行后输出结果是()A 6B 7C 5D 8

考题 单选题IT服务工程师需填写的文档有以下那些类别()(1)故障解决(2)在线支持(3)健康检查(4)补丁安装(5)值守服务(6)安装配置服务(7)软件支持服务(8)系统状况评估(9)性能优化A 1、2、3、7、9B 2、3、4、5、8、9C 1、3、4、5、6、7、8、9D 1、2、3、4、5、6、9E 3、4、5、6、7、8、9