Examlex

Solved

Scott Bought a Widget from Gowhara

question 5

Multiple Choice

Scott bought a widget from Gowhara.The price was $10 000.He paid with a cheque that he had drawn on his account at the Bank of Kamloops.Scott had the cheque certified before he gave it to Gowhara.In fact, Scott's account balance was only $8000.When he discovered that fact, he went to the bank and gave instructions to have the cheque countermanded but the bank refused that request.Which of the following statements is TRUE?


Definitions:

Mutator Methods

Methods designed to set or modify the values of an object's attributes while keeping the encapsulation principle intact.

Integer Values

Whole numbers that can be positive, negative, or zero, not including decimals or fractions.

Instance Variable

A variable declared inside a class but outside any method, and is unique to each instance of the class.

Preconditions

Conditions that must be true before a function or operation can proceed in programming.

Related Questions