Conquer Your Course with the [Java Programming,Farrell,8e] 2024 Test Bank
All for this textbook (2)
Written for
Java Programming
Java Programming
Java Programming
All documents for this subject (33)
Seller
Follow
ExamsExpert
Reviews received
Content preview
,Name Clas Dat
: s: e:
Chapter 01: Creating Java Programs
True / False
1. System software is used for tasks such as word processing, calculations and playing games.
a. True
b. False
ANSWER: False
POINTS: 1
REFERENCES: 2
2. If an object’s methods are well written, the user is unaware of the low-level details of how the methods are executed,
and the user must simply understand the interface or interaction between the method and the object.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 9
3. A Java identifier can contain only letters, digits, ampersands, or number signs.
a. True
b. False
ANSWER: False
POINTS: 1
REFERENCES: 15
4. You must use the Java interpreter to translate the bytecode into executable statements before running a Java application.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 23
5. When you issue the command to compile a class containing errors, the Java compiler does not produce any error
messages. You will first need to run the class in order to see error messages.
a. True
b. False
ANSWER: False
POINTS: 1
REFERENCES: 23
6. Logic errors are easily identified when a program is compiled.
a. True
b. False
ANSWER: False
Cengage Learning Testing, Powered by Cognero Page 1
7. Although not a requirement, it is Java standard that class identifiers begin with an uppercase letter and use other
uppercase letters to improve readability.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 16
8. A compiler ignores whitespace (that is, any combination of nonprinting characters) between words and lines.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 18
9. Dots (or periods) in a Java statement are used to separate the names of the components that make up the statement.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 15
10. Using the void keyword in the main() method header indicates that a value will be returned by the main()
method is called.
a. True
b. False
ANSWER: False
POINTS: 1
REFERENCES: 20
Multiple Choice
11. A program written in ____ is the most basic circuitry-level language.
a. machine language b. Java
c. C d. BASIC
ANSWER: a
POINTS: 1
REFERENCES: 2
12. Locating and repairing all syntax errors is part of the process of ____ a program.
Cengage Learning Testing, Powered by Cognero Page 2
, Name Clas Dat
: s: e:
Chapter 01: Creating Java Programs
a. interpreting b. executing
c. debugging d. compiling
ANSWER: c
POINTS: 1
REFERENCES: 3
13. ____ are also called modules, methods, functions, and subroutines. Java programmers most frequently use the term
“method.”
a. Calls b. Classes
c. Procedures d. Applications
ANSWER: c
POINTS: 1
REFERENCES: 6
14. ____ refers to the hiding of data and methods within an object.
a. Instance b. Inheritance
c. Encapsulation d. Passed
ANSWER: c
POINTS: 1
REFERENCES: 9
15. ____ describes the feature of languages that allows the same word to be interpreted correctly in different situations
based on the context.
a. Polymorphism b. Insulation
c. Source code d. Architecturally neutral
ANSWER: a
POINTS: 1
REFERENCES: 10
16. Programs that are embedded in a Web page are called Java ____.
a. consoles b. applications
c. applets d. windowed applications
ANSWER: c
POINTS: 1
REFERENCES: 12
17. ____ are pieces of information that are sent into, or passed to, a method, usually because the method requires the
information to perform its task or carry out its purpose.
a. Applets b. Objects
c. Methods d. Arguments
ANSWER: d
POINTS: 1
REFERENCES: 14
Cengage Learning Testing, Powered by Cognero Page 3
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller ExamsExpert. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $30.67. You're not tied to anything after your purchase.