100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSE 2221 Midterm 2 Exam 2024 Questions and Verified Answers, 100% Guarantee Pass $12.99   Add to cart

Exam (elaborations)

CSE 2221 Midterm 2 Exam 2024 Questions and Verified Answers, 100% Guarantee Pass

 14 views  0 purchase
  • Course
  • CSE 2221
  • Institution
  • CSE 2221

CSE 2221 Midterm 2 Exam 2024 Questions and Verified Answers, 100% Guarantee Pass

Preview 2 out of 5  pages

  • August 29, 2024
  • 5
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • cse 2221
  • CSE 2221
  • CSE 2221
avatar-seller
TIPSCORE
CSE 2221 Midterm 2.pdf file:///C:/Users/HP/Desktop/pppppp/CSE%202221%20Midterm%202




CSE 2221 Midterm 2



1. design-by-contract

ANS (programming to the interface) uses both pre and postconditions to document the

change in state caused by the program

2. precondition

ANS (requires clause) characterizes the responsibility of the programthat calls (uses) that

method (client code)

3. postcondition

ANS (ensures clause) characterizes the responsibility of the programthat implements that

method

4. parameter modes

ANS local decisions for which a method might change the value ofthe corresponding argument

5. @restores mode

ANS upon return from the method call, the parameter once againhas an incoming value

6. @clears mode

ANS upon return from the method call, it resets the parameter to theinitial value
1/2




1 of 5 8/28/2024, 3:24

,CSE 2221 Midterm 2.pdf file:///C:/Users/HP/Desktop/pppppp/CSE%202221%20Midterm%202




7. @replaces mode

ANS upon return from the method call, the parameter has a valuethat might be changed from

its incoming value & does not depend on initial value

8. @updates mode

ANS parameter has value that might be changed from incomingvalue & method's behavior

does depend on initial value

9. debugging

ANS given source code with a defect, you find and repair it

10. testing

ANS given some code, show by executing if it has a defect

11. immutable types

ANS no method can change the value of the receiver, the value ofthe variable cannot be changed

ex

String / XMLTree

12. primitive types

ANS built in data types that are mutable by at least one methodex

boolean, char

13. reference types
2/2




2 of 5 8/28/2024, 3:24

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

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

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