• 2022-07-24 问题

    以下关于现值系数和终值系数说法正确的是( ) A: 0<(P/F,i,n)<1 0<(F/P,i,n)<1 B: (P/F,i,n)>1 (F/P,i,n)>1 C: 0<(P/F,i,n)<1 (F/P,i,n)>1 D: 0<(F/P,i,n)<1 (P/F,i,n)>1

    以下关于现值系数和终值系数说法正确的是( ) A: 0<(P/F,i,n)<1 0<(F/P,i,n)<1 B: (P/F,i,n)>1 (F/P,i,n)>1 C: 0<(P/F,i,n)<1 (F/P,i,n)>1 D: 0<(F/P,i,n)<1 (P/F,i,n)>1

  • 2022-06-09 问题

    若有数组Dim a%(10)且每个元素有值,统计前一个元素大于后一个元素的次数,结果存放在变量n中。则下列语句正确的是___________。 A: Dim i%, n% For i = 1 To 10 If a(i) > a(i + 1) Then n = n + 1 End If Next MsgBox(n) B: Dim i%, n% For i = 1 To 10 If a(i) > a(i + 1) Then n = a(i) End If Next MsgBox(n) C: Dim i%, n% For i = 0 To 9 If a(i) > a(i + 1) Then a(i) = n + 1 End If Next MsgBox(n) D: Dim i%, n% For i = 0 To 9 If a(i) > a(i + 1) Then n = n +1 End If Next MsgBox(n)

    若有数组Dim a%(10)且每个元素有值,统计前一个元素大于后一个元素的次数,结果存放在变量n中。则下列语句正确的是___________。 A: Dim i%, n% For i = 1 To 10 If a(i) > a(i + 1) Then n = n + 1 End If Next MsgBox(n) B: Dim i%, n% For i = 1 To 10 If a(i) > a(i + 1) Then n = a(i) End If Next MsgBox(n) C: Dim i%, n% For i = 0 To 9 If a(i) > a(i + 1) Then a(i) = n + 1 End If Next MsgBox(n) D: Dim i%, n% For i = 0 To 9 If a(i) > a(i + 1) Then n = n +1 End If Next MsgBox(n)

  • 2022-07-26 问题

    指数定律方程表达式中假塑性流体的指数n的值: A: n = 1 B: n > 1 C: n < 1 D: n > 1或n < 1

    指数定律方程表达式中假塑性流体的指数n的值: A: n = 1 B: n > 1 C: n < 1 D: n > 1或n < 1

  • 2022-07-26 问题

    下列语句中哪条是错误的()? A: WRITE(*,*)(I,A(I),I=1,N) B: WRITE(*,*)(N,A(I),I=1,N) C: READ(*,*)N,(A(I),I=1,N) D: READ(*,*)(N,A(I),I=1,N)

    下列语句中哪条是错误的()? A: WRITE(*,*)(I,A(I),I=1,N) B: WRITE(*,*)(N,A(I),I=1,N) C: READ(*,*)N,(A(I),I=1,N) D: READ(*,*)(N,A(I),I=1,N)

  • 2022-06-15 问题

    5. 下列数列中,极限为$1$的是 A: $\frac{n}{{{a}^{n}}}\ \ (a\gt 1)$ B: ${{a}^{\frac{1}{n}}}\ \ (a\gt 1)$ C: $\frac{\sin {{n}^{2}}}{n}$ D: $\frac{n\sqrt{n+1}}{\sqrt{n}(2n-1)}$

    5. 下列数列中,极限为$1$的是 A: $\frac{n}{{{a}^{n}}}\ \ (a\gt 1)$ B: ${{a}^{\frac{1}{n}}}\ \ (a\gt 1)$ C: $\frac{\sin {{n}^{2}}}{n}$ D: $\frac{n\sqrt{n+1}}{\sqrt{n}(2n-1)}$

  • 2022-05-28 问题

    下列程序中sumFun()的算法时间复杂度为 ( ) 。int sumFun(int n) { int count = 0; for (int i = 1; i < n; i = i * 2) for (int j = i; j > 0; j = j - 1) count = count + i + j; return count; } A: O(n) B: O(nlogn) C: O(n^2) D: O(logn logn)

    下列程序中sumFun()的算法时间复杂度为 ( ) 。int sumFun(int n) { int count = 0; for (int i = 1; i < n; i = i * 2) for (int j = i; j > 0; j = j - 1) count = count + i + j; return count; } A: O(n) B: O(nlogn) C: O(n^2) D: O(logn logn)

  • 2022-06-06 问题

    i<=n;i++) for(i=1;i<=n;i--)f*=i; f*=i;C.f=1; D.f=1;for(i=n;i>1;i++) for(i=n;i>=2;i--)f*=i; f*=i;

    i<=n;i++) for(i=1;i<=n;i--)f*=i; f*=i;C.f=1; D.f=1;for(i=n;i>1;i++) for(i=n;i>=2;i--)f*=i; f*=i;

  • 2022-06-19 问题

    针对如下三个实现矩阵求和的不同函数:int a[N][N];int sumA( int a[N][N] ){ int i, j; int sum = 0; for ( i = 0; i < N; i++ ) for ( j = 0; j < N; j++ ) sum += a[i][j]; return sum;}int sumB( int a[N][N] ){ int i, j; int sum = 0; for ( j = 0; j < N; j++ ) for ( i = 0; i < N; i++ ) sum += a[i][j]; return sum;}int sumC( int a[N][N] ){ int i, j; int sum = 0; for ( j = 0; j < N; j+=2 ) for ( i = 0; i < N; i+=2 ) sum += ( a[i][j] + a[i+1][j] + a[i][j+1] + a[i+1][j+1] ); return sum;}当N足够大的时候,三个函数的运行时间t1、t2、t3符合下列哪种情况?()[/i][/i][/i][/i] A: t1 > t2 > t3 B: t3 > t1 > t2 C: t2 > t3 > t1 D: t3 > t2 > t1

    针对如下三个实现矩阵求和的不同函数:int a[N][N];int sumA( int a[N][N] ){ int i, j; int sum = 0; for ( i = 0; i < N; i++ ) for ( j = 0; j < N; j++ ) sum += a[i][j]; return sum;}int sumB( int a[N][N] ){ int i, j; int sum = 0; for ( j = 0; j < N; j++ ) for ( i = 0; i < N; i++ ) sum += a[i][j]; return sum;}int sumC( int a[N][N] ){ int i, j; int sum = 0; for ( j = 0; j < N; j+=2 ) for ( i = 0; i < N; i+=2 ) sum += ( a[i][j] + a[i+1][j] + a[i][j+1] + a[i+1][j+1] ); return sum;}当N足够大的时候,三个函数的运行时间t1、t2、t3符合下列哪种情况?()[/i][/i][/i][/i] A: t1 > t2 > t3 B: t3 > t1 > t2 C: t2 > t3 > t1 D: t3 > t2 > t1

  • 2021-04-14 问题

    假设整型n已输入值。以下不能正确计算1*2*3*...*n的程序段是_______。 (1) for(i=1,s=1; i<=n; i++) s*=i; (2) i=1;s=1; while(i<=n) s*=i++; (3) i=0,s=1; do{ i++,s*=i; }while(i<=n); (4) for(i=1,s=1; ; i++) { s = s*i, if(i==n) break; }

    假设整型n已输入值。以下不能正确计算1*2*3*...*n的程序段是_______。 (1) for(i=1,s=1; i<=n; i++) s*=i; (2) i=1;s=1; while(i<=n) s*=i++; (3) i=0,s=1; do{ i++,s*=i; }while(i<=n); (4) for(i=1,s=1; ; i++) { s = s*i, if(i==n) break; }

  • 2022-06-06 问题

    下列程序段能分别正确显示1!、2!、3!、4!的值的是______。 A: For i = 1 To 4 n = 1 For j = 1 To i n = n * j MsgBox(n) Next jNext i B: For i = 1 To 4 For j = 1 To i n = 1 n = n * j Next j MsgBox(n)Next i C: n = 1For i = 1 To 4 For j = 1 To 4 n = n * j MsgBox(n) Next jNext i D: n = 1j = 1Do While j &lt;= 4 n = n * j MsgBox(n) j = j + 1Loop

    下列程序段能分别正确显示1!、2!、3!、4!的值的是______。 A: For i = 1 To 4 n = 1 For j = 1 To i n = n * j MsgBox(n) Next jNext i B: For i = 1 To 4 For j = 1 To i n = 1 n = n * j Next j MsgBox(n)Next i C: n = 1For i = 1 To 4 For j = 1 To 4 n = n * j MsgBox(n) Next jNext i D: n = 1j = 1Do While j &lt;= 4 n = n * j MsgBox(n) j = j + 1Loop

  • 1 2 3 4 5 6 7 8 9 10