单选题Which of the following commands changes a file characteristic so that it cannot be seen with astandard directory query? ()A attrib file.txt +hB attrib file.txt +rC ren file.txtD attrib file.txt +s

题目
单选题
Which of the following commands changes a file characteristic so that it cannot be seen with astandard directory query? ()
A

attrib file.txt +h

B

attrib file.txt +r

C

ren file.txt

D

attrib file.txt +s


相似考题
更多“单选题Which of the following commands changes a file characteristic so that it cannot be seen with astandard directory query? ()A attrib file.txt +hB attrib file.txt +rC ren file.txtD attrib file.txt +s”相关问题
  • 第1题:

    Whichgetsthenameoftheparentdirectoryfile“file.txt”?()

    A.Stringname=File.getParentName(“file.txt”);

    B.Stringname=(newFile(“file.txt”)).getParent();

    C.Stringname=(newFile(“file.txt”)).getParentName();

    D.Stringname=(newFile(“file.txt”)).getParentFile();

    E.Directorydir=(newFile(“file.txt”)).getParentDir();Stringname=dir.getName();


    参考答案:B

  • 第2题:

    字符串"a://xxk//file.txt"的长度为()。
    15

  • 第3题:

    下面DOS命令格式中可以去除隐藏属性的是()

    • A、Attrib–r
    • B、Attrib–h
    • C、Attrib–s
    • D、Attrib-a

    正确答案:B

  • 第4题:

    Which two construct an OutputSream that appends to the file “file.txt”? ()

    • A、 OutputStream out=new FileOutputStream(“file.txt”);
    • B、 OutputStream out=new FileOutputStream(“file.txt”, “append”);
    • C、 FileOutputStream out=new FileOutputStream(“file.txt”, true);
    • D、 FileOutputStream out=new FileOutputStream(new file(“file.txt”));
    • E、 OutputStream out=new FileOutputStream(new File(“file.txt”)true);

    正确答案:C,E

  • 第5题:

    文件复制命令称作()。

    • A、COPY
    • B、REN
    • C、DEL
    • D、ATTRIB

    正确答案:A

  • 第6题:

    设置文件student.dat具有的只读属性的DOS命令是()。

    • A、ATTRIB+Hstudent.dat
    • B、ATTRIB+Asmdent.dat
    • C、ATTRIB+Sstudent.dat
    • D、ATTRIB+Rsmdent.dat

    正确答案:D

  • 第7题:

    Which two create an InputStream and open file the “file.txt” for reading? ()

    • A、 InputStream in=new FileReader(“file.txt”);
    • B、 InputStream in=new FileInputStream(“file.txt”);
    • C、 InputStream in=new InputStreamFileReader (“file.txt”, “read”);
    • D、 FileInputStream in=new FileReader(new File(“file.txt”));
    • E、 FileInputStream in=new FileInputStream(new File(“file.txt”));

    正确答案:B,E

  • 第8题:

    The file “file.txt” exists on the file system and contsins ASCII text.  Given:   try {   File f = new File(“file.txt”);    OutputStream out = new FileOutputStream(f, true);   }    catch (IOException) {}   What is the result?()

    • A、 The code does not compile.
    • B、 The code runs and no change is made to the file.
    • C、 The code runs and sets the length of the file to 0.
    • D、 An exception is thrown because the file is not closed.
    • E、 The code runs and deletes the file from the file system.

    正确答案:A

  • 第9题:

    单选题
    What writes the text “ ” to the end of the file “file.txt”?()
    A

     OutputStream out= new FileOutputStream (“file.txt”);       Out.writeBytes (“ /n”);

    B

     OutputStream os= new FileOutputStream (“file.txt”, true);       DataOutputStream out = new DataOutputStream(os);  out.writeBytes (“ /n”);

    C

     OutputStream os= new FileOutputStream (“file.txt”);       DataOutputStream out = new DataOutputStream(os);  out.writeBytes (“ /n”);

    D

     OutputStream os= new OutputStream (“file.txt”, true);     DataOutputStream out = new DataOutputStream(os);  out.writeBytes (“ /n”);


    正确答案: C
    解析: 暂无解析

  • 第10题:

    多选题
    创建一个向文件“file.txt”追加内容的输出流对象的语句有()。
    A

    FileOutputStream out=new FileOutputStream(“file.txt”,true);

    B

    OutputStream out=new FileOutputStream(“file.txt”,“append”);

    C

    OutputStream out=new FileOutputStream(“file.txt”);

    D

    FileOutputStream out=new FileOutputStream(new file(“file.txt”));

    E

    OutputStream out=new FileOutputStream(new File(“file.txt”),true.;


    正确答案: B,E
    解析: 暂无解析

  • 第11题:

    填空题
    字符串"a://xxk//file.txt"的长度为()。

    正确答案: 15
    解析: 暂无解析

  • 第12题:

    单选题
    The file “file.txt” exists on the file system and contsins ASCII text.  Given:   try {   File f = new File(“file.txt”);    OutputStream out = new FileOutputStream(f, true);   }    catch (IOException) {}   What is the result?()
    A

     The code does not compile.

    B

     The code runs and no change is made to the file.

    C

     The code runs and sets the length of the file to 0.

    D

     An exception is thrown because the file is not closed.

    E

     The code runs and deletes the file from the file system.


    正确答案: C
    解析: 暂无解析

  • 第13题:

    ??有一台系统为Windows Server 2008的计算机,用户john属于本地组group1,管理员创建了一个文件file.txt,并设置本地组group1对file.txt具有完全控制权限,设置john对file.txt具有拒绝读取权限,最终john对file.txt具有()权限。

    A.完全控制

    B.读取

    C.拒绝读取

    D.读取和写入


    正确答案:C

  • 第14题:

    下面DOS命令格式中可以去除系统属性的是()

    • A、Attrib–r
    • B、Attrib–h
    • C、Attrib–s
    • D、Attrib-a

    正确答案:C

  • 第15题:

    对于如下程序:  #include    main( )  {    FILE *fp;    fp=fopen(“file.txt”,“w”);    fprintf(fp,“%s”,“xyz”);    fclose(fp);  }  若文件file.txt中原有的内容为good,则运行该程序以后,文件file.txt中的内容为()


    正确答案:xyz

  • 第16题:

    Which of the following commands should Mike, a technician, use to display the available switches of a command line utility?()

    • A、DIR /S
    • B、MSINFO
    • C、ATTRIB -H
    • D、HELP

    正确答案:D

  • 第17题:

    为文件c:/java/example/file.txt建立File对象file1可以采用()语句序列。

    • A、File file 1=new File(“c://java//example//file.txt”)
    • B、String path=”c:/java/example/”Filefile1=newFile(path,”oldfile.txt”)
    • C、File dir 1=new File(“c://java//example”)Filefile1=newFile(dir1,”oldfile.txt”)
    • D、File file 1=new File(“c:/java//example/file.txt”)

    正确答案:A,B,C

  • 第18题:

    Which of the following commands changes a file characteristic so that it cannot be seen with astandard directory query? ()

    • A、attrib file.txt +h
    • B、attrib file.txt +r
    • C、ren file.txt
    • D、attrib file.txt +s

    正确答案:A

  • 第19题:

    Which gets the name of the parent directory file “file.txt”?()

    • A、 String name= File.getParentName(“file.txt”);
    • B、 String name= (new File(“file.txt”)).getParent();
    • C、 String name = (new File(“file.txt”)).getParentName();
    • D、 String name= (new File(“file.txt”)).getParentFile();
    • E、 Directory dir=(new File (“file.txt”)).getParentDir();  String name= dir.getName();

    正确答案:B

  • 第20题:

    What writes the text “ ” to the end of the file “file.txt”?()

    • A、 OutputStream out= new FileOutputStream (“file.txt”);       Out.writeBytes (“ /n”);
    • B、 OutputStream os= new FileOutputStream (“file.txt”, true);       DataOutputStream out = new DataOutputStream(os);  out.writeBytes (“ /n”);
    • C、 OutputStream os= new FileOutputStream (“file.txt”);       DataOutputStream out = new DataOutputStream(os);  out.writeBytes (“ /n”);
    • D、 OutputStream os= new OutputStream (“file.txt”, true);     DataOutputStream out = new DataOutputStream(os);  out.writeBytes (“ /n”);

    正确答案:B

  • 第21题:

    填空题
    对于如下程序:  #include    main( )  {    FILE *fp;    fp=fopen(“file.txt”,“w”);    fprintf(fp,“%s”,“xyz”);    fclose(fp);  }  若文件file.txt中原有的内容为good,则运行该程序以后,文件file.txt中的内容为()

    正确答案: xyz
    解析: 暂无解析

  • 第22题:

    单选题
    Which gets the name of the parent directory file “file.txt”?()
    A

     String name= File.getParentName(“file.txt”);

    B

     String name= (new File(“file.txt”)).getParent();

    C

     String name = (new File(“file.txt”)).getParentName();

    D

     String name= (new File(“file.txt”)).getParentFile();

    E

     Directory dir=(new File (“file.txt”)).getParentDir();  String name= dir.getName();


    正确答案: A
    解析: 暂无解析

  • 第23题:

    单选题
    Which of the following commands changes a file characteristic so that it cannot be seen with astandard directory query? ()
    A

    attrib file.txt +h

    B

    attrib file.txt +r

    C

    ren file.txt

    D

    attrib file.txt +s


    正确答案: A
    解析: 暂无解析

  • 第24题:

    多选题
    为文件c:/java/example/file.txt建立File对象file1可以采用()语句序列。
    A

    File file 1=new File(“c://java//example//file.txt”)

    B

    String path=”c:/java/example/”Filefile1=newFile(path,”oldfile.txt”)

    C

    File dir 1=new File(“c://java//example”)Filefile1=newFile(dir1,”oldfile.txt”)

    D

    File file 1=new File(“c:/java//example/file.txt”)


    正确答案: B,C
    解析: 暂无解析