Final Exam SE490
Final Exam SE490
Q1: Select the most appropriate correct answer (Only one answer)
أخــتر إجابة واحدة لكل سؤال
1. A good developer who المطور الجيد هو الذي
ّ
A. uses C++ يستخدم لغة
B. works under Linux يعمل في بيئة
C. chooses variable names which reflect and explain their values.يختار أسماء المتغيرات التي تعكس وتشرح قيمها
D. deals with multimedia, internet programming, and games.يتعامل مع الوسائط المتعددة وبرمجة االنترنت وااللعاب
2. IDE means تعنيIDE
A. system requirements B. design models
C. A programming language D. The manual work
3. The followings are the stages of understanding the problem except العناصر التالية هي من مرحلة فهم المشكلة ماعدا
A. Determining solution steps B. IPO diagrams
C. Performance requirements D. Implementation
4. Developers use programmer-defined functions for يستخدم المطورون الدوال الفرعية من أجل
A. Earning more moneyزيادة االرباح B. Improves a program maintainability تحسين قابلية الصيانة
C. Showing off عرض مهاراتهم D. Writing more lines زيادة أسطر الكود
5. One of the following methodologies is a type of Agile software development (Agile أحدى هذه المنجيات من نوع
A. Waterfall B. XP
C. Iterative D. Spiral Model
6. Representing gender variables as byte nor text because of تمثيل متغير الجنس (ذكر أو أنثى) رقمي وليس حرفي بسبب
A. Supporting different natural languages دعم لغات المستخدمين المختلفة
B. Byte will reduce memory consuming النوع بايت سيقلل استهالك الذاكرة
C. Text variable type is not available in some programming languages نوع النص غير متاح في بعض اللغات البرمجة
D. None of them
7. Comments are
A. Extra writing B. Executable lines
C. Documentation D. All of them
8. The term of Overflow means
A. The variable can catch the assigned value. B. The memory is full.
C. The variable cannot catch the assigned value. D. The value cannot be assigned to any variable.
9. Variables which can catch more than one value in the same timeمتغيرات يمكنها تخزين أكثر من قيمة في نفس الوقت
A. An array B. An integer of float variable
C. A database field D. All of them.
Student ID: ______________
10. In Event-driven programming, an object that waits for events and responds to them.
الذي ينتظر االحداث ويستجيب لها هو،في البرمجة المسيرة باالحداث
A. Listener B. Mouse and keyboard
C. Users D. Interface
11. Multithreading provides
A. implementing one process. B. implementing two processes only in the same time.
C. Wasting run time. D. None of them.
12. The body of any built-in function
A. will always be executed even if not called B. will not be included in the code
C. will not be executed even if is called D. None of them
13. When users can initiate actions by clicking the mouse on an icon, the program is
عندما يستطيع المستخدم تنفيد مهام بالنقر بالماوس فإن البرنامج هو
A. Command-driven B. Prompt-driven
C. Event-driven D. Incident-driven
14. If else statements are examples of
A. Sequence B. Selection C. Iteration D. None
15. The following code uses
firstname INPUT ("What is your firstname?")
lastname INPUT ("What is your lastname?")
PRINT ("Hello " + firstname + " " + lastname + "!")
Q2: As a part of a healthy system, developers create a system which takes into account the patient’s weight.
One of the factors is that the patient’s average speed which can be calculated by dividing the distance
covered by the time taken. The algorithm to do this is complicated and will work properly only for speeds
greater than 1 km/h and less than 30 km/h. This is considered a satisfactory range.
. يقوم المطورون بإنشاء نظام يأخذ في االعتبار وزن المريض، كجزء من نظام صحي
الخوارزمية للقيام بذلك.أحد العوامل هو أن متوسط سرعة المريض يمكن حسابه عن طريق قسمة المسافة التي يغطيها الوقت المستغرق
. هذا يعتبر ُمعدّل ُمرضي. ساعة/ كم30 ساعة وأقل من/ كم1 معقدة وستعمل بشكل صحيح فقط للسرعات التي تزيد عن
Someone wrote the following pseudocode to check that the speed meets this range.
Begin ValidSpeed ß False
If Speed >= 1 And Speed <= 30 Then
ValidSpeed ß True
EndIf
End
A.
B. Complete the following test data table to fully test this pseudocode.
Test Test
Expected results Actual results
No data
1 20 ValidSpeed = True ValidSpeed = True
2
3
4
5
C. What is the invalid response produced by the pseudocode given above
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
D. Rewrite the pseudocode given above. so that it works correctly.
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
Student ID: ______________
Q3: Answer the following for the question of capturing images/ recording sound
Q4: Compare between Waterfall, Incremental, and Agile. You must mention to the definition, how does
work, advantage, and disadvantage.
Student ID: ______________