niusouti.com

单选题What is the output when the following shell script executes?()   cat<;<;foobar   Hello foobar   foobarAThe contents of the file foobar.BHelloCNo output but a file named foobar is created.DHello foobarEHello foobar foobar

题目
单选题
What is the output when the following shell script executes?()   cat<;<;foobar   Hello foobar   foobar
A

 The contents of the file foobar.

B

 Hello

C

 No output but a file named foobar is created.

D

 Hello foobar

E

 Hello foobar foobar


相似考题
更多“单选题What is the output when the following shell script executes?()   cat;;foobar   Hello foobar   foobarA  The contents of the file foobar.B  HelloC  No output but a file named foobar is created.D  Hello foobarE  Hello foobar foobar”相关问题
  • 第1题:

    假设assets目录下有文件结构html/hello.html,用loadUrl()方法将该网页加载至webView时,需传入的参数是()。

    • A、file:///asset/html/hello.html
    • B、file:///android_asset/html/hello.html
    • C、file:///androidasset/hello.html
    • D、file:///assets/html/hello.html

    正确答案:B

  • 第2题:

    SSH是建立在应用层和传输层基础上的安全协议,可以用来取代telnetftp等服务远程登陆到服务器上,在默认情况下RHEL4中的openssh软件包提供了“scp”命令;下述命令:scpdumpbilbo@www.foobar.com:/可完成的功能是()。

    • A、将本地计算机的“dump”目录下的所有文件拷贝到远程服务器www.foobar.com的根目录下,并登陆远程服务器密码为“Bilbo”
    • B、将本地计算机当前目录下的“dump”文件,发送到邮件bilbo@www.foobar.com
    • C、将远程服务器bilbo@www.foobar.com上用户bilbo主目录下的文件“dump”,拷贝到本地计算机的当前目录下
    • D、将本地计算机当前目录下的“dump”文件,以bilbo用户身份拷贝到远程计算机www.foobar.com根目录下

    正确答案:D

  • 第3题:

    设置当前系统提示符为:HELLO,应用()

    • A、PROMPT$g
    • B、PROMPT$HELLO
    • C、PROMPT HELLO在DOS下试试
    • D、VER HELLO

    正确答案:C

  • 第4题:

    python中,’hellO’.lower()的返回值是

    • A、hello
    • B、HELLO
    • C、Hello
    • D、hellO

    正确答案:A

  • 第5题:

    What is the output when the following shell script executes?()   cat<;<;foobar   Hello foobar   foobar

    • A、 The contents of the file foobar.
    • B、 Hello
    • C、 No output but a file named foobar is created.
    • D、 Hello foobar
    • E、 Hello foobar foobar

    正确答案:D

  • 第6题:

    10. public class Hello {  11. String title;  12. int value;  13. public Hello() {  14. title += “ World”;  15. }  16. public Hello(int value) {  17. this.value = value;  18. title = “Hello”;  19. Hello();  20. }  21. }  and:  30. Hello c = new Hello(5);  31. System.out.println(c.title);  What is the result?() 

    • A、 Hello
    • B、 Hello World
    • C、 Compilation fails.
    • D、 Hello World 5
    • E、 The code runs with no output.
    • F、 An exception is thrown at runtime.

    正确答案:C

  • 第7题:

    You issued the following statement:  SQL> ALTER DATABASE BACKUP CONTROLFILE TO TRACE;  What will be the result of issuing the statement?()  

    • A、 The control file will be multiplexed.
    • B、 The control file will be recreated.
    • C、The script containing the CREATE CONTROLFILE statement will be created.
    • D、 The binary backup of the control file will be created.

    正确答案:C

  • 第8题:

    单选题
    You issued the following statement:  SQL> ALTER DATABASE BACKUP CONTROLFILE TO TRACE;  What will be the result of issuing the statement?()
    A

     The control file will be multiplexed.

    B

     The control file will be recreated.

    C

    The script containing the CREATE CONTROLFILE statement will be created.

    D

     The binary backup of the control file will be created.


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

  • 第9题:

    单选题
    What is the output when the following shell script executes?()   cat<;<;foobar   Hello foobar   foobar
    A

     The contents of the file foobar.

    B

     Hello

    C

     No output but a file named foobar is created.

    D

     Hello foobar

    E

     Hello foobar foobar


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

  • 第10题:

    单选题
    class A {  public A() {  System.out.println(“hello from a”);  }  }  class B extends A {  public B () {  System.out.println(“hello from b”);  super();  }  }  public class Test {  public static void main(String args[]) {  A a = new B();  }  }   What is the result when main is executed?()
    A

     Compilation fails.

    B

     hello from a

    C

     hello from b

    D

     hello from b hello from a

    E

     hello from a hello from b


    正确答案: D
    解析: Call to super must be first statement in constructor. 

  • 第11题:

    单选题
    SSH是建立在应用层和传输层基础上的安全协议,可以用来取代telnetftp等服务远程登陆到服务器上,在默认情况下RHEL4中的openssh软件包提供了“scp”命令;下述命令:scpdumpbilbo@www.foobar.com:/可完成的功能是()。
    A

    将本地计算机的“dump”目录下的所有文件拷贝到远程服务器www.foobar.com的根目录下,并登陆远程服务器密码为“Bilbo”

    B

    将本地计算机当前目录下的“dump”文件,发送到邮件bilbo@www.foobar.com

    C

    将远程服务器bilbo@www.foobar.com上用户bilbo主目录下的文件“dump”,拷贝到本地计算机的当前目录下

    D

    将本地计算机当前目录下的“dump”文件,以bilbo用户身份拷贝到远程计算机www.foobar.com根目录下


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

  • 第12题:

    单选题
    public class ClassA {  public int getValue() {  int value=0;  boolean setting = true;  String title=”Hello”;  (value || (setting && title == “Hello”)) { return 1; }  (value == 1 & title.equals(”Hello”)) { return 2; }  }  } And:  ClassA a = new ClassA();  a.getValue();  What is the result?()
    A

     1

    B

     2

    C

     Compilation fails.

    D

     The code runs with no output.

    E

     An exception is thrown at runtime.


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

  • 第13题:

    class A {  public A() {  System.out.println(“hello from a”);  }  }  class B extends A {  public B () {  System.out.println(“hello from b”);  super();  }  }  public class Test {  public static void main(String args[]) {  A a = new B();  }  }   What is the result when main is executed?()  

    • A、 Compilation fails.
    • B、 hello from a
    • C、 hello from b
    • D、 hello from b hello from a
    • E、 hello from a hello from b

    正确答案:A

  • 第14题:

    Which statements are true, given the code new FileOutputStream("data", true) for creating an object of class FileOutputStream?()  

    • A、FileOutputStream has no constructors matching the given arguments.
    • B、An IOExeception will be thrown if a file named "data" already exists.
    • C、An IOExeception will be thrown if a file named "data" does not already exist.
    • D、If a file named "data" exists, its contents will be reset and overwritten.
    • E、If a file named "data" exists, output will be appended to its current contents.

    正确答案:E

  • 第15题:

    class Foo {  private int x;  publicFoo(intx) {this.x=x; }  public void setX( int x) { this.x = x; }  public int getX() { return x; }  }   public class Gamma {  static Foo fooBar( Foo foo) {  foo = new Foo( 100);  return foo;  }  public static void main( String[] args) {  Foo foo = new Foo( 300);  System.out.print( foo.getX() + “-“);  Foo fooFoo = fooBar( foo);  System.out.print( foo.getX() + “-“);  System.out.print( fooFoo.getX() + “-“);  foo = fooBar( fooFoo);  System.out.print( foo.getX() + “-“);  System.out.prmt( fooFoo.getX());  }  }  What is the output of this program?()

    • A、 300-100-100-100-100
    • B、 300-300-100-100-100
    • C、 300-300-300-100-100
    • D、 300-300-300-300-100

    正确答案:B

  • 第16题:

    多媒体播放软件中,最常用的视频播放器有()。

    • A、暴风影音
    • B、千千静听
    • C、酷狗
    • D、FooBar

    正确答案:A

  • 第17题:

    Which declaration prevents creating a subclass of an outer class?()  

    • A、 Static class FooBar{}
    • B、 Private class FooBar{}
    • C、 Abstract public class FooBar{}
    • D、 Final public class FooBar{}
    • E、 Final abstract class FooBar{}

    正确答案:D

  • 第18题:

    public class ClassA {  public int getValue() {  int value=0;  boolean setting = true;  String title=”Hello”;  (value || (setting && title == “Hello”)) { return 1; }  (value == 1 & title.equals(”Hello”)) { return 2; }  }  } And:  ClassA a = new ClassA();  a.getValue();  What is the result?() 

    • A、 1
    • B、 2
    • C、 Compilation fails.
    • D、 The code runs with no output.
    • E、 An exception is thrown at runtime.

    正确答案:C

  • 第19题:

    单选题
    10. public class Hello {  11. String title;  12. int value;  13. public Hello() {  14. title += “ World”;  15. }  16. public Hello(int value) {  17. this.value = value;  18. title = “Hello”;  19. Hello();  20. }  21. }  and:  30. Hello c = new Hello(5);  31. System.out.println(c.title);  What is the result?()
    A

     Hello

    B

     Hello World

    C

     Compilation fails.

    D

     Hello World 5

    E

     The code runs with no output.

    F

     An exception is thrown at runtime.


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

  • 第20题:

    单选题
    Given: What is the result?()
    A

    Hello

    B

    Hello World

    C

    Compilation fails.

    D

    Hello World 5

    E

    The code runs with no output.


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

  • 第21题:

    单选题
    class Foo {  private int x;  publicFoo(intx) {this.x=x; }  public void setX( int x) { this.x = x; }  public int getX() { return x; }  }   public class Gamma {  static Foo fooBar( Foo foo) {  foo = new Foo( 100);  return foo;  }  public static void main( String[] args) {  Foo foo = new Foo( 300);  System.out.print( foo.getX() + “-“);  Foo fooFoo = fooBar( foo);  System.out.print( foo.getX() + “-“);  System.out.print( fooFoo.getX() + “-“);  foo = fooBar( fooFoo);  System.out.print( foo.getX() + “-“);  System.out.prmt( fooFoo.getX());  }  }  What is the output of this program?()
    A

     300-100-100-100-100

    B

     300-300-100-100-100

    C

     300-300-300-100-100

    D

     300-300-300-300-100


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

  • 第22题:

    单选题
    Which statements are true, given the code new FileOutputStream("data", true) for creating an object of class FileOutputStream?()
    A

    FileOutputStream has no constructors matching the given arguments.

    B

    An IOExeception will be thrown if a file named data already exists.

    C

    An IOExeception will be thrown if a file named data does not already exist.

    D

    If a file named data exists, its contents will be reset and overwritten.

    E

    If a file named data exists, output will be appended to its current contents.


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

  • 第23题:

    单选题
    Which declaration prevents creating a subclass of an outer class?()
    A

     Static class FooBar{}

    B

     Private class FooBar{}

    C

     Abstract public class FooBar{}

    D

     Final public class FooBar{}

    E

     Final abstract class FooBar{}


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

  • 第24题:

    单选题
    Given: What is the result?()
    A

    Hello

    B

    Hello World

    C

    Compilation fails.

    D

    Hello World 5

    E

    The code runs with no output.

    F

    An exception is thrown at runtime.


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