单项选择题
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.
相关考题
-
单项选择题
Given: Which code fragment, inserted at line 24, outputs "123abc 123abc"?()
A.sb1.append("abc"); s1.append("abc");
B.sb1.append("abc"); s1.concat("abc");
C.sb1.concat("abc"); s1.append("abc");
D.sb1.concat("abc"); s1.concat("abc");
E.sb1.append("abc"); s1 = s1.concat("abc");
F.sb1.concat("abc"); s1 = s1.concat("abc");
G.sb1.append("abc"); s1 = s1 + s1.concat("abc");
H.sb1.concat("abc"); s1 = s1 + s1.concat("abc"); -
单项选择题
Given: What is the result?()
A.2
B.3
C.4
D.6
E.7
F.Compilation fails. -
单项选择题
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; }
