You are on page 1of 1

Philadelphia University

QFO-AP-FI-QA07 Paper Examination :‫اسم النموذج‬


SE Department
‫ كلية تكنولوجيا المعلومات‬:‫الجهة المصدرة‬ MSc Programme
1 :)Revision( ‫رقم االصدار‬

05/11/2017: ‫التاريخ‬ Lecturer: Prof. Said Ghoul


‫ عمادة التطوير والجودة‬:‫الجهة المدققة‬
Coordinator: Prof. Said Ghoul
1 :‫عدد صفحات النموذج‬ Internal Examiner: Samer Hanna

Software Reengineering (721421) First Exam 2019 – 2020.1


November 21, 2019; Time: 1H

Information for Candidates


This examination paper contains 6 questions totaling 30 marks.
Advice to Candidates
You should attempt questions, such that the sum of their marks will be equal to 20.

Your exam is based on the following information.


Int C-Sum (int a; int b);
Void main () { C-Write (a + b)
{int Product = 1, Sum = 0, Counter; Return (a+b)
terminate_var = };
Integer.parseInt(d.readLine());
for(counter =1; counter <= Int C-Product (int a; int b);
terminate_var; Counter ++) { Return (a+b)};
{
Sum = C-Sum (Sum, Counter); Void C-write (int a);
Product = C-Product (Product, Counter); { System.out.println(“The Sum is :
} “+a);};
System.out.println(“The Product is : “ +

I. Basic Notions
Objectives: The aim of the questions in this part is to evaluate your required minimal knowledge and skills.

1. Identify in Figure 1 (if any): infraction to maintenance rules.  (5 m)


2. We want to change the name of the variable “terminate_var” by “Length” in the software Main, Figure 1. What
statements should be changed? And how? Your answer must be based on the Main Cross Reference Table. 
(5 m)
3. Give, for the software Figure 1, the Product space representations as in figures a, b, and c introduced in your course
Chapter 2.  (5 m)

II. Familiar Problems Solving


Objectives. The aim of the questions in this part is to evaluate that you have some basic knowledge of the key aspects of the
lecture material and can attempt to solve familiar problems.

4. Develop the Data Dependency Graph, for the main software, Figure 1, and find out what statements which might
introduce a run time error in the statement.  (5 m)
5. Complete the above graph with the Control Dependency Graph, for the main software, Figure 1, and find out what
statements which might introduce a run time error in the statement “System.out.println". 
(5 m)

III. Unfamiliar Problems Solving


Objectives. The aim of the questions in this part is to evaluate you can make progress towards the solution of unfamiliar
problems.

6. Develop an AND/OR graph for the above software Figure 1. Develop the Data Dependency Graph, for the main software,
Figure 1, and find out what statements which might introduce a run time error in the statement
“System.out.println(“The Product is : “ + product);”.
(5 m)

SE BSc degree course Software Reengineering 1st Exam 21/11/2011 1/1

You might also like