100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Absolute Java 5th Edition by Walter Savitch -  Test Bank Chapter (1 to 20) R366,29   Add to cart

Exam (elaborations)

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

 9 views  0 purchase
  • Course
  • Institution

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

Preview 4 out of 240  pages

  • March 22, 2024
  • 240
  • 2022/2023
  • Exam (elaborations)
  • Questions & answers
avatar-seller
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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

Quick and easy check-out

You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

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 this summary from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller TestBankStock. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy this summary for R366,29. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

83637 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy summaries for 14 years now

Start selling
R366,29
  • (0)
  Buy now