100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CPSC 2150 Exam 1 iClicker Questions And Answers $7.79   Add to cart

Exam (elaborations)

CPSC 2150 Exam 1 iClicker Questions And Answers

 0 view  0 purchase
  • Course
  • Institution

CPSC 2150 Exam 1 iClicker Questions And Answers ____________ is ensuring that every object or module has a specific role a. Separation of concerns b. Encapsulation c. Design by contract d. Information hiding a. Separation of concerns _______________ is controlling access to data and operat...

[Show more]

Preview 2 out of 6  pages

  • December 28, 2023
  • 6
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
avatar-seller
CPSC 2150 Exam 1 iClicker Questions And Answers
____________ is ensuring that every object or module has a specific role
a. Separation of concerns
b. Encapsulation
c. Design by contract
d. Information hiding
a. Separation of concerns
_______________ is controlling access to data and operations.
a. Separation of concerns
b. Encapsulation
c. Design by contract
d. Information hiding
d. Information hiding
__________ is grouping related data and operations together in one object.
a. Separation of concerns
b. Encapsulation
c. Design by contract
d. Information hiding
b. Encapsulation
The precondition automatically checks and enforces itself by checking the value
of the parameter, and returning an error if it's outside of the parameters.
a. True
b. False
b. False
Who is responsible for making sure that the precondition for a function is met?
a. Implementer who codes the function
b. The client who calls the function
b. The client who calls the function

, Who is responsible for making sure that the postcondition for a function is met?
a. Implementer who codes the function
b. The client who calls the function
a. Implemented who codes the function
It is good practice to use an if statement inside the method to check to see if the
precondition of the method is met.
a. True
b. False
b. False
The standard documentation technique for Java is called
Javadoc
Which of the following is not a time when we would assume the invariant to be
true?
a. After the constructor has finished.
b. At the beginning of a public method
c. After a public method has finished
d. During the body of the public method or constructor
d. During the body of the public method or constructor
Who is responsible for making sure a class invariant is true?
a. The client who uses the class
b. The implementers of the class and its public methods
c. The implementers of the class's private methods
b. The implementers of the class and its public methods
It is a good idea to make data fields of a class public to make access to them
easier and avoid coding unnecessary getter and setter functions.
a. True
b. False
b. False
Which is the best design practice?
a. Provide getter and setter functions to allow access to data members
b. Make data member public for direct access

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 LIXAN. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

79316 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
$7.79
  • (0)
  Add to cart