CSE 2221 Midterm 2 Exam/42 Accurate
Questions with Answers
Precondition - - characterizes the responsibility of the program
that calls the method (the client)
- Post-condition - - characterizes the responsibility of the program that
implements the method (the implementer)
- Parameter Mode - - Part of the contract that specifies the way a method
might change the value of the corresponding argument.
- Clears - - A parameter mode. Upon returning from a method call, a clears-
mode parameter has the initial value for its type.
- Restores - - 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.
- Replaces - - A parameter mode. Upon returning from a method call, a
replaces-mode parameter may have a different value than its incoming
value, but the method's behavior doesn't depend on the incoming value of
the parameter.
- Testing - - Proving code has an error
- Debugging - - Finding and fixing an error in the code
- Array - - A group of similar variables all of the same type, a reference type
- Array element - - Each acts like a single variable of the declaration type
- Recursive method - - A method that calls itself
- Implements - - If a class implements an interface then it contains the
method bodies for the behaviors specified in the interface
- Extends - - Can use all methods from the superclass, can override and
modify methods as well
- Override - - Providing a new method body and implementation of a
method inherited from another class, uses @Override annotation
The benefits of buying summaries with Stuvia:
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
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
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 Nursephil2023. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $8.49. You're not tied to anything after your purchase.