0% found this document useful (0 votes)
22 views8 pages

Final Exam SE490

The document is an exam paper for the Software Development course at the University of Benghazi, consisting of multiple-choice questions, pseudocode tasks, and programming concepts. It covers topics such as programming methodologies, variable handling, event-driven programming, and system design principles. Additionally, it includes sections for students to provide detailed answers regarding programmer-defined functions and image/sound capturing techniques.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views8 pages

Final Exam SE490

The document is an exam paper for the Software Development course at the University of Benghazi, consisting of multiple-choice questions, pseudocode tasks, and programming concepts. It covers topics such as programming methodologies, variable handling, event-driven programming, and system design principles. Additionally, it includes sections for students to provide detailed answers regarding programmer-defined functions and image/sound capturing techniques.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Student Name: ____________________________________ Student ID: ______________

University of Benghazi Faculty of Information Technology


The final Exam of Software Development SE490 Group A Time: 2 hours

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 + "!")

A. Sequence B. Selection C. Iteration D. None


16. The followings are from the usability principles of GUI, except
‫ ماعدا‬، GUI ‫الموضح أدناه من مبادئ قابلية االستخدام للـ‬
A. User control B. Repairing systems.
C. Consistency and standards D. Help users recognize, diagnose and recover from errors

17. One of the characteristics of a good program is Portable; which means:


A. Some programs can last for many years.
B. Many developers feel this is the most important aspect of a good program.
C. The program can run on different computers.
D. This relates to resources (such as memory or CPU time.)
18. One of the characteristics of a good program is Readable; which means:
A. Some programs can last for many years.
B. Many developers feel this is the most important aspect of a good program.
C. The program can run on different computers.
D. This relates to resources (such as memory or CPU time.)
Student ID: ______________
19. Predict output of following program
int fun(int n)
begin
if (n = 4)
return n;
else
return 2*fun(n+1);
end
main_program()
begin
print fun(2)
end
A. 4 B. 8
C. 16 D. Runtime Error

20. What will be the value of s if n=127?


Read n
i=0,s=0
Function Sample(int n)
Begin
while(n>0)
r=n mod l0 10 ‫باقي قسمة على‬
p=8^i
s=s+p*r
i=i+1
n=n/10
End While
End Function
A. 27 B. 187
C. 87 D. 120
Student ID: ______________

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: For programmer-defined functions, in detail answer the following questions:


a. When will be used? ‫ماهي دواعي استخدامها‬
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
b. Explain the general syntax for declaration and calling these functions?
‫أشرح الصيغة العامة لإلعالن عن هذه الدوال واستدعاءها‬
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
c. How can variables be passed into the functions?‫كيف يمكن تمرير المتغيرات إلى الدوال الفرعية‬
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………

d. What do default parameters mean? when should they be used?


‫ ومتى تستخدم؟‬،‫ما المقصود بالمتغيرات االفتراضية‬
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
Student ID: ______________

Q3: Answer the following for the question of capturing images/ recording sound

In the homework you answered …………………………

The language used …………………….

A. The file system you used


…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
B. How did you manage saving the file?
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
C. How did you provide user choice to save the file?
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
Student ID: ______________

Q4: Compare between Waterfall, Incremental, and Agile. You must mention to the definition, how does
work, advantage, and disadvantage.
Student ID: ______________

The midterm questions

1. Explain Steps of program development?

2. Explain the technique of multithreading

You might also like