• 2022-06-09 问题

    下列选项中,循环会无限执行的是______。 A: int i = 1 ; while ( i < 10) System .out .print( “ ” + i) ; B: for( int i = 1 ; i < 10 ;i ++) System .out .print( “ ” + i); C: for( int i = 10 ; i > 0 ;i --) System .out .print( “ ” + i); D: int i = 1 ; while (true) { System .out .print( “ ” + i); i ++ ; if ( i > 5) break ;

    下列选项中,循环会无限执行的是______。 A: int i = 1 ; while ( i < 10) System .out .print( “ ” + i) ; B: for( int i = 1 ; i < 10 ;i ++) System .out .print( “ ” + i); C: for( int i = 10 ; i > 0 ;i --) System .out .print( “ ” + i); D: int i = 1 ; while (true) { System .out .print( “ ” + i); i ++ ; if ( i > 5) break ;

  • 2021-04-14 问题

    下列程序的运行结果是()。 public class Test public static void main ( String [ ] args ) int count = 0 for( int i = 1 i < 5 i = 2) for( int j = 1 j< = 10 j = 3) count System .out .print (count ) _

    下列程序的运行结果是()。 public class Test public static void main ( String [ ] args ) int count = 0 for( int i = 1 i < 5 i = 2) for( int j = 1 j< = 10 j = 3) count System .out .print (count ) _

  • 2022-06-06 问题

    New students spend hours in the library, trying to()the system of arranging the books. A: work out B: cross out C: set out D: put out

    New students spend hours in the library, trying to()the system of arranging the books. A: work out B: cross out C: set out D: put out

  • 2021-04-14 问题

    编写程序,并运行。 参考代码: print(3-3 and 3<6) print(3<6 and 3+5) print(1+2 or 3<6) print(3<6 or 3+5) print(not 3>6)

    编写程序,并运行。 参考代码: print(3-3 and 3<6) print(3<6 and 3+5) print(1+2 or 3<6) print(3<6 or 3+5) print(not 3>6)

  • 2021-04-14 问题

    The command wc –l some_file will print out the number of:

    The command wc –l some_file will print out the number of:

  • 2022-10-24 问题

    下列语句,输出为True的是()。 A: print(3 > 3 and 3 > 2) B: print(2 > 3) C: print(not 3) D: print(2 and True)

    下列语句,输出为True的是()。 A: print(3 > 3 and 3 > 2) B: print(2 > 3) C: print(not 3) D: print(2 and True)

  • 2022-06-12 问题

    在下列代码中,哪一个选项的print语句能够被执行? A: if 4 &lt; 3: print('OK') B: if 4 == 3: print('OK') C: if 4 != 3: print('OK') D: if 3 = 3: print('OK')

    在下列代码中,哪一个选项的print语句能够被执行? A: if 4 &lt; 3: print('OK') B: if 4 == 3: print('OK') C: if 4 != 3: print('OK') D: if 3 = 3: print('OK')

  • 2021-04-14 问题

    写出下列程序的运行结果 s='abcdefg' print(s[3]) print(s[3:5]) print(s[:5]) print(s[3:]) print(s[::2]) print(s[::-1]) print(s[-2:-5])

    写出下列程序的运行结果 s='abcdefg' print(s[3]) print(s[3:5]) print(s[:5]) print(s[3:]) print(s[::2]) print(s[::-1]) print(s[-2:-5])

  • 2022-06-07 问题

    10. A control system ought to both point out the problem and specify the solution.

    10. A control system ought to both point out the problem and specify the solution.

  • 2022-06-29 问题

    下列语句执行后只输出一个数字3的是( ) A: if 2>=3: print(3) B: if True: print(3) C: if 1==2: print(3) D: while 3>5: print(3)

    下列语句执行后只输出一个数字3的是( ) A: if 2>=3: print(3) B: if True: print(3) C: if 1==2: print(3) D: while 3>5: print(3)

  • 1 2 3 4 5 6 7 8 9 10