PhiladelphiaUniversity

Lecturer:Dr. Samer Hanna

Internal Examiner: Dr. Mohammad Taye

Coordinator: Dr. Samer Hanna

Software Engineering of Web Applications

(0721422) Section1 First Exam First Semester of 2017/2018

Date: Thursday, Nov.16th, 2017------Time: 50 min.

Information for Candidates

  1. This examination paper contains 4questions totaling 20marks.
  2. The marks for parts of questions are shown in round brackets.

Advice to Candidates

1. You should attempt all questions.

Basic Notions

Objectives. The aim of the questions in this part is to evaluate that you have the required minimal knowledge and skills. Answers in the pass category represent the minimum acceptable standard.

Q1) (4 marks)

1)Can HTML specify the datatype of its inputs? Give two examples. (2 marks)

2)Name two differences between JavaScript and C#? (2 marks)

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.

Q2) (6 marks)

Suppose that you are asked to build a Web formthat can be used to insert the data for students of the Web Engineering course (See Figure below).

1) Write the HTML code for this form (4 marks)

2) Write the needed CSS code to give width and height to the form and display it in the middle of a Web page. (2 marks)

Q3) (6 marks)

In Q2;

1)Write a JavaScript function that can print a welcome message to the student depending on his inserted name such as "Welcome Ali" if the inserted student name is Ali. (1 mark)

2)Repeat the same job of the function in branch 1 using C#. (The welcome message must be shown in a label) (1 mark)

3)Write the needed JavaScript function that can be used to validate that the inserted mark for the first exam in the form in Q2 is between 0 and 20 (print an error message otherwise). (2 marks)

4)Repeat the same validation in branch 3 using C#. (The error message must also be shown in a label)(2 marks)

Unfamiliar Problems Solving

Objectives. The aim of the questions in this part is to evaluate that you can solve familiar problems with ease and can make progress towards the solution of unfamiliar problems, and can set out reasoning and explanation in a clear and coherent manner

Q4) (4 marks)

In Q2;

1)Write the needed server side C# code to add 2 marks to the first exam mark inserted by the user if the student belongs to the SE department and 3 marks if the student belongs to the MIS department, 1 mark for the CS department.(2 marks)

2)Repeat branch 1 using JavaScript. (2 marks)

Good Luck

1