Professional Documents
Culture Documents
M206 Sample MidTerm Exam
M206 Sample MidTerm Exam
Student ID
Student Name
Group Number
Tutor Name
معلومات هامة:
)1هذا االمتحان مكون من ثالثة أجزاء .اتبع التعليمات الموجودة في الصفحة التالية لإلجابة على األسئلة
)2عدد صفحات االمتحان XXمن ضمنها هذه الصفحة.
)3مدة االمتحان ثالث ساعات.
)4يجب كتابة الرقم الجامعي واالسم ورقم المجموعة واسم المعيد على هذه الصفحة وأيضا على صفحة
اإلجابة.
FORM A
General Instructions
The exam consists of three parts. The first part consists of XX multiple choice and
XX T/F. Each question is worth XX marks. You should answer all questions of part
1. You must answer this question in the answer sheet given in page XX.
The second part consists of XX short questions. Each question is worth XX marks.
You should answer all questions of part 2.
The third part consists of XX long questions. Each question is worth XX marks. You
should answer all the questions.
2
FORM A
Part 1(30 questions) [60 marks]
Instructions: Answer the following XX multiple choice questions and XX
T/F and fill your answers in the table of the Answers Sheet given at the end
of Part 1.
4. A Smalltalk block
a. Can have arguments
b. Returns the result of evaluating the last expression in the block.
c. Is an instance of BlockClosure class
d. All of the above
3
Question 2:
Choose if the following are True or False, your answers in the table of the
Answers Sheet given at the end of Part 1.
1- The messages add: and remove: are part of the common protocol of Set and Array
true false
2- A user interface designer should ignore the age, cultural and ethnic background of likely users.
Indicate whether this is true or false. (tick the appropriate box)
true false
Part I Q.2
Part (1) Q.1
Question Answer Answer
Question
T or F
1
1
2
2
3
3
4
4
5
5
6
4
FORM A
Part 2(XX questions) [XX marks]
Instructions: Answer the following XX short questions. Each question is worth XX
marks. You should answer all questions of Part 2.
User interface:
Affordance:
Domain model:
2. Mention the names of two types of dialogs that can be created using
Smalltalk expressions and list the possible message answers for them.
5
FORM A
Part 3(Answer XX long questions) [XX marks]
Instructions: Answer the following three long questions. Each question is worth XX
marks.
Question 1 (xx marks):
Write a complete method for the following tasks. Each method must have a comment that
specifies the function of the method
1. For a Frog class object write a method to move the frog 3 steps to the left
2. For a Frog class object, write a method to set the height of the frog to height plus
(Up) or minus (Down) aNumber. The method has two arguments. The first
argument is the direction (either Up or Down). The second argument is the number
added (in case of Up) or subtracted (in case of Down) from the original height.