单选题Given the following directory structure: bigProject |--source ||--Utils.java| |--classes |-- And the following command line invocation: javac -d classes source/Utils.java Assume the current directory is bigProject,what is the result?()A If the compile 

题目
单选题
Given the following directory structure: bigProject |--source ||--Utils.java| |--classes |-- And the following command line invocation: javac -d classes source/Utils.java Assume the current directory is bigProject,what is the result?()
A

If the compile is successful, Utils.class is added to the source directory.

B

The compiler returns an invalid flag error.

C

If the compile is successful, Utils.class is added to the classes directory.

D

If the compile is successful, Utils.class is added to the bigProject directory.


相似考题
更多“单选题Given the following directory structure: bigProject |--source ||--Utils.java| |--classes |-- And the following command line invocation: javac -d classes source/Utils.java Assume the current directory is bigProject,what is the result?()A If the compile ”相关问题
  • 第1题:

    Given:And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATHenvironment variable is set to "." (current directory). Which two java commands entered at the command line will run MainClass?()

    A.java MainClass if run from the /apps directory

    B.java com.company.application.MainClass if run from the /apps directory

    C.java -classpath /apps com.company.application.MainClass if run from any directory

    D.java -classpath . MainClass if run from the /apps/com/company/application directory

    E.java -classpath /apps/com/company/application:. MainClass if run from the /apps directory

    F.java com.company.application.MainClass if run from the /apps/com/company/application directory


    参考答案:B, C

  • 第2题:

    Given that the current directory is empty, and that the user has read and write privileges to the current, and the following:Which statement is true?()

    A.Compilation fails.

    B.Nothing is added to the file system.

    C.Only a new file is created on the file system.

    D.Only a new directory is created on the file system.

    E.Both a new file and a new directory are created on the file system.


    参考答案:B

  • 第3题:

    Which of the following command line utilities allows a technician to create a new directory?()

    A.RD

    B.CD

    C.DIR

    D.MD


    参考答案:D

  • 第4题:

    A customer wants to know what version of DirectX the current workstation has installed. Which of the following command line tools would the customer use?()

    • A、edit
    • B、systeminfo
    • C、gpedit.msc
    • D、dxdiag

    正确答案:D

  • 第5题:

    package com.sun.sjcp; public class Commander{ public static void main(String[]args){ //more code here } } Assume that the class fileis located in /foo/com/sun/sjcp/,the current directory is/foo/,and that the classpath contains“.“(current directory). Which command line correctly runs Commander?()

    • A、java Commander
    • B、java com.sim.sjcp.Commander
    • C、java com/sun/sjcp/Commander
    • D、java-cpcom.sun.sjcp Commander
    • E、java-cpcom/sun/sjcp Commander

    正确答案:B

  • 第6题:

    Given the following directory structure: bigProject |--source ||--Utils.java| |--classes |-- And the following command line invocation: javac -d classes source/Utils.java Assume the current directory is bigProject,what is the result?()

    • A、If the compile is successful, Utils.class is added to the source directory.
    • B、The compiler returns an invalid flag error.
    • C、If the compile is successful, Utils.class is added to the classes directory.
    • D、If the compile is successful, Utils.class is added to the bigProject directory.

    正确答案:C

  • 第7题:

    Given the following directory structure: bigProject |--source | |--Utils.java | |--classes |-- And the following command line invocation: javac -d classes source/Utils.java Assume the current directory is bigProject,what is the result? ()

    • A、If the compile is successful, Utils.class is added to the source directory.
    • B、The compiler returns an invalid flag error.
    • C、If the compile is successful, Utils.class is added to the classes directory.
    • D、If the compile is successful, Utils.class is added to the bigProject directory.

    正确答案:C

  • 第8题:

    单选题
    What is the correct command to display the current working directory?()
    A

    echo $PWD

    B

    echo $pwd

    C

    echo $CWD

    D

    echo $cwd


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

  • 第9题:

    单选题
    package com.sun.sjcp; public class Commander{ public static void main(String[]args){ //more code here } } Assume that the class fileis located in /foo/com/sun/sjcp/,the current directory is/foo/,and that the classpath contains“.“(current directory). Which command line correctly runs Commander?()
    A

    java Commander

    B

    java com.sim.sjcp.Commander

    C

    java com/sun/sjcp/Commander

    D

    java-cpcom.sun.sjcp Commander

    E

    java-cpcom/sun/sjcp Commander


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

  • 第10题:

    单选题
    Given the following directory structure: bigProject |--source ||--Utils.java| |--classes |-- And the following command line invocation: javac -d classes source/Utils.java Assume the current directory is bigProject,what is the result?()
    A

    If the compile is successful, Utils.class is added to the source directory.

    B

    The compiler returns an invalid flag error.

    C

    If the compile is successful, Utils.class is added to the classes directory.

    D

    If the compile is successful, Utils.class is added to the bigProject directory.


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

  • 第11题:

    单选题
    Given: Which command-line invocations will compile?()
    A

    javac Mule.java

    B

    javac -source 1.3 Mule.java

    C

    javac -source 1.4 Mule.java

    D

    javac -source 1.5 Mule.java


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

  • 第12题:

    单选题
    You create a Web site that you must copy from a development server to a testing server, along with all source files. You do not have terminal access to the testing server. You need to create the virtual directory. Then you must copy the Web site to the virtual directory on the testing server without precompiling the site. What should you do?()
    A

    Use the Publish Web tool.

    B

    Use the Copy Web tool.

    C

    Use the command line to XCOPY the files.

    D

    Create a Web Setup project.


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

  • 第13题:

    Given two files, GrizzlyBear.java and Salmon.java:If both classes are in the correct directories for their packages, and the Mammal class correctly defines the findSalmon() method, which change allows this code to compile?()

    A.add import animals.mammals.*; at line 2 in Salmon.java

    B.add import animals.fish.*; at line 2 in GrizzlyBear.java

    C.add import animals.fish.Salmon.*; at line 2 in GrizzlyBear.java

    D.add import animals.mammals.GrizzlyBear.*; at line 2 in Salmon.java


    参考答案:B

  • 第14题:

    Given that the current directory is empty, and that the user has read and write permissions, and the following:Which statement is true?()

    A.Compilation fails.

    B.The file system has a new empty directory named dir.

    C.The file system has a new empty directory named newDir.

    D.The file system has a directory named dir, containing a file f1.txt.

    E.The file system has a directory named newDir, containing a file f1.txt.


    参考答案:E

  • 第15题:

    If this source code is contained in a file called SmallProg.java, what command should be used to compile it using the JDK?()   public class SmallProg {   public static void main(String args[])  { System.out.println("Good luck!"); }  }  

    • A、java SmallProg
    • B、avac SmallProg
    • C、javac SmallProg.java
    • D、java SmallProg main

    正确答案:C

  • 第16题:

    Which of the following command line utilities allows a technician to create a new directory?()

    • A、RD
    • B、CD
    • C、DIR
    • D、MD

    正确答案:D

  • 第17题:

    Given a correctly compiled class whose source code is:  package com.sun.sjcp;  public class Commander {  public static void main(String[] args) {  // more code here  }  }  Assume that the class file is located in /foo/com/sun/sjcp/, the current directory is /foo/, and that the classpath contains “.“ (current directory). Which command line correctly runs Commander?() 

    • A、 java Commander
    • B、 java com. sim. sjcp.Commander
    • C、 java com/sun/sjcp/Commander
    • D、 java -cp com.sun.sjcp Commander
    • E、 java -cp com/sun/sjcp Commander

    正确答案:B

  • 第18题:

    What is the correct command to display the current working directory?()

    • A、echo $PWD
    • B、echo $pwd
    • C、echo $CWD
    • D、echo $cwd

    正确答案:A

  • 第19题:

    单选题
    Your company has a single Active Directory directory service forest with three domains. You plan to modify the Active Directory schema. You need to identify the schema master for the forest.  What should you do?()
    A

     Run the regsvr32 schmmgmt.dll command. Use the Active Directory Domains and Trusts snap-in. 

    B

     Run the regsvr32 schmmgmt.dll command. Use the Active Directory Users and Computers snap-in. 

    C

     Use the Dsget command-line tool.

    D

     Use the Dsquery command-line tool.


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

  • 第20题:

    单选题
    Given a correctly compiled class whose source code is:  package com.sun.sjcp;  public class Commander {  public static void main(String[] args) {  // more code here  }  }  Assume that the class file is located in /foo/com/sun/sjcp/, the current directory is /foo/, and that the classpath contains “.“ (current directory). Which command line correctly runs Commander?()
    A

     java Commander

    B

     java com. sim. sjcp.Commander

    C

     java com/sun/sjcp/Commander

    D

     java -cp com.sun.sjcp Commander

    E

     java -cp com/sun/sjcp Commander


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

  • 第21题:

    单选题
    Given the following directory structure: bigProject |--source ||--Utils.java| |--classes |-- And the following command line invocation: javac -d classes source/Utils.java Assume the current directory is bigProject,what is the result?()
    A

    If the compile is successful, Utils.class is added to the source directory.

    B

    The compiler returns an invalid flag error.

    C

    If the compile is successful, Utils.class is added to the classes directory.

    D

    If the compile is successful, Utils.class is added to the bigProject directory.


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

  • 第22题:

    单选题
    Given that the current directory is empty, and that the user has read and write privileges to the current directory, and the following: Which statement is true?()
    A

    Compilation fails.

    B

    Nothing is added to the file system.

    C

    Only a new file is created on the file system.

    D

    Only a new directory is created on the file system.

    E

    Both a new file and a new directory are created on the file system.


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

  • 第23题:

    单选题
    A customer wants to know what version of DirectX the current workstation has installed. Which of the following command line tools would the customer use?()
    A

    edit

    B

    systeminfo

    C

    gpedit.msc

    D

    dxdiag


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

  • 第24题:

    单选题
    Which of the following command line utilities allows a technician to create a new directory?()
    A

    RD

    B

    CD

    C

    DIR

    D

    MD


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