,Test Bank For Java Programming 10th Edition
Chapter 1. Creating Java Programs.
Chapter 1. Creating Java Programs.
1. A class named first is different from a class named FIRST becaus
A class named first is different from a class named FIRST because ____.
a. Java is case insensitive
b. it is confusing to have two names that look the same
*c. Java is case sensitive
d. first and FIRST are different literal strings
2. A compiler ignores whitespace (that is, any combination of nonpr
A compiler ignores whitespace (that is, any combination of nonprinting
characters) between words and lines.
*a. True
b. False
3. A ____ error occurs when the syntax of the program is correct an
A ____ error occurs when the syntax of the program is correct and the program
compiles but produces incorrect results when you execute it.
*a. logic
b. syntax
c. semantic
d. class
4. After a successful compile, you can run the class file on any co
After a successful compile, you can run the class file on any computer that has a
____.
*a. Java language interpreter
b. web browser
c. text editor
d. DOS environment
5. After the program statements are written in a high-level program
After the program statements are written in a high-level programming language, a
compiler:
a. translates one statement at a time before executing them.
*b. translates an entire program into machine code before
executing any statement.
c. reads the compiled code line by line at run time.
d. reads an entire program before executing any statement.
1
,Test Bank For Java Programming 10th Edition
Chapter 1. Creating Java Programs.
6. A Java identifier can contain only letters, digits, ampersands,
A Java identifier can contain only letters, digits, ampersands, or
number signs.
a. True
*b. False
7. Although not a requirement, it is a Java standard that class ide
Although not a requirement, it is a Java standard that class
identifiers begin with an uppercase letter and use other uppercase
letters to improve readability.
*a. True
b. False
8. A(n) ____ defines the circumstances under which a class can be a
A(n) ____ defines the circumstances under which a class can be accessed and the
other classes that have the right to use a class.
a. identifier
*b. access specifier
c. parameter
d. typecasting
9. A(n) ____ is a characteristic that defines an object.
A(n) ____ is a characteristic that defines an object.
a. keyword
b. literal string
*c. attribute
d. method
10. A(n) ____ is a GUI object resembling a window in which you can p
A(n) ____ is a GUI object resembling a window in which you can place messages
you want to display.
a. JDK
*b. dialog box
c. variable
d. argument
11. A program written in ____ is the most basic circuitry-level lang
A program written in ____ is the most basic circuitry-level language.
a. Java
*b. machine language
c. BASIC
d. C
2
, Test Bank For Java Programming 10th Edition
Chapter 1. Creating Java Programs.
12. ____ are also called modules, methods, functions, and subroutine
____ are also called modules, methods, functions, and subroutines. Java
programmers most frequently use the term "method."
*a. Procedures
b. Calls
c. Classes
d. Applications
13. ____ are pieces of information that are sent into, or passed to,
____ 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. Methods
*c. Arguments
d. Objects
14. Briefly describe the elements of the main() method: public stat
Briefly describe the elements of the main() method:
public static void main(String[] args)
{
Java code...
}
Correct Answer(s):
15. ____ comments are a special case of block comments that are used
____ comments are a special case of block comments that are used to generate
documentation.
a. Single- line
b. Multiline
c. JDoc
*d. Javadoc
16. Computer equipment is a set of instructions for a computer to ca
Computer equipment is a set of instructions for a computer to carry out
certain operations.
a. True
*b. False
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 meilleurellamae373090. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $49.99. You're not tied to anything after your purchase.