单选题You have read/write permission on an ordinary file foo. You have just run In foo bar. What would happen if you ran rm foo?()A  foo and bar would both be removed.B  foo would be removed while bar would remain accessible.C  foo would be removed, bar woul

题目
单选题
You have read/write permission on an ordinary file foo. You have just run In foo bar. What would happen if you ran rm foo?()
A

 foo and bar would both be removed.

B

 foo would be removed while bar would remain accessible.

C

 foo would be removed, bar would still exist but would be unusable.

D

 Both foo and bar would remain accessible.

E

 You would be asked whether bar should be removed.

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

第1题:

public class Test {   public static void main (String args) {  string foo = “blue”;  string bar = foo;   foo = “green”;   System.out.printIn(bar);   }   }   What is the result?()  

  • A、 An exception is thrown.
  • B、 The code will not compile.
  • C、 The program prints “null”
  • D、 The program prints “blue”
  • E、 The program prints “green”

正确答案:D

第2题:

You are looking for an executable file foo. Select the command that would search forfoo within directories set in the shell variable, PATH.()

  • A、 locate
  • B、 which
  • C、 find
  • D、 query
  • E、 whereis

正确答案:B

第3题:

Giventhefully-qualifiedclassnames:com.foo.bar.Dogcom.foo.bar.blatz.Bookcom.bar.Carcom.bar.blatz.SunWhichgraphrepresentsthecorrectdirectorystructureforaJARfilefromwhichthoseclassescanbeusedbythecompilerandJYM?()

A.JarA

B.JarB

C.JarC

D.JarD

E.JarE


参考答案:A

第4题:

Which statements concerning the relationships between the following classes are true?()   class Foo {  int num;   Baz comp = new Baz();   }   class Bar {  boolean flag;   }   class Baz extends Foo {   Bar thing = new Bar();   double limit;   }  

  • A、A Bar is a Baz.
  • B、A Foo has a Bar.
  • C、A Baz is a Foo.
  • D、A Foo is a Baz.
  • E、A Baz has a Bar.

正确答案:C,E

第5题:

Which code determines the int value foo closest to a double value bar?()  

  • A、 Int foo = (int) Math.max(bar);
  • B、 Int foo = (int) Math.min(bar);
  • C、 Int foo = (int) Math.abs(bar);
  • D、 Int foo = (int) Math.ceil(bar);
  • E、 Int foo = (int) Math.floor(bar);
  • F、 Int foo = (int) Math.round(bar);

正确答案:F

第6题:

10. interface Foo { int bar(); }  11. public class Sprite {  12. public int fubar( Foo foo) { return foo.bar(); }  13. public void testFoo() {  14. fubar(  15. // insert code here  16.);  17. }  18. }  Which code, inserted at line 15, allows the class Sprite to compile?() 

  • A、 Foo { public int bar() { return 1; } }
  • B、 new Foo { public int bar() { return 1; } }
  • C、 newFoo() { public int bar(){return 1; } }
  • D、 new class Foo { public int bar() { return 1; } }

正确答案:C

第7题:

You have read/write permission on an ordinary file foo. You have just run In foo bar. What would happen if you ran rm foo?()

  • A、 foo and bar would both be removed.
  • B、 foo would be removed while bar would remain accessible.
  • C、 foo would be removed, bar would still exist but would be unusable.
  • D、 Both foo and bar would remain accessible.
  • E、 You would be asked whether bar should be removed.

正确答案:B

第8题:

Given:Which code, inserted at line 15, allows the class Sprite to compile?()

A.Foo { public int bar() { return 1; }

B.new Foo { public int bar() { return 1; }

C.new Foo() { public int bar() { return 1; }

D.new class Foo { public int bar() { return 1; }


参考答案:C

第9题:

Given:  foo and bar are public references available to many other threads, foo refers to a Thread and bar is an Object. The thread foo is currently executing bar.wait().  From another thread, what provides the most reliable way to ensure that foo will stop executing wait()?()

  • A、foo.notify();
  • B、bar.notify();
  • C、foo.notifyAll();
  • D、Thread.notify();
  • E、bar.notifyAll();
  • F、Object.notify();

正确答案:E

第10题:

A custom tag is defined to take three attributes. Which two correctly invoke the tag within a JSP page?()

  • A、<prefix:myTag a="foo" b="bar" c="baz" />
  • B、<prefix:myTag attributes={"foo","bar","baz"} />
  • C、<prefix:myTag jsp:attribute a="foo" b="bar" c="baz" />
  • D、<prefix:myTag><jsp:attribute name="a">foo</jsp:attribute><jsp:attribute name="b">bar</jsp:attribute><jsp:attribute name="c">baz</jsp:attribute>. </prefix:myTag>

正确答案:A,B,D

更多相关问题