Professional Documents
Culture Documents
M206 Sample Questions Fall 2004: Q1: Select The Best Answer For The Following Statements
M206 Sample Questions Fall 2004: Q1: Select The Best Answer For The Following Statements
Fall 2004
Prepared by: Amal Naji & Amal Abdullah
1. Write a new method for the Frog class called positionDoubled that returns a number that is double its
current position. For example, sending the message positionDoubled to a frog object in position 3
should give the answer 6 (i.e. 3 * 2)
3. hoverFrog1 Up
Receiver: hoverFrog1
Message selector: Up
Argument(s): has no argument
3. Define the following terms:
1. Visibility: A key principle of HCI that states all controls should be visible and provide feedback to indicate
the control is responding to the user’s actions.
2. Domain Model: The domain model can be thought of as an underlying computer program (the actual
engine) that carries out the abstract functions of the system.
4. Write the message answer results from evaluating the following expressions:
Expression Message answer
10 10
gribbit position: 10 gribbit after changing its state.
'frog' asUppercase 'FROG'
account1 overLimit: 250 account1 after changing its state.
5. Draw object-interaction diagram the represents the following expressions: