Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Test Bank & Solutions Manual — Java Software Solutions, Global Edition, 9th Edition — John Lewis & William Loftus

Rating
-
Sold
-
Pages
522
Grade
A+
Uploaded on
26-03-2026
Written in
2025/2026

This combined Test Bank & Solutions Manual for Java Software Solutions: Foundations of Program Design (Global Edition, 9th Edition) by John Lewis and William Loftus (ISBN 9781292221748) provides a complete teaching and assessment toolkit for instructors and students of introductory Java programming. Aligned with the official chapter structure, this resource supports deep conceptual learning and practical problem-solving through verified exercises, step-by-step solutions, coding walkthroughs, and multiple exam-ready question formats — including short answer, multiple choice, tracing problems, and code correction. It begins with Chapter 1: Introduction, which explains the role of computers, software, and the Java language. Chapter 2: Data and Expressions introduces variables, data types, operators, and expressions. Chapter 3: Using Classes and Objects focuses on object interaction, Java libraries, and encapsulation. Chapter 4: Writing Classes teaches constructors, methods, instance variables, and UML design. Chapter 5: Conditionals and Loops introduces if statements, while and for loops, and boolean logic. Chapter 6: More Conditionals and Loops builds on decision structures and iteration, including nested logic and input validation. Chapter 7: Object-Oriented Design emphasizes modularity, cohesion, and class relationships such as association and composition. Chapter 8: Arrays explores single and multidimensional arrays, iteration with collections, and array processing techniques. Chapter 9: Inheritance introduces class hierarchies, method overriding, and constructors in subclasses. Chapter 10: Polymorphism covers dynamic method binding, abstract classes, and interfaces. Chapter 11: Exceptions teaches structured error handling using try, catch, finally, and custom exceptions. Chapter 12: Recursion introduces the recursive problem-solving model with classic examples. Finally, Chapter 13: Collections explores the Java Collections Framework, ArrayLists, LinkedLists, and generic types.

Show more Read less
Institution
Java Software
Course
Java Software

Content preview

Edrftgyihu jiuh




Java Software
ST

Solutions, Global
UV

Edition, 9th Edition
IA

TEST BANK &
?_


SOLUTIONS
AP
PR

MANUAL
OV

John Lewis William Loftus
ED

Comprehensive Test Bank and Solutions Manual for Instructors and Students

||| ||| || ||| || | || ||| | || ||| |
?

Pearson Education
?

© John Lewis & William Loftus. All rights reserved. Reproduction or distribution without
permission is prohibited.

, Java Software Solutions, 9e (Lewis/Loftus)
Chapter 1 Introduction


TRUE/FALSE

1. All information is stored in the computer using binary numbers.
ST
ANS: T
The computer is a digital device meaning that it stores information in one of two states using binary.
We must determine then how to represent meaningful information (such as a name or a program
instruction or an image) in binary.
UV
2. Java is an object-oriented programming language.

ANS: T
Java is classified as a high-level programming language but it is also classified as an object-oriented
IA
programming language because it allows the programmer to implement data structures as classes.


3. System.out.print is used in a program to denote that a documentation comment follows.
?_

ANS: F
Documentation comments follow // marks or are embedded between */ and */.
System.out.print is an instruction used to output a message to the screen (the Java console
AP
window).

4. Java byte codes are directly executable whereas Java source code is not.
PR
ANS: F
Neither Java source code nor Java byte codes are executable. Both must be compiled or interpreted
into machine code. Java byte codes are useful however in that they are machine-independent but
semi-compiled code that allows your Java code to be transmitted over the Internet and executed on
another computer even if that other computer is a completely different type.
OV
5. The Java compiler is able to find all programmer errors.

ANS: F
The Java compiler can find syntax errors but cannot find either logical errors (errors that are caused
ED
because of poor logic in writing the program) or run-time errors (errors that arise during the execution
of the program).


6. Java is a case-sensitive language which means Current, CURRENT, and current will all reference
??
the same identifier.

ANS: F

, Java is case sensitive which means that Current, CURRENT, and current will all be recognized
as different identifiers. This causes problems with careless programmers who do not spell an
identifier consistently in terms of upper and lower case characters.


