2018年12月20日补记:修改了一些格式错误(单词间缺少空格等)
---------------------------------------------------------------------------------------------------------------------------------
Java how to program这本书,对本人有着特殊的意义——真正带我进入编程世界的一本书。
学无止境,我愿意用一生来学好、学精、用好Java这门编程语言。
以下是JHTP第一章:Introduction to computers, internet and java的课后自测题,贴出来自勉。
Source: Java how to program, 10th edition
1.1 Fill in the blanks in each of the following statements:
a) Computers process data under the control of sets of instructions called programs.
b) The key logical units of the computer are the input unit, output unit, memory unit, ALU, CPU and secondary storage unit.
c) The three types of languages discussed in the chapter are machine languages, assembly languages and high-level languages.
d) The programs that translate high-level language programs into machine languageare called compilers.
e) Android is an operating system for mobile devices based on the Linux kernel and Java.
f) Release candidate software is generally feature complete, (supposedly)bug free and ready for use by the community.
g) The Wii Remote, as well as many smartphones, use a(n) accelerometer whichallows the device to respond to motion.
1.2 Fill in the blanks in each of the following sentences about the Java environment:
a) The command java from the JDK executes a Java application.
b) The command javac from the JDK compiles a Java program.
c) A Java source code file must end with the file extension .java.
d) When a Java program is compiled, the file produced by the compiler ends with the file extension.class.
e)The file produced by the Java compiler contains bytecodes that are executed by the Java Virtual Machine.
1.3 Fill in the blanks in each of the following statements(based on Section 1.5):
a) Objects enable the design practice of information hiding—although they may know how to communicate
with one another across well-defined interfaces, they normally are not allowed to know how other objects are implemented.
b) Java programmers concentrate on creating classes, which contain fields and the set of methods that manipulate those fields and provide services toclients.
c)The process of analyzing and designing a system from an object-oriented point of view is called OOAD.
d)A new class of objects can be created conveniently by inheritance—the new class (called the subclass) starts with the characteristics of an existing class (called the superclass), possibly customizing them and adding unique characteristics of its own.
e)UML is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.
f)The size, shape, color and weight of an object are considered attributes of the object’s class.