• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 523 pages
Exam (elaborations)

Java Software Solutions: Foundations of Program Design 10th Edition Test Bank & Solution Manual by John Lewis & William Loftus | Complete Questions & Answers

Document preview thumbnail
Preview 4 out of 523 pages

Get comprehensive study and exam-preparation support with this Java Software Solutions: Foundations of Program Design 10th Edition Test Bank & Solution Manual by John Lewis and William Loftus (Global Edition). This resource covers key programming concepts and assessment material across the major chapters, including Introduction, Data and Expressions, Using Classes and Objects, Writing Classes, Conditionals and Loops, More Conditionals and Loops, Object-Oriented Design, Arrays, Inheritance, Polymorphism, Exceptions, Recursion, and Collections. The document includes True/False questions, multiple-choice questions, programming problems, code-based questions, and answers with explanations, providing practice on fundamental Java programming concepts such as variables and data types, operators and expressions, String manipulation, classes and objects, methods, object-oriented programming, inheritance, polymorphism, exception handling, recursion, arrays, collections, Java syntax, program design, debugging, and problem solving. It also contains practical programming exercises involving Java code, input and output, Scanner, formatting, identifiers, reserved words, type conversion, mathematical operations, and common programming errors, making it useful for students reviewing course material, practicing programming concepts, preparing for quizzes and exams, and reinforcing understanding of Java Software Solutions. The uploaded document is identified as the 10th Edition (Global Edition) and contains extensive question-and-answer material organized by chapter.

Content preview

@ProfdocDigitalLibraries <Best Online Study Materials>



TEST BANK & SOLUTION MANUAL
Java Software Solutions: Foundations of Program Design
John Lewis & William Loftus

10th Edition (Global Edition)

,@ProfdocDigitalLibraries <Best Online Study Materials>

Table of Contents

1. Introduction
2. Data and Expressions
3. Using Classes and Objects
4. Writing Classes
5. Conditionals and Loops
6. More Conditionals and Loops
7. Object-Oriented Design
8. Arrays
9. Inheritance
10.Polymorphism
11.Exceptions
12.Recursion
13. Collections

,@ProfdocDigitalLibraries <Best Online Study Materials>


Chapter 1 Introduction

TRUE/FALSE

1. All information is stored in the computer using binary numbers.

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.


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
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
window).

4. Java byte codes are directly executable whereas Java source code is not.

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.

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

, @ProfdocDigitalLibraries <Best Online Study Materials>
MEDSTUDY.COM
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
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.

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.


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.

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.


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

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.


12. During translation, the compiler puts its output (the compiled Java program) into ROM.

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.

Document information

Uploaded on
August 31, 2026
Number of pages
523
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$21.99

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

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.
PROFDOC
4.3
(69)
Sold
607
Followers
24
Items
2377
Last sold
1 day ago



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