单选题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

题目
单选题
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

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

若定义cin>>str;当输入Hello World!,所得的结果是str= ______。

A.Hello World!

B.Hello

C.World

D.Hello World


正确答案:B

第2题:

假设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

第3题:

Given:6.<myTag:foobar=’42’>7.<%="processing"%>8.</myTag:foo>andacustomtaghandlerforfoowhichextendsTagSupport.Whichtwoaretrueaboutthetaghandlerreferencedbyfoo?()

A.ThedoStartTagmethodiscalledonce.

B.ThedoAfterBodymethodisNOTcalled.

C.TheEVAL_PAGEconstantisavalidreturnvalueforthedoEndTagmethod.

D.TheSKIP_PAGEconstantisavalidreturnvalueforthedoStartTagmethod.

E.TheEVAL_BODY_BUFFEREDconstantisavalidreturnvalueforthedoStartTagmethod.


参考答案:A, C

第4题:

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

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

正确答案:C

第5题:

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

第6题:

Internet Explorer、Firefox和()都是网络浏览器。

A.Opera

B.Alison

C.Alisoft

D.Foobar


正确答案:A


第7题:

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

第8题:

classFoo{

privateintx;

publicFoo(intx){this.x=x;}

publicvoidsetX(intx){this.x=x;}

publicintgetX(){returnx;}

}

publicclassGamma{

staticFoofooBar(Foofoo){

foo=newFoo(100);

returnfoo;

}

publicstaticvoidmain(String[]args){

Foofoo=newFoo(300);

System.out.print(foo.getX()+-);

FoofooFoo=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());

}

}

Whatistheoutputofthisprogram?()


参考答案:B

第9题:

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

第10题:

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

更多相关问题