外科术后处理措施中,错误的是()A.全麻未苏醒时,采取平卧位B.腹部手术后3天即可进食C.腹部手术后,取半坐位D.尽量早期活动E.术后鼓励病人咳嗽排痰
第2题
下面程序的功能是统计字符串中“array”的个数,在程序的空白处应填入的正确选项是 public class FindKeyWords{ public static void main(String[]args) { String text="An array is a data structur that stores a collection of" +"values of the same type. You access each indMdual value" +"through an integer index. For example,if a is an array" +"of inergers,then a[i]is the ith integer in the array."; int arrayCount=0; int index=-1; String arrayStr="array"; index=text.indexOf(arrayStr); while(index>=0) { ++arrayCount; index+=arrayStr.length(); index=text.indexOf(arrayStr,index); } System.out.println("the text contains"+arrayCount+"arrays"); } }
A.<
B. =
C.<=
D.>=
第3题
(30 )下列程序的功能是统计字符串中 “ array ” 的个数,在程序的空白处应填入的正确选项是
public class FindKey Word s{
public static void main(sring[] args){
sting text=
“ An array is a data structur that stores a collection of ”
+ “ values of the same type . You access each individual value ”
+ “ through an integer index . For example,if a is an array ”
+ “ of inergers, then a[i] is the ith integer in the array. ” ;
Int arrayCount =0;
Int idex = -1;
Sting arrarStr = ” array ” ;
Index = text.indexof(arrayStr);
While(index______ 0) {
++arrayCount;
Index += arrayStr.length();
Index = text.indexof(arrayStr,index);
}
System.out.println
(“ the text contains ” + arrayCount + “ arrays ” );
}
}
A) <
B) =
C) <=
D) >=
第4题
A.<
B.=
C.<=
D.>=
第5题
A.<
B.=
C.<=
D.>=
第6题
在下列程序的空白处,应填入的正确选项是()。
A.WriterObject
B.Writer
C.BufferedWriter
D.writerObject
第7题
在下列程序的空白处,应填入的正确选项是()。
A.start()
B.close()
C.read()
D.write()
第8题
第9题
下面这个Sub过程的功能是统计字符串中“a”的个数,请在空白处填上合适的代码完成程序。
Private Sub numCount()
Dim hum As Integer
s$ = "software And hardware"
num = Len(s$)
For i = 1 To hum
b$=______
If b$ = "a" Then x = x+1
Next i
Print "x="; x
End Sub
第10题
(20 )在下列程序的空白处,应填入的正确选项是
import java.io.*;
Public class writeInt{
Public static void main(string[ ] a) {
Int[ ] myArray = {10,20,30,40};
try{
DataOutputSystem dos= new DataOutputSystem
(new FileOutputSystem(“ ints.dat ” ) ) ;
for (int i=0 ; I<myArray.length ; i++ )
dos 。 writeInt (myArray[i] ) ;
dos.
System.out.println
(“ Have written binary file ints.dat ” );
}
Catch(IOException ioe)
{ System.out.println(“ IO Exception ” );
}
}
}
A)start()
B)close()
C)read()
D)write()
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!