Java How To Program, 5/e Test Item File 1 of 3
Java How To Program, 5/e Test Item File 1 of 3
Java How To Program, 5/e Test Item File 1 of 3
Chapter 1.
Section 1.3
1.3 Q1: Which of the following is not one of the six logical units of a computer?
a.Input unit.
b.Output unit.
c.Central processing unit.
d.Printer.
ANS: d. Printer.
Section 1.4
1.4 Q1: The scheduling procedure that increases throughput by minimizing idle time is:
a.Single user batch processing.
b.Multiprogramming.
c.Operating system.
d.Compiling.
ANS: b. Multiprogramming.
Section 1.5
1.5 Q2: The _____ language has become widely used for writing software for computer networking and for
distributed client/server applications.
a.C/C++.
b.Java.
c.UNIX.
d.Windows.
ANS: b. Java.
Section 1.6
1.6 Q1: Which of the following is not one of the three general types of computer languages?
a.Machine languages.
b.Assembly languages.
c.High-Level languages.
d.Spoken languages.
ANS: d. Spoken languages.
Section 1.7
1.7 Q1: Today, virtually all new major operating systems are written in:
a.B or BCPL.
b.C or C++.
c.UNIX.
d.Smalltalk.
ANS: b. C or C++.
© Copyright 2003 by Deitel & Associates, Inc. and Prentice Hall. All Rights Reserved.
Java How to Program, 5/e Test Item File 2 of 3
a.Typeless language.
b.Hybrid object-oriented language.
c.Subset of the C Language.
d.Pure object-oriented language.
ANS: b. Hybrid object-oriented language.
Section 1.8
Section 1.9
1.9 Q1: Which of the following statements about Java Class Libraries is false:
a.Java class libraries consist of classes that consist of methods that perform tasks.
b.Java class libraries are also known as Java APIs (Application Programming Interfaces).
c.An advantage of using Java class libraries is saving the effort of designing, developing and testing new
classes.
d.Java class libraries are not portable
ANS: d. Java class libraries are not portable. (Java class libraries are portable!)
Section 1.10
1.10 Q1: Which of the following languages is used primarily for scientific and engineering applications?
a.FORTRAN.
b.COBOL.
c.Pascal.
d.Basic.
ANS: a. FORTRAN.
1.10 Q1: Pascal lacks which feature found in both Ada and Java?
a.Structured programming
b.Ability to specify simultaneous activities
c.Ease of use as an instructional language
d.Ability to perform only one activity at a time.
ANS: b. Ability to specify simultaneous activities.
Section 1.11
1.11 Q1: Which library is shared among Visual Basic, Visual C++, C# and many other languages that Microsoft and
other software vendors are making available for .NET.
a.MFC
b.FCL
c.API
d.CFL
ANS: b. FCL.
Section 1.12
( none )
Section 1.13
1.13 Q1: The .class extension on a file means that the file:
a.Contains java source code
b.Contains HTML
c.is produced by the Java compiler (javac).
d.Is used by the appletviewer program
© Copyright 2003 by Deitel & Associates, Inc. and Prentice Hall. All Rights Reserved.
Java How to Program, 5/e Test Item File 3 of 3
© Copyright 2003 by Deitel & Associates, Inc. and Prentice Hall. All Rights Reserved.