• 2022-06-08 问题

    以下程序的运行结果为( )。class Apple { int n1 = 5; static int n2 = 0; void fun() { n1++; n2++; } } public class Main { public static void main(String[] args) { Apple apple1 = new Apple(); Apple apple2 = new Apple(); apple1.fun(); System.out.print(apple1.n1 + "," + apple1.n2 + ";"); apple2.fun(); apple2.fun(); System.out.print(apple2.n1 + "," + apple2.n2); } }

    以下程序的运行结果为( )。class Apple { int n1 = 5; static int n2 = 0; void fun() { n1++; n2++; } } public class Main { public static void main(String[] args) { Apple apple1 = new Apple(); Apple apple2 = new Apple(); apple1.fun(); System.out.print(apple1.n1 + "," + apple1.n2 + ";"); apple2.fun(); apple2.fun(); System.out.print(apple2.n1 + "," + apple2.n2); } }

  • 2022-06-06 问题

    {'apple', 'orange', 1} 是一个集合。

    {'apple', 'orange', 1} 是一个集合。

  • 2021-04-14 问题

    已知()y()=()ln()x(),则()y()(()n())()=()。A.()(()−()1())()n()n()!()x()−()n()"()role="presentation">()(()−()1())()n()n()!()x()−()n();()B.()(()−()1())()n()(()n()−()1())()!()x()−()2()n()"()role="presentation">()(()−()1())()n()(()n()−()1())()!()x()−()2()n();()C.()(()−()1())()n()−()1()(()n()−()1())()!()x()n()"()role="presentation">()(()−()1())()n()−()1()(()n()−()1())()!()x()-n();()D.()(()−()1())()n()−()1()n()!()x()−()n()+()1()"()role="presentation">()(()−()1())()n()−()1()n()!()x()−()n()+()1().

    已知()y()=()ln()x(),则()y()(()n())()=()。A.()(()−()1())()n()n()!()x()−()n()"()role="presentation">()(()−()1())()n()n()!()x()−()n();()B.()(()−()1())()n()(()n()−()1())()!()x()−()2()n()"()role="presentation">()(()−()1())()n()(()n()−()1())()!()x()−()2()n();()C.()(()−()1())()n()−()1()(()n()−()1())()!()x()n()"()role="presentation">()(()−()1())()n()−()1()(()n()−()1())()!()x()-n();()D.()(()−()1())()n()−()1()n()!()x()−()n()+()1()"()role="presentation">()(()−()1())()n()−()1()n()!()x()−()n()+()1().

  • 2022-06-10 问题

    对于字符串和for循环的知识点,现设置代码如下:[img=413x259]17da6f9eb7df542.png[/img]请分析这段代码的输出结果为( )。 A: {'grape': '1',apple': '2','watermelon': '3','lemon': '4'} B: {grape:1,apple:2,watermelon:3,lemon:4} C: ['grape';'1', 'apple':12', 'watermelon';'3','lemon';'4'] D: [grape:1,apple:2,watermelon:3,lemon:4]

    对于字符串和for循环的知识点,现设置代码如下:[img=413x259]17da6f9eb7df542.png[/img]请分析这段代码的输出结果为( )。 A: {'grape': '1',apple': '2','watermelon': '3','lemon': '4'} B: {grape:1,apple:2,watermelon:3,lemon:4} C: ['grape';'1', 'apple':12', 'watermelon';'3','lemon';'4'] D: [grape:1,apple:2,watermelon:3,lemon:4]

  • 2021-04-14 问题

    已知数列{ a n }, a 1 =1, a n - a n - 1 =1 ( n ≥2).则 a 5 =(  )

    已知数列{ a n }, a 1 =1, a n - a n - 1 =1 ( n ≥2).则 a 5 =(  )

  • 2022-06-29 问题

    求n!问题,表示算法的复杂性的递归函数下述正确的是? A: T(n)=O(1),当n=1 T(n)=T(n-1)+O(1),当n>1 B: T(n)=O(1),当n=1 T(n)=nT(n-1)+O(1),当n>1 C: T(n)=O(1),当n=1 T(n)=2T(n/2)+O(1),当n>1 D: T(n)=O(1),当n=1 T(n)=T(n/2)+O(n),当n>1

    求n!问题,表示算法的复杂性的递归函数下述正确的是? A: T(n)=O(1),当n=1 T(n)=T(n-1)+O(1),当n>1 B: T(n)=O(1),当n=1 T(n)=nT(n-1)+O(1),当n>1 C: T(n)=O(1),当n=1 T(n)=2T(n/2)+O(1),当n>1 D: T(n)=O(1),当n=1 T(n)=T(n/2)+O(n),当n>1

  • 2022-05-30 问题

    阅读以下程序,填写运行结果________________.dic={'apple':2, 'orange':5, 'pear':3, 'banana':6, 'watermelon':1}n=0for k,v in dic.items(): if v>=n: m=k n=vprint(m)

    阅读以下程序,填写运行结果________________.dic={'apple':2, 'orange':5, 'pear':3, 'banana':6, 'watermelon':1}n=0for k,v in dic.items(): if v>=n: m=k n=vprint(m)

  • 2021-04-14 问题

    【单选题】已知数列{a n }中,a 1 =1,当n≥2时,a n =2a n - 1 +1,依次计算a 2 ,a 3 ,a 4 后,猜想a n 的一个表达式是()(5.0分) A. n 2 ﹣1 B. (n﹣1) 2 +1 C. 2 n ﹣1 D. 2 n ﹣ 1 +1

    【单选题】已知数列{a n }中,a 1 =1,当n≥2时,a n =2a n - 1 +1,依次计算a 2 ,a 3 ,a 4 后,猜想a n 的一个表达式是()(5.0分) A. n 2 ﹣1 B. (n﹣1) 2 +1 C. 2 n ﹣1 D. 2 n ﹣ 1 +1

  • 2022-06-07 问题

    排列\( 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) \)

    排列\( 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) \)

  • 2022-05-29 问题

    设`\n`阶方阵`\A`满足`\|A| = 2`,则`\|A^TA| = ,|A^{ - 1}| = ,| A^ ** | = ,| (A^ ** )^ ** | = ,|(A^ ** )^{ - 1} + A| = ,| A^{ - 1}(A^ ** + A^{ - 1})A| = `分别等于( ) A: \[4,\frac{1}{2},{2^{n - 1}},{2^{{{(n - 1)}^2}}},2{(\frac{3}{2})^n},\frac{{{3^n}}}{2}\] B: \[2,\frac{1}{2},{2^{n - 1}},{2^{{{(n + 1)}^2}}},2{(\frac{3}{2})^n},\frac{{{3^n}}}{2}\] C: \[4,\frac{1}{2},{2^{n + 1}},{2^{{{(n - 1)}^2}}},2{(\frac{3}{2})^{n - 1}},\frac{{{3^n}}}{2}\] D: \[2,\frac{1}{2},{2^{n - 1}},{2^{{{(n - 1)}^2}}},2{(\frac{3}{2})^{n - 1}},\frac{{{3^n}}}{2}\]

    设`\n`阶方阵`\A`满足`\|A| = 2`,则`\|A^TA| = ,|A^{ - 1}| = ,| A^ ** | = ,| (A^ ** )^ ** | = ,|(A^ ** )^{ - 1} + A| = ,| A^{ - 1}(A^ ** + A^{ - 1})A| = `分别等于( ) A: \[4,\frac{1}{2},{2^{n - 1}},{2^{{{(n - 1)}^2}}},2{(\frac{3}{2})^n},\frac{{{3^n}}}{2}\] B: \[2,\frac{1}{2},{2^{n - 1}},{2^{{{(n + 1)}^2}}},2{(\frac{3}{2})^n},\frac{{{3^n}}}{2}\] C: \[4,\frac{1}{2},{2^{n + 1}},{2^{{{(n - 1)}^2}}},2{(\frac{3}{2})^{n - 1}},\frac{{{3^n}}}{2}\] D: \[2,\frac{1}{2},{2^{n - 1}},{2^{{{(n - 1)}^2}}},2{(\frac{3}{2})^{n - 1}},\frac{{{3^n}}}{2}\]

  • 1 2 3 4 5 6 7 8 9 10