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)

CPSC 2150 Exam 1 iClicker Questions And Answers

Rating
-
Sold
-
Pages
6
Grade
A+
Uploaded on
02-05-2024
Written in
2023/2024

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

Show more Read less
Institution
Course

Content preview

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

Written for

Course

Document information

Uploaded on
May 2, 2024
Number of pages
6
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$7.99
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.
TopGradeSolutions Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
95
Member since
2 year
Number of followers
9
Documents
13297
Last sold
4 days ago
TOPGRADESOLUTIONS

Here we offer revised study materials to elevate your educational outcomes. We have verified learning materials (Research, Exams Questions and answers, Assignments, notes etc) for different courses guaranteed to boost your academic results. We are dedicated to offering you the best services and you are encouraged to inquire further assistance from our end if need be. Having a wide knowledge in Nursing, trust us to take care of your Academic materials and your remaining duty will just be to Excel. Remember to give us a review, it is key for us to understand our clients satisfaction. We highly appreciate clients who always come back for more of the study content we offer, you are extremely valued. All the best.

Read more Read less
4.9

171 reviews

5
159
4
7
3
4
2
0
1
1

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