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)

Absolute Java 5th Edition by Walter Savitch -  Test Bank Chapter (1 to 20)

Rating
-
Sold
-
Pages
240
Grade
A+
Uploaded on
22-03-2024
Written in
2022/2023

This is NOT a book! This is a Test Bank with all chapters (100% Correct Questions Answers).

Institution
Course

Content preview

Absolute Java 5th Edition by Walter Savitch
- Test Bank Chapter (1 to 20)

,Content


Chapter 1 Getting Started
Chapter 2 Console Input and Output
Chapter 3 Flow of Control
Chapter 4 Defining Classes I
Chapter 5 Defining Classes II
Chapter 6 Arrays
Chapter 7 Inheritance
Chapter 8 Polymorphism and Abstract Classes
Chapter 9 Exception Handling
Chapter 10 File I/O
Chapter 11 Recursion
Chapter 12 UML and Patterns
Chapter 13 Interfaces and Inner Classes
Chapter 14 Generics and the Array List Class
Chapter 15 Linked Data Structures
Chapter 16 Collections, Maps, and Iterators
Chapter 17 Swing I
Chapter 18 Swing II
Chapter 19 Java Never Ends
Chapter 20 Applets

,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




1
5) Identify the invalid Java identifier.
(a) 1Week

, (b) Week1
(c) amountDue
(d) amount_due

Answer: A

6) What is the value of the variable amountDue?

double price = 2.50; double quantity = 5; double amountDue = 0;

amountDue = price * quantity;

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

7) What is the value of 7.52e-5?
(a) 752000.0
(b) 0.0000752
(c) 0.000752
(d) 0.00752

Answer: B

8) What is the Java expression for 4a2 + 2b * c?
(a) (4 * a) + (2 * b) * c
(b) (4 * a * a) + ((2 * b) * c) (c) ((4 * a * a) + (2 * b)) * c
(d) (4 + a * a) + ((2 + b) * c)
Answer: B

9) What is the Java expression for 27xy?
(a) 27 + (x * y)
(b) 27 * (x + y)
(c) 27 * x * y
(d) 27x * y Answer: C 10) The value of the expression (int) 27.6 evaluates to:
(a) 28
(b) 27
(c) 26

Written for

Course

Document information

Uploaded on
March 22, 2024
Number of pages
240
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$20.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.
TestBankStock UET
Follow You need to be logged in order to follow users or courses
Sold
27
Member since
2 year
Number of followers
9
Documents
158
Last sold
4 weeks ago
TestBankStock

Offering Latest and complete Range of Test Banks of all categories, Please visit my account in detail for Exercises, Quiz, Tests, Questions Answers, Assignments, Units, Solutions,Modules @ cheaper prices.

3.6

5 reviews

5
1
4
2
3
1
2
1
1
0

Recently viewed by you

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