您的位置:首页 > 理论基础

JHTP自测题_第一章_计算机、互联网及Java简介

2016-06-13 23:59 351 查看
Java how to program这本书,对本人有着特殊的意义——真正带我进入编程世界的一本书。

学无止境,我愿意用一生来学好、学精、用好Java这门编程语言。

 

以下是JHTP第一章:Introduction to computers, internent 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 theinput unit, output unit,memory unit, ALU, CPU and secondary storage unit.
c)The three types of languages discussed in the chapter aremachine languages,assembly languages and high-level languages.
d)The programs that translate high-level language programs into machine languageare calledcompilers.
e)Android is an operating system for mobile devices based on the Linuxkernel 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 sentencesabout 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 withthe file extension.class.
e)The file produced by the Java compiler containsbytecodesthat areexecuted 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 ofinformation hiding—although theymay know how to communicate
withone another across well-defined interfaces, they normally are not allowed toknow how other objects are implemented.
b)Java programmers concentrate on creatingclasses, which contain fieldsand 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 pointof view is calledOOAD.
d)A new class of objects can be created conveniently byinheritance—thenew class (called the subclass) starts with the characteristics of an existingclass (called the superclass), possibly customizing
them and adding uniquecharacteristics of its own.
e)UML is a graphical language that allows people who design softwaresystems to use an industry-standard notation to represent them.
f)The size, shape, color and weight of an object are consideredattributesof the object’s class.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: