100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

CPSC 2150 Exam 1 || All Questions Answered Correctly.

Rating
-
Sold
-
Pages
6
Grade
A+
Uploaded on
25-03-2024
Written in
2023/2024

Who is responsible for making sure that the precondition of a function is met? correct answers The client that calls the function Who is responsible for making sure that the post-condition of a function is met? correct answers The implementer of the function Is it a good practice to have each function start with an if statement that checks to make sure the preconditions are true? correct answers False True or False? The precondition automatically checks and enforces itself by checking the value of the parameter, and returning an error if the parameter is incorrect. correct answers False How does the concept of information hiding help keep our data secure? correct answers Making attributes privates and only allowing access through public method controls limits access to data. If data is changes, it must go through a method where there is control over accepted values How does the concept of Separation of Concerns make it easier for our program to adapt to change? correct answers It separates the program into modules. This allows specific parts of the program to easily found and revised. It also allows the user to to separate different programs into areas in which are important. Is is safe to assume the invariant of a class is true at the beginning of a private method? correct answers No Is is safe to assume the invariant of a class is true after the constructor for the object has been completed? correct answers Yes Is is safe to assume the invariant of a class is true after a private method has finished? correct answers No Is is safe to assume the invariant of a class is true during the body of a public method? correct answers No Is is safe to assume the invariant of a class is true when the object has been declared, but not initialized? correct answers No Is is safe to assume the invariant of a class is true at the beginning of a public method? correct answers Yes Is is safe to assume the invariant of a class is true during execution of a private method? correct answers No Is is safe to assume the invariant of a class is true after a public method has finished? correct answers Yes

Show more Read less
Institution
CPSC 2150
Course
CPSC 2150









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CPSC 2150
Course
CPSC 2150

Document information

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

Subjects

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.
ProPerfomer (self)
View profile
Follow You need to be logged in order to follow users or courses
Sold
432
Member since
2 year
Number of followers
322
Documents
8501
Last sold
1 day ago
Global Scholars’ Resource Hub

Welcome to your ultimate exam success hub! We provide top-quality, up-to-date, and approved exam materials—study guides, practice tests, and notes for a variety of subjects. Whether you’re preparing for school, college, or professional exams, our resources are designed to help you study smarter and score higher. Thousands have passed with our materials—now it’s your turn!Need more resources or something specific? Contact me anytime, and I’ll be happy to help you find exactly what you need. Your success is our mission!" ✅ Covers multiple subjects and exam types ✅ Includes real practice questions, answers, and study tips ✅ Ideal for students, test takers, and last-minute review Your Exam Success Starts Here – Grab Your Bundle Before It’s Gone!

Read more Read less
3.9

83 reviews

5
36
4
25
3
9
2
1
1
12

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

Frequently asked questions