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

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

Test Bank for Absolute Java 6th Edition (Walter Savitch, 2015), Chapter 1-20 | All Chapters

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

Content preview

Chapter #zx1 # z x 1
# z x Getting #zxStarted




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




VerifiedMedPapers

, Chapter #zx1 # z x 2
# z x Getting #zxStarted



5) Identify #zxthe #zxinvalid #zxJava #zxidentifier.
(a) 1Week
(b) Week1
(c) amountDue
(d) amount_due
#zx Answer: # z x A

6) What #zxis #zxthe #zxvalue #zxof #zxthe #zxvariable #zxamountDue?

double #zxprice #zx= #zx2.50;

#zx double #zxquantity #zx=

#zx 5; #zxdouble

amountDue #zx= #zx0;
#zx



amountDue #zx= #zxprice #zx* #zxquantity;

(a) 12
(b) 12.25
(c) 12.5
(d) 13
Answer: # z x C

7) What #zxis #zxthe #zxvalue #zxof #zx7.52e-5?
(a) 752000.0
(b) 0.0000752
(c) 0.000752
(d) 0.00752
Answer: # z x B

8) What #zxis #zxthe #zxJava #zxexpression #zxfor #zx4a2 #zx+ #zx2b #zx* #zxc?
(a) (4 #zx * #zxa) #zx+ #zx(2 #zx* #zxb) #zx* #zxc
(b) (4 #zx * #zxa #zx* #zxa) #zx+ #zx((2 #zx * #zxb) #zx* #zxc)
(c) ((4 #zx* #zxa #zx* #zxa) #zx+ #zx(2 #zx* #zxb)) #zx* #zxc
(d) (4 #zx+ #zxa #zx* #zxa) #zx+ #zx((2
#zx + #zxb) #zx* #zxc) #zxAnswer:
# zx B

9) What #zxis #zxthe #zxJava #zxexpression #zxfor #zx27xy?
(a) 27 #zx+ #zx(x #zx* #zxy)
(b) 27 #zx* #zx(x #zx+ #zxy)
(c) 27 #zx* #zxx #zx * #zxy
(d) 27x #zx*



VerifiedMedPapers

, Chapter #zx1 # z x 3
# z x Getting #zxStarted
y
#zx


#zx Answer:
#zx C
Copyright # z x © # z x 2016 # z x Pearson # z x Education, # z x Inc., # z x Hoboken # z x NJ




VerifiedMedPapers

, Chapter #zx1 # z x 4
# z x Getting #zxStarted



10) The #zxvalue #zxof #zxthe #zxexpression #zx(int) #zx27.6 #zxevaluates #zxto:
(a) # z x 28
(b) # z x 27
(c) # z x 26
(d) # z x None #zxof #zxthe
above. #zxAnswer:
#zx #z x B

11) Which #zxoperator #zxis #zxused #zxto #zxconcatenate #zxtwo #zxstrings?
(a) # z x +
(b) # z x –
(c) # z x *
(d) # z x /
#zx Answer:
#zx A

12) Which #zxoperator #zxreturns #zxthe #zxremainder #zxof #zxinteger #zxdivision?
(a) # z x %
(b) # z x /
(c) # z x *
(d) # z x none #zxof #zxthe
above #zxAnswer:
#zx #zx A

13) What #zxis #zxthe #zxvalue #zxof #zxthe #zxvariable #zxc #zxin #zxthe #zxstatements #zxthat #zxfollow?

String #zxphrase #zx= #zx"Make #zxhay #zxwhile #zxthe #zxsun #zxis #zxshining.";

char #zxc #zx= #zxphrase.charAt(10);
(a) # z x w
(b) # z x h
(c) # z x i
(d) # z x None #zxof #zxthe
above #zxAnswer: # z x B
#zx




14) The #zxescape #zxsequence #zxthe #zxrepresents #zxthe #zxnew-line #zxcharacter #zxis:
(a) # z x \r
(b) # z x \t
(c) # z x \n
(d) # z x \\
#zx Answer:
#zx C




VerifiedMedPapers

Written for

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

Document information

Uploaded on
August 30, 2025
Number of pages
384
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$18.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
VerifiedMedPapers
5.0
(1)

Get to know the seller

Seller avatar
VerifiedMedPapers West Virgina University
View profile
Follow You need to be logged in order to follow users or courses
Sold
7
Member since
1 year
Number of followers
1
Documents
235
Last sold
7 months ago
VerifiedMedPapers: Your Premier Digital Library & Study Partner for Nursing, Accounting, Statistics, Biology, Chemistry and All the Other Subjects!

Hello Dear Students, Why waste time on ineffective study methods when you can use our proven study guide materials that are well crafted by professionals? Our Library shop offers a range of carefully crafted guides that help you understand subjects faster, retain information longer, and perform better on exams. Take the smart route to success with VerifiedMedPapers! Start studying smarter today with instant downloads tailored to your needs! Feel free to recommend us to your mates to try our services.

Read more Read less
5.0

1 reviews

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