• 2022-06-07
    3. Suppose that the relative error of is ,then the relative error of is_________.
    A: n*2%
    B: 2%
    C: n/2%
    D: (2%)^n
  • A

    举一反三

    内容

    • 0

      /*------------------------------------------------------ 【程序改错】 -------------------------------------------------------- 功能:以下程序能求出1*1+2*2+......+n*n<=1000中满足条件的 最大的n。 -------------------------------------------------------- 请将注释行error下一行的语句修改成正确的语句!请填写完整语句! 注意:所有符号必须是英文状态下的符号! ------------------------------------------------------*/ #include "stdio.h" #include "string.h" void main() { int n,s; /**********ERROR 1 **********/ s==n=0; /**********ERROR 2 **********/ while(s>1000) { ++n; s+=n*n; } /**********ERROR 3 **********/ printf("n=%d ",&n-1); }

    • 1

      找出x3 + 7x + 2 的所有大Ω表示. A: Ω (n^2) B: Ω (n^3) C: Ω (n^4) D: Ω (2^n)

    • 2

      有关逻辑或关系表达式,错误的是( ) A: 1 <= numberDays && numberDays<=31 B: 1 <= numberDays || numberDays >=31 C: (n!=2 && n!=3)==!(!(n==2||n==3)) D: n!=2 && n!=3与!(n==2||n==3)是等价的

    • 3

      排列\( n(n - 1)(n - 2) \cdots 3 \cdot 2 \cdot 1 \)的逆序数是( ) A: \( {1 \over 2}n(n - 1) \) B: \( n(n - 1) \) C: \( n \) D: \( {n^2}(n - 1) \)

    • 4

      与3dz2原子轨道相对应的一组量子数是 A: n=3,l=2,m=2 B: n=3,l=2,m=0 C: n=3,l=2,m=2,ms=+1/2 D: n=3,l=2,m=2,ms=+1/2