阅读以下打印九九乘法表程序,A处应该填入______________[br][/br]#!/bin/sh[br][/br]col=1[br][/br]line=1[br][/br]while [ "$line" -le 9 ][br][/br]do[br][/br] ___ A_______[br][/br] while [ "$col" -le "$line" ][br][/br] do[br][/br] val=`expr $col \* $line`[br][/br] echo -n "$col * $line=$val "[br][/br] col=$(($col+1))[br][/br] done[br][/br] echo ""[br][/br] line=$(($line+1))[br][/br]done
A: col=1
B: col=2
C: col=0
D: line=1
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