Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Java How To Program, 5/e Test Item File 1 of 3

Download as pdf or txt
Download as pdf or txt
You are on page 1of 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 Q1: Which of the following is not a computer?


a.File server.
b.Workstation.
c.LAN.
d.Personal computer.
ANS: c. LAN (a LAN is a local area network, not a computer).

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.

1.6 Q2: Which of the following statements is true?


a.Interpreter programs run faster than compiler programs.
b.Interpreted programs run faster than compiled programs.
c.Compilers translate high-level language into machine language.
d.Interpreter programs use assembly language as input.
ANS: c. Compilers translate high-level language into machine language.

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++.

1.7 Q2: C++ is a:

© 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

1.8 Q1: Java was originally developed for:


a.Operating systems development.
b.Intelligent consumer devices.
c.Personal computers.
d.Distributed computing.
ANS: b. Intelligent consumer devices.

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

ANS: c. Is produced by the Java compiler.

1.13 Q2: A Java applet cannot be executed by:


a.appletviewer
b.Netscape
c.Microsoft Internet Explorer
d.The java command-line interpreter
ANS: d. The java command-line interpreter.

© Copyright 2003 by Deitel & Associates, Inc. and Prentice Hall. All Rights Reserved.

You might also like