100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
APCS Ch. 10 Test Review Terms in this set (28) 1. Which of the following statements about a Java interface is NOT true? a) A Java interface defines a set of methods that are required. b) A Java interface must contain more than one method. c) A Java inte $5.99   Add to cart

Exam (elaborations)

APCS Ch. 10 Test Review Terms in this set (28) 1. Which of the following statements about a Java interface is NOT true? a) A Java interface defines a set of methods that are required. b) A Java interface must contain more than one method. c) A Java inte

 3 views  0 purchase
  • Course
  • CGFO - Certified Government Finance Officer
  • Institution
  • CGFO - Certified Government Finance Officer

APCS Ch. 10 Test Review Terms in this set (28) 1. Which of the following statements about a Java interface is NOT true? a) A Java interface defines a set of methods that are required. b) A Java interface must contain more than one method. c) A Java interface specifies behavior that a class...

[Show more]

Preview 2 out of 10  pages

  • August 3, 2024
  • 10
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CGFO - Certified Government Finance Officer
  • CGFO - Certified Government Finance Officer
avatar-seller
Denyss
8/3/24, 2:01 PM



APCS Ch. 10 Test Review
Jeremiah
Terms in this set (28)

1. Which of the following statements about a b) A Java interface must contain more than one method.
Java interface is NOT true?
a) A Java interface defines a set of methods
that are required.
b) A Java interface must contain more than
one method.
c) A Java interface specifies behavior that a
class will implement.
d) All methods in a Java interface must be
abstract.




2. A method that has no implementation is d) abstract
called a/an ___ method.
a) interface
b) implementation
c) overloaded
d) abstract




3. Which statement about methods in an d) All methods in an interface must be explicitly declared as private or public.
interface is true?
a) All methods in an interface are
automatically private.
b) All methods in an interface are
automatically public.
c) All methods in an interface are
automatically static.
d) All methods in an interface must be
explicitly declared as private or public.




APCS Ch. 10 Test Review




1/10

, 8/3/24, 2:01 PM
4. Which of the following statements about a) An abstract method has a name, parameters, and a return type, but no code in the
abstract methods is true? body
a) An abstract method has a name, of the method.
parameters, and a return type, but no code
in the body
of the method.
b) An abstract method has parameters, a
return type, and code in its body, but has no
defined name.
c) An abstract method has a name, a return
type, and code in its body, but has no
parameters.
d) An abstract method has only a name and
a return type, but no parameters or code in
its
body.

5. Which of the following statements about b) An interface has methods but no instance variables.
an interface is true?
a) An interface has methods and instance
variables.
b) An interface has methods but no instance
variables.
c) An interface has neither methods nor
instance variables.
d) An interface has both public and private
methods.




6. Which of the following statements about d) Interfaces have both private and public methods.
interfaces is NOT true?
a) Interfaces can make code more reusable.
b) Interface types can be used to define a
new reference data type.
c) Interface types can be used to express
common operations required by a service.
d) Interfaces have both private and public
methods.

7. To use an interface, a class header should d) The keyword implements and the name of the interface
include which of the following?
a) The keyword extends and the name of an
abstract method in the interface
b) The keyword extends and the name of the
interface
c) The keyword implements and the name of
an abstract method in the interface
d) The keyword implements and the name of
the interface




APCS Ch. 10 Test Review
https://quizlet.com/277252638/apcs-ch-10-test-review-flash-cards/ 2/10

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 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 these notes from?

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

Will I be stuck with a subscription?

No, you only buy these notes for $5.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

72841 documents were sold in the last 30 days

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

Start selling
$5.99
  • (0)
  Add to cart