更多“The factory has turned out more and better bicycles since the new techniques were __. ”相关问题
  • 第1题:

    A: Where()you last week? B: I()in Alabama.

    A、were/were

    B、was/is

    C、were/was

    D、was/were


    答案:C

  • 第2题:

    现有磁盘文件filea.txt和fileb.txt,各存放一行字母,上述程序实现了将2个磁盘文件中的内容合并,并按照字母的升序排列,存放到一个新的文件new.txt中。请将程序补充完整。

    注意:不改动程序结构,不得增行或删行。

    package ch3;

    import java.util.*;

    import java.io.*;

    public class ex3

    {

    public static void main(String[] args)

    {

    String s="";

    try

    {

    RandomAccessFile f1=

    new RandomAccessFile("ch3/filea.txt","rw");

    ______f2=new ______("ch3/fileb.txt","rw");

    s=f1.readLine()+f2.readLine();

    char c[]=s.toCharArray();

    Arrays.sort(c);

    ______Out=new______("ch3/new.txt");

    for(int i=0;i<c.length;i++)

    {

    Out.______(c[i]);

    }

    out.______;

    f1.close();

    f2.close();

    }

    catch(I0Exception ioe)

    {

    ioe.printStackTrace();

    }

    }

    }


    正确答案:RandomAccessFile RandomAccessFile FileOutputStream PileOutputStream write close
    RandomAccessFile RandomAccessFile FileOutputStream PileOutputStream write close 解析:本题是考查对文件输出流及其常用方法的理解。输入流采用了RandomAccessFile类,输出流采用了FileOutputStream,存放到新的文件要调用write方法,最后完成文件的读写操作时,相应的对象需要关闭自己所关联的文件。6个空的答案分别是RandomAccessFile、RandomAccessFile、FileOutputStream、FileOutputStream、write和close.

  • 第3题:

      A. moved
      B.changed
      C. belonged
      D.turned


    答案:C
    解析:

  • 第4题:

    classBitStuff{BitStuffgo(){System.out.print("bits");returnthis;}}classMoreBitsextendsBitStuff{MoreBitsgo(){System.out.print("more");returnthis;}publicstaticvoidmain(String[]args){BitStuff[]bs={newBitStuff(),newMoreBits()};for(BitStuffb:bs)b.go();}}结果为:()

    A.bitsbits

    B.bitsmore

    C.moremore

    D.编译失败


    参考答案:B

  • 第5题:

    They convertde the spare bedroom into an office.

    A:reduced
    B:moved
    C:reformed
    D:turned

    答案:D
    解析:
    本句意思:他们把那个空卧室变成了办公室。convert …into…意为“把……转变 成……”,turn的用法与convert一样。

  • 第6题:

    They converted the spare bedroom into an office.

    A:reduced
    B:moved
    C:reformed
    D:turned

    答案:D
    解析:
    本句意思:他们把闲余的卧室改成了办公室。convert意为“转变,变换”,与turn (变成) 意思相近。reduce减少;move移动;reform改革。