7. Code placed inside of comments will not be compiled and, therefore, will not execute.

ANS: T
ST
The compiler discards comments; therefore, any code inside a comment is discarded and is not
compiled. Your executable program consists only of the code that is compiled.

8. The word Public is a reserved word.
UV
ANS: F
public is a reserved word, but since Java is case sensitive, Public differs from public and
therefore Public is not a reserved word.
IA
9. Reserved words in Java can be redefined by the programmer to mean something other than their
original intentions.
?_
ANS: F
Java reserved words cannot be redefined.


10. In a Java program, dividing by zero is a syntax error.
AP

ANS: F
Dividing by 0 is not detected at compile time, and because a computer cannot divide by 0, this is a run-
time error.
PR
11. In a Java program, dividing by zero is a syntax error.

ANS: F
OV
Dividing by 0 is not detected at compile time, and because a computer cannot divide by 0, this is a run-
time error.


12. During translation, the compiler puts its output (the compiled Java program) into ROM.
ED
ANS: F
ROM stands for read-only-memory. The compiled output (the byte codes) may be placed into RAM
(writable random access memory) or into a file (on your hard drive, for example).
??
13. Objects are defined by a class that describes the characteristics common to all instances of the class.

ANS: T
An object is an instance of a class. And, the purpose of a class is to describe these common
characteristics.

, 14. Inheritance is a form of software reuse.

ANS: T
Inheritance allows us to capitalize on the similarities among various kinds of classes that have a
common base (parent) class. Thus we reuse the base class each time a class inherits from it.

15. Polymorphism is the idea that we can refer to multiple types of related objects in consistent ways.
ST
ANS: T
Polymorphism allows us to use the same name for similar behaviors that occur among diverse and
possibly unrelated objects. For example, to "open" may refer to a file, or to a device, or to a
communications line, etc. The same term, "open," is being used even though the objects that are
UV
being opened are quite different.

16. In Java, identifiers may be of any length up to a limit determined by the compiler.

ANS: F
IA
Java (and Java compilers) do not limit the length of the identifiers you use. Identifiers may be as long
as you wish. Good programming practice, however, will limit the lengths of the identifiers you
create.
?_
MULTIPLE CHOICE

1. A Java program is best classified as
AP
a. hardware
b. software
c. storage
d. processor
e. input
PR
ANS: B
Programs are classified as software to differentiate them from the mechanisms of the computer
(hardware). Storage and the processor are two forms of hardware while input is the information that
the program processes.
OV

2. Six bits can be used to represent distinct items or values.
a. 6
b. 20
ED
c. 24
d. 32
e. 64
ANS: E
With n bits, we can represent 2^n different values. 2^6 = 64.
??

3. When executing a program, the processor reads each program instruction from
a. secondary memory (storage)
b. the Internet

Written for

Institution
Java Software
Course
Java Software

Document information

Uploaded on
March 26, 2026
Number of pages
522
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$19.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
successhands Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
196
Member since
2 year
Number of followers
18
Documents
934
Last sold
5 days ago
Successhands – Verified Solutions, Test Banks & Guides for Medical, Nursing, Business, Engineering, Accounting, Chemistry, Biology & Other Subjects

Welcome to Your Ultimate Study Resource Hub! Looking for high-quality, reliable, and exam-ready study materials? You’re in the right place. Our shop specializes in original publisher content, including solutions manuals, test banks, and comprehensive study guides that are ideal for university and college students across various subjects. Every document is in PDF format and available for instant download—no waiting, no hassle. That means you get immediate access to top-tier academic resources the moment you need them, whether you're cramming for an exam or studying ahead. These materials are especially effective for exam preparation, offering step-by-step solutions, real test formats, and well-organized study guides that align with your coursework and textbooks. Whether you're a visual learner, a problem-solver, or need practice questions—there’s something for every study style. Love what you get? Share it! Help your mates and classmates succeed too by referring them to our shop. More learners, more success for all.

Read more Read less
4.4

17 reviews

5
11
4
3
3
2
2
1
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions