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

Exam (elaborations)

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

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

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

Preview 2 out of 12  pages

  • August 29, 2024
  • 12
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • 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. Precondition

ANS characterizes the responsibility of the programthat calls the method

(the client)

2. Post-condition

ANS characterizes the responsibility of the program that implementsthe method (the

implementer)

3. Parameter Mode

ANS Part of the contract that specifies the way a method mightchange the value of the

corresponding argument.

4. Clears

ANS A parameter mode. Upon returning from a method call, a clears-modeparameter has the

initial value for its type.

5. Restores

ANS The default parameter mode. Upon returning from a method call, a restores-mode

parameter has the value it had when it was passed into the method.
1/4




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

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




6. Replaces

ANS A parameter mode. Upon returning from a method call, a re-

places-mode parameter may have a different value than its incoming value, but themethod's

behavior doesn't depend on the incoming value of the parameter.

7. Testing

ANS Proving code has an error

8. Debugging

ANS Finding and fixing an error in the code

9. Receivers

ANS Distinguished formal parameters, implicit arguments

10. Overloading

ANS Having methods/variables all with the same name. The actualconstructor is inferred by

the program from the argument type.

11. .copyFrom()

ANS Copies values not references

12. .newInstance()

ANS Has the advantage that you don't need to know the name ofany implementation class to

call the method
2/4




2 of 12 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.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

80796 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.49
  • (0)
  Add to cart