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 for Absolute Java 6th Edition (Walter Savitch, 2015), Chapter 1-20 | All Chapters Fully Covered | Complete Guide A+

Rating
-
Sold
-
Pages
384
Grade
A+
Uploaded on
08-08-2025
Written in
2025/2026

Test Bank for Absolute Java 6th Edition (Walter Savitch, 2015), Chapter 1-20 | All Chapters Fully Covered | Complete Guide A+

Institution
Absolute Java 6th Edition
Course
Absolute Java 6th Edition

Content preview

Chapter #se1 # s e 1
# s e Getting #seStarted




Chapter 1
Getting Started


 Multiple Choice
1) Java is an object-oriented programming language. An object-oriented language
(a) Uses structured programming.
(b) Views a program as consisting of objects which communicate through interactions.
(c) Functionally breaks down problems into smaller, more manageable problems.
(d) All of the above.
Answer: B

2) In Java, the equal sign is used as the operator.
(a) increment
(b) decrement
(c) assignment
(d) negation
Answer: C

3) In Java, source code is compiled into object code called .
(a) Bit-code
(b) Class code
(c) Method code
(d) Byte-code
Answer: D

4) The hardest kind of error to detect in a computer program is a:
(a) Syntax error
(b) Run-time error
(c) Logic error
(d) All of the above
Answer: C


Copyright © 2016 Pearson Education, Inc., Hoboken NJ




SCHOLARVAULT

, Chapter #se1 # s e 2
# s e Getting #seStarted



5) Identify #sethe #seinvalid #seJava #seidentifier.
(a) 1Week
(b) Week1
(c) amountDue
(d) amount_due
#se Answer: # s e A

6) What #seis #sethe #sevalue #seof #sethe #sevariable #seamountDue?

double #seprice #se= #se2.50;

#se double #sequantity #se=

#se 5; #sedouble

amountDue #se= #se0;
#se



amountDue #se= #seprice #se* #sequantity;

(a) 12
(b) 12.25
(c) 12.5
(d) 13
Answer: # s e C

7) What #seis #sethe #sevalue #seof #se7.52e-5?
(a) 752000.0
(b) 0.0000752
(c) 0.000752
(d) 0.00752
Answer: # s e B

8) What #seis #sethe #seJava #seexpression #sefor #se4a2 #se+ #se2b #se* #sec?
(a) (4 #se* #sea) #se+ #se(2 #se* #seb) #se* #sec
(b) (4 #se* #sea #se* #sea) #se+ #se((2 #se* #seb) #se* #sec)
(c) ((4 #se* #sea #se* #sea) #se+ #se(2 #se* #seb)) #se* #sec
(d) (4 #se+ #sea #se* #sea) #se+ #se((2 #se+
#se b) #se* #sec) #seAnswer: # s e B

9) What #seis #sethe #seJava #seexpression #sefor #se27xy?
(a) 27 #se+ #se(x #se* #sey)
(b) 27 #se* #se(x #se+ #sey)
(c) 27 #se* #sex #se* #sey
(d) 27x #se*
y
#se




SCHOLARVAULT

, Chapter #se1 # s e 3
# s e Getting #seStarted
Answer:
#se


#se C
Copyright # s e © # s e 2016 # s e Pearson # s e Education, # s e Inc., # s e Hoboken # s e NJ




SCHOLARVAULT

, Chapter #se1 # s e 4
# s e Getting #seStarted



10) The #sevalue #seof #sethe #seexpression #se(int) #se27.6 #seevaluates #seto:
(a) # s e 28
(b) # s e 27
(c) # s e 26
(d) # s e None #seof #sethe
above. #seAnswer:
#se # se B

11) Which #seoperator #seis #seused #seto #seconcatenate #setwo #sestrings?
(a) # s e +
(b) # s e –
(c) # s e *
(d) # s e /
#se Answer:
#se A

12) Which #seoperator #sereturns #sethe #seremainder #seof #seinteger #sedivision?
(a) # s e %
(b) # s e /
(c) # s e *
(d) # s e none #seof #sethe
#se above #seAnswer: #se A

13) What #seis #sethe #sevalue #seof #sethe #sevariable #sec #sein #sethe #sestatements #sethat #sefollow?

String #sephrase #se= #se"Make #sehay #sewhile #sethe #sesun #seis #seshining.";

char #sec #se= #sephrase.charAt(10);
(a) # s e w
(b) # s e h
(c) # s e i
(d) # s e None #seof #sethe
#seabove #seAnswer: # s e B




14) The #seescape #sesequence #sethe #serepresents #sethe #senew-line #secharacter #seis:
(a) # s e \r
(b) # s e \t
(c) # s e \n
(d) # s e \\
#se Answer:
#se C




SCHOLARVAULT

Written for

Institution
Absolute Java 6th Edition
Course
Absolute Java 6th Edition

Document information

Uploaded on
August 8, 2025
Number of pages
384
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$16.49
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.
ScholarVault West Virgina University
View profile
Follow You need to be logged in order to follow users or courses
Sold
29
Member since
11 months
Number of followers
1
Documents
547
Last sold
1 month ago
StudyHub: I provide A+ solutions in Accounting, Finance, Statistics, Computer Science, Nursing, Chemistry, Biology, and many other subjects.

Greetings, Are you tired of scouring for reliable study materials? Look no further! I'm here to provide you with accurate, comprehensive, and current study documents to ace your quizzes, assignments, midterms, and final exams. Whatever your study needs may be, I've got you covered. Feel free to reach out for assistance with any study materials, and don't hesitate to refer me to your friends. Thank you for choosing my services, and welcome to your solution! Best regards,

Read more Read less
3.0

1 reviews

5
0
4
0
3
1
2
0
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