[填空题]
请完善程序(程序文件名:Java_2.java),并进行调试。请在下画线处填入正确内容,然后删除下画线。请勿删除注释行和其他已有的语句内容。
题目要求:
对字符串进行缓存处理,程序运行的某次结果如下图所示。
源程序:
import javax.swing.*;
public class Java_2 {
public static
void main( String args[] ) {
StringBuffer buf = new StringBuffer( "你好!祝你好运!");
String output = " buf = " + buf.toString( ) + " /nCharacter at 0:" +
buf.charAt(0)+
" /nCharacter at 4: " + buf.charAt(4) ;
char charArray[]= (1) char[buf.length( )];
buf. (2) ( 0, buf.length( ),charArray,0);
output + = " /n/n 在字符串缓存中的字符时: " ;
for(int i = 0; i<
(3) ; ++i ) output += charArray[i];
buf.setCharAt( 0,’您’) ;
buf.setCharAt( 6,’材’);
output + = " /n/nbuf = " + buf.toString( ) ;
buf.
(4) ;
output + = " /n/nbuf = " +
b
[判断题]特种作业人员按照国家有关规定,由生产经营单位自行组织培训,取得相应资格,并持证上岗;( )
A.正确
B.错误
[简答题]橡胶垫板压溃或变形两侧压宽合计:厚度为7的橡胶垫板超过()mm,厚度为10mm的橡胶垫板超过20 丧失作用,橡胶垫片损坏时,应进行更换。
[单选题]三相笼型异步电动机由〔 〕构成。
A.定子、转子和接线端子
B.定子、转子和支撵构件
C.定子、转子和端盖
D.定子、转子和线圈
[判断题]有电流表监视的电动机运转时,电流表的指针超过红线标记是不允许的。
A.正确
B.错误
[判断题]《行规》第29条超重列车是指列车长度超过运行图区段规定的区段换长的列车。
A.正确
B.错误
[判断题]在我的转账功能,当日操作尚未转出的普通汇款、次日汇款可以办理撤销。
A.正确
B.错误
[单选题]当触电者脱离电源后,应根据触电者的具体情况迅速对症救护,力争在触电后( )min内进行救治了。
A.10
B.8
C.3
D.1
[单项选择]在窗体上画四个文本框(如图所示),并用这四个文本框建立一个控件数组,名称为Text1(下标从0开始,自左至右顺序增大),然后编写如下事件过程: Private Sub Command1_Click( ) For Each TextBox In Text1 Text1(i) = Text1(i).Index i = i + 1 Next End Sub 程序运行后,单击命令按钮,四个文本框中显示的内容分别为
A. 0 1 2 3
B. 1 2 3 4
C. 0 1 3 2
D. 出错信息
[单选题]该药材断面的形状鉴别特征为
A.菊花心
B.珍珠点
C.云锦纹
D.星点
E.车轮纹
[单选题]工序基准、定位基准和测量基准都属于机械加工的( )。
A.粗基准
B.工艺基准
C.粗基准
D.设计基准
[判断题]库房内因物品防冻必须采暖时,应当采用水暖,其散热器、供暖管道与储存物品的距离不小于零点五米。
A.正确
B.错误
[单项选择]表达式~0x11的值是( )。
A. 0xFFEE
B. 0x71
C. 0x0071
D. 0xFFE1
[判断题]甲在运送他人偷越国边(境)时以暴力、威胁等方式抗拒边检人员的检查,应当以运送他人偷越国(边)境罪和妨害公务罪数罪并罚。
A.正确
B.错误
[判断题]接地对防止物体带电有效,而对防止物体的静电产生无效。( )
A.正确
B.错误
[单项选择]测量体温、脉搏、呼吸时,如病人有剧烈活动应让病人休息()
A. 10—20min
B. 20—30min
C. 30—40min
D. 15—20min
[判断题]与事故无关的单位或个人不用配合事故抢救 。( )
A.正确
B.错误
[单项选择]急性肾盂肾炎的临床表现有( )
A. 发热
B. 腰痛
C. 膀胱刺激征状
D. 尿检查发现白细胞
E. 以上都对
[单选题]用钳形表测量被测电流大小难于估计时,可将量程开关放在最小档位上进行粗测。
A.正确
B.错误
[单项选择]作业环境中不良气象条件不包括()
A. 气压
B. 气湿
C. 噪声
D. 气温
E. 气流
[单项选择]Passage Two
Questions 57 to 61 are based on the following passage.
Researchers are increasingly interested in manipulating the environment early in children’s lives when they are perceived to be at risk for impoverished intelligence. In a program conducted in North Carolina by Craig Ramey and his associates, pregnant women with IQs averaging 80 were recruited for a study. After their babies were born, half of the infants were cared for during the day at an educational day-care center and half were reared at home by their mothers. Both groups of children were given medical care and dietary supplements, and their families were given social services if they requested them.
At the age of 3, the children who attended the educational day-care center had significantly higher IQs than did the home-reared children. This difference was likely due to the decline in the IQs of the home-reared children during the period from 12 to 18 months of
A. educational day-care centers are the best place for children to grow up in
B. parents fail to provide an adequate environment for their intelligence growth
C. the age of 12 is a critical point in time for intellectual development in children
D. intellectual development and academic achievement of children are closely related
[多选题]消防救援人员有下列情形之ー的,可以从轻或者减轻给予处分:( )
A.主动交代本人应当受到处分的违法违纪行为的
B.配合调查,如实说明本人违法违纪事实的
C.检举他人违法违纪行为,经查证属实的
D.主动采取措施,有效避免、挽回损失或者消除不良影响的
[单选题]诊断结核性脑膜炎最可靠的依据是
A. 脑脊液中找到抗酸杆菌
B. 脑脊液中糖及氯化物下降
C. 脑脊液中蛋白质含量增加
D. 颅压高,脑脊液呈毛玻璃样
E. 脑脊液中细胞数增多,以淋巴细胞增多为主
[单项选择]某男,10岁,为预防流行性感冒,自愿接种流感疫苗。接种过程中,小儿出现头晕,心悸,面色苍白,出冷汗;查体:体温36oC,脉搏130次/分,呼吸25次/分,诊断为晕针。此时,护士应为患儿采取正确的卧位是
A. 头低脚高位
B. 头高脚低位
C. 侧卧位
D. 俯卧位
E. 平卧位