单选题 Given: Which code, inserted at line 15, allows the class Sprite to compile?()
Foo { public int bar() { return 1; }
new Foo { public int bar() { return 1; }
new Foo() { public int bar() { return 1; }
new class Foo { public int bar() { return 1; }
单选题 Given: What is the result?()
B
The code runs with no output.
Compilation fails because of an error in line 12.
Compilation fails because of an error in line 15.
Compilation fails because of an error in line 18.
单选题 A team of programmers is involved in reviewing a proposed design for a new utility class. After some discussion, they realize that the current design allows other classes to access methods in the utility class that should be accessible only to methods within the utility class itself. What design issue has the team discovered?()
Tight coupling
Low cohesion
High cohesion
Loose coupling
Weak encapsulation
Strong encapsulation
单选题 Given a class Repetition: Which code should be inserted at line 1 of Demo.java to compile and run Demo to print "pizzapizza"?()
import utils.*;
static import utils.*;
import utils.Repetition.*;
static import utils.Repetition.*;
import utils.Repetition.twice();
import static utils.Repetition.twice;
static import utils.Repetition.twice;
单选题 Click the Exhibit button. Given the fully-qualified class names: com.foo.bar.Dog com.foo.bar.blatz.Book com.bar.Car com.bar.blatz.Sun Which graph represents the correct directory structure for a JAR file from which those classes can be used by the compiler and JVM? ()
Jar A
Jar B
Jar C
Jar D
Jar E
单选题 A company that makes Computer Assisted Design (CAD) software has, within its application, some utility classes that are used to perform 3D rendering tasks. The company's chief scientist has just improved the performance of one of the utility classes' key rendering algorithms, and has assigned a programmer to replace the old algorithm with the new algorithm. When the programmer begins researching the utility classes, she is happy to discover that the algorithm to be replaced exists in only one class. The programmer reviews that class's API, and replaces the old algorithm with the new algorithm, being careful that her changes adhere strictly to the class's API. Once testing has begun, the programmer discovers that other classes that use the class she changed are no longer working properly. What design flaw is most likely the cause of these new bugs?()
Inheritance
Tight coupling
Low cohesion
High cohesion
Loose coupling
Object immutability
单选题 Given that the current directory is empty, and that the user has read and write permissions, and the following: Which statement is true?()
Compilation fails.
The file system has a new empty directory named dir.
The file system has a new empty directory named newDir.
The file system has a directory named dir, containing a file f1.txt.
The file system has a directory named newDir, containing a file f1.txt.
多选题 Given: Which two are true? ()
The output is mm.
The output is mc.
Component is-a Meter.
Component has-a Meter.
DeluxeThingy is-a Component.
DeluxeThingy has-a Component.
单选题 Click the Exhibit button. Which statement is true about the classes and interfaces in the exhibit?()
Compilation will succeed for all classes and interfaces.
Compilation of class C will fail because of an error in line 2.
Compilation of class C will fail because of an error in line 6.
Compilation of class AImpl will fail because of an error in line 2
单选题 Given: What is the result?()
Compilation fails.
atom granite
granite granite
atom granite granite
An exception is thrown at runtime.
atom granite atom granite
在任何情况下,伸缩调节器处轨距的要求为()。
人类有两套影响学习的记忆系统:陈述性记忆和程序记忆。陈述性记忆是对事实或者词汇之类基本认识的记忆。而程序记忆,就是一个人“不劳而获”的记忆。程序记忆是人养成习惯和习得技巧的方式,比如骑自行车。在很多时候,这种学习是无意识的。人们用早期发育的程序记忆系统来学习复杂的东西,比如语法规则。帮助人们学习词汇的陈述性记忆系统,则需要更多时问完成发育。儿童拥有程序记忆系统,并且不受陈述性记忆系统的干扰。由此可以推出()。
宋末元初四大家
公平目标的实现可以通过()实现。
荟萃分析
人员安全疏散分析的性能判定标准为:可用疏散时间(A.SET)必须()必需疏散时间(RSET)。
预防HIV感染的主要措施应当为( )
简述我国混合型债券市场的发展状况。
造成水中某些污染物在生物体内含量大大高于水体中的浓度的生物放大作用是指()
输血的适应证中,不包括()