A: col=1
B: col=2
C: col=0
D: line=1
举一反三
- 以下能正确计算1*2*3*……*10的程序段是( )。 A: do<br>{<br>i=1; s=1;<br>s*=i;<br>i++;<br>} while(i<=10); B: do<br>{<br>i=1; s=0;<br>s*=i;<br>i++;<br>} while(i<=10); C: i=1; s=1;<br>do<br>{<br>s*=i;<br>i++;<br>} while(i<=10); D: i=1; s=0;<br>do<br>{<br>s*=i;<br>i++;<br>} while(i<=10);
- 关于Python字符串操作的描述,错误的是() A: >>><br/>"hellohellohello"/3<br/>输出结果是"hello" B: >>><br/>"hello"*2<br/>输出结构是'hellohello' C: >>><br/>'hello' + 1<br/>输出结果是<br/>Traceback (most<br/>recent call last):<br/>File<br/>"", line 1, in <br/>"hello"<br/>+ 1<br/>TypeError: must be<br/>str, not int D: >>><br/>"hello" - "world"<br/>输出结果是<br/>Traceback (most<br/>recent call last):<br/>File<br/>"", line 1, in <br/>"hello"<br/>- "world"<br/>TypeError:<br/>unsupported operand type(s) for -: 'str' and 'str'
- 关于Python字符串操作的描述,错误的是 A: >>> "hellohellohello"/3<br/>输出结果是"hello" B: >>> "hello"*2<br/>输出结构是'hellohello' C: >>> 'hello' + 1<br/>输出结果是<br/>Traceback<br/>(most recent call last):<br/>File<br/>"", line 1, in <br/>"hello"<br/>+ 1<br/>TypeError:<br/>must be str, not int D: >>> "hello" - "world"<br/>输出结果是<br/>Traceback<br/>(most recent call last):<br/>File<br/>"", line 1, in <br/>"hello"<br/>- "world"<br/>TypeError:<br/>unsupported operand type(s) for -: 'str' and 'str'
- 概念题[br][/br]时间线( time line)
- 原理图设计时,实现连接导线应选择( )命令。[br][/br] [br][/br](1.0) A: Place/Wire B: Line C: Place/Drawing Tools/Line D: Wire
内容
- 0
下面程序的运行结果是()。[br][/br] voidmain(){[br][/br] inty=10;[br][/br] do{y--;}while(--y);[br][/br] printf("%d\n",y--);} A: -1 B: 1 C: 8 D: 0
- 1
请阅读下面的程序 [br][/br]public class Test { [br][/br] public static void main(String[] args) { [br][/br] int a = { 2, 0, 4, 1, 8, 3, 5 }; [br][/br] int temp;[br][/br] for (int i = 0; i [ a.length - 1; i++) { <br] for (int j = a.length - 1; j > i; j--) {[br][/br] if (aj [ aj - 1) { <br] temp = aj; [br][/br] aj = aj - 1; [br][/br] aj - 1 = temp; [br][/br] }[br][/br] }[br][/br] }[br][/br] for (Integer i : a) {[br][/br] System.out.print(i); [br][/br] }[br][/br] }[br][/br]} [br][/br]下列选项中,哪个是程序的运行结果() A: 8543210 B: 0123458 C: 2041835 D: 以上答案都不对
- 2
有以下程序[br][/br] # include <stdio.h>[br][/br] main()[br][/br] { int a=7;[br][/br] while(a--);[br][/br] printf("%d\n",a),[br][/br] }[br][/br] 程序运行后的输出结果是 A: -1 B: 0 C: 1 D: 7
- 3
概念题[br][/br]资本市场线( capital market line)
- 4
_________the<br/>present situation, we'll have to revise our original plan. A: In<br/>view of B: In<br/>line with C: Conforming<br/>to D: Taking<br/>up