Java Programming
10th Edition
ST
SOLUTIONS
UV
& ANSWER
IA
_A
GUIDE
PP
Joyce Farrell
RO
Comprehensive Solutions and Answer Guide
VE
for Instructors and Students
||| ||| || ||| || | || ||| | || ||| |
D?
9780357673423
© Joyce Farrell. All rights reserved. Reproduction or distribution
without permission is prohibited.
© MEDGEEK
, TABLE OF CONTENTS
Solutions and Answer Guide – Java Programming (10th Edition)
Author: Joyce Farrell
ISBN: 9780357673423
ST
PART I: FUNDAMENTALS OF JAVA PROGRAMMING
Chapter 1: Creating Java Programs
Chapter 2: Using Data
UV
Chapter 3: Using Methods
Chapter 4: Using Classes and Objects
PART II: PROGRAM LOGIC AND CONTROL STRUCTURES
Chapter 5: Making Decisions
IA
Chapter 6: Looping
Chapter 7: Characters, Strings, and the StringBuilder
Chapter 8: Arrays
_A
PART III: ADVANCED OBJECT-ORIENTED CONCEPTS
Chapter 9: Inheritance and Interfaces
Chapter 10: Exception Handling
PP
PART IV: DATA STREAMS AND RECURSION
Chapter 11: File Input and Output
Chapter 12: Recursion
RO
PART V: DATA STRUCTURES AND GUI DEVELOPMENT
Chapter 13: Collections and Generics
Chapter 14: Introduction to Swing Components
VE
D?
, Solution and Answer Guide: Farrell, Java Programming 10e, [978-035-767-3423], Chapter 1: Creating Java Programs
Solution and Answer Guide
Farrell, Java Programming 10e, [978-035-767-3423], Chapter 1: Creating Java Programs
Table of Contents
ST
Review Questions Answers ............................................................................................ 1
Programming Exercises Solutions ..................................................................................7
Debugging Exercises Solutions .................................................................................... 13
UV
Game Zone Solutions .................................................................................................... 15
Case Problems Solutions .............................................................................................. 17
Review Questions Answers
IA
1. The most basic circuitry-level computer language is ____________.
a. machine language
_A
b. Java
c. high-level language
d. C++
PP
Answer: a
Feedback:
The most basic circuitry-level computer language is machine language. Machine language, or
machine code, is the most basic set of instructions a computer can execute. Java and C++
RO
are both high-level languages and are the opposite of circuitry-level computer language.
2. Languages that let you use an easily understood vocabulary of descriptive terms, such as read, write,
or add, are known as ____________languages.
a. procedural
VE
b. high-level
c. machine
d. object-oriented
D?
Answer: b
Feedback:
High-level languages use English-like terms; Java is an example of a high-level language.
Procedural languages are those that run by executing a series of procedures or methods.
© 2022 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible 1
website, in whole or in part.
, Solution and Answer Guide: Farrell, Java Programming 10e, [978-035-767-3423], Chapter 1: Creating Java Programs
Machine-level languages do not use English-like terms; they use 1s and 0s. Object-oriented
languages are run by declaring and using objects that contain data and methods.
3. The rules of a programming language constitute its ____________.
a. syntax
ST
b. logic
c. format
d. objects
UV
Answer: a
Feedback:
The rules of a programming language constitute its syntax.
IA
4. A ____________ translates high-level language statements into machine code.
a. programmer
b. syntax detector
_A
c. compiler
d. decipherer
Answer: c
PP
Feedback:
A compiler translates high-level language statements into machine code. A programmer
writes high-level language statements but does not translate them. “Syntax detector” and
“decipherer” are not terms used in programming.
RO
5. Named computer memory locations are called ____________.
a. compilers
b. variables
VE
c. addresses
d. appellations
Answer: b
D?
Feedback:
Named computer memory locations are variables. Compilers translate programming
statements into machine language; they are not memory locations. Addresses are unnamed
computer memory locations. “Appellations” is not a term used in programming.
6. The individual operations used in a computer program are often grouped into logical units called
© 2022 Cengage. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible 2
website, in whole or in part.