A.同時移動到另一處
B.在回收站
C.在剪貼板
D.依然保留在原處
第2題
下列代碼實現(xiàn)了將一個文件的內(nèi)容復制到另一個文件的功能。下劃線處應填入的代碼是________。 import java .io .* ; public class Test{ public static void main ( String [ ] args ) { try{ FileInputStream is = new FileInputStream( “D :\\from .txt”) ; FileOutputStream os = new ____________( “D : \\ to .txt”) ; byte [ ] str = new _______ [1024] ; while (is .available ( ) > 0 ) { is. read (str ,0 , 1024) ; os .write(str) ; } is.close ( ) ; os.close ( ) ; } catch (ArrayIndexOutOfBoundsException e) { e.printStackTrace ( ) ; } catch (IOException e ); e.printStackTrace ( ) ; } } }
A、FileInputStream, str
B、FileOutputStream ,str
C、FileOutputStream, byte
D、FileInputStream,byte
第4題
A.感染性
B.傳染性
C.繁殖性
D.觸發(fā)性
第6題
A.按住Tab鍵用鼠標左鍵拖放
B.直接用鼠標左鍵拖放
C.按住Alt鍵用鼠標左鍵拖放
D.按住Shift鍵用鼠標左鍵拖放
第8題
下面代碼采用緩沖的方式實現(xiàn)了將一個文件的內(nèi)容復制到另一個文件的功能,下劃線處應填寫的代碼是________。 import java.io.*; public class Test { public static void main(String [] args){ try{ FileInputStream is = new FileInputStream(“D:\\from.txt”); FileOutputStream os =new FileOutputStream(“D:\\to.txt”); BufferedInputStream bi = new _________________(is); BufferedOutputStream bo = new BufferedOutputStream(os); byte[] data = new byte[1]; while(bi.read(data) != -1){ bo.___________(data); } bo.flush(); bi.close(); bo.close(); }catch(ArrayIndexOutofBoundsException e){ e.printStackTrace(); } catch(IOException e){ e.printStackTrace(); } } }
A、Buffered OutputStream,read
B、BufferedInputStream write
C、BufferedInputStream read
D、BufferedOutputStream write
第10題
A.剪貼板中
B.寫字板中
C.計算機內(nèi)存中
D.臨時文件中
為了保護您的賬號安全,請在“上學吧”公眾號進行驗證,點擊“官網(wǎng)服務”-“賬號驗證”后輸入驗證碼“”完成驗證,驗證成功后方可繼續(xù)查看答案!