You are on page 1of 4

Final-Term Exam (Take-Home) Spring – 2021

FACULTY OF ENGINEERING, SCIENCE AND TECHNOLOGYE

Subject: Web Programming Languages Submission Day: Monday


Instructor: Israr Ali Submission Date: May 31st, 2021
Program: BS(CS) Max. Marks: 40

Please follow the instructions carefully:

1. Add your solutions in a Folder, Convert it into. Zip Format and then upload the file
before the due date and time on Blackboard.
2. Write your name and registration ID on your Folder Name.
3. Answer scripts can only be uploaded on Blackboard any time before its deadline.
4. To avoid any unforeseen problems, you are advised NOT to wait for the last hour to upload
your answer script.
5. Submission of answer copy(ies) will be considered acceptable through Blackboard only.
Therefore, do not submit your document through email or any other medium.

6. Follow the requirements of the word limit and the marking criteria while writing your
answers.
7. Provide relevant, original and conceptual answers, as this exam aims to test your ability to
examine, explain, modify or develop concepts discussed in class.
8. Do not copy answers from the internet or other sources. The plagiarism of your answers may
be checked through Turnitin.
9. Recheck your answers before the submission on BlackBoard to correct any content or
language related errors.
10. Double check your word file before uploading it on BlackBoard to ensure that you have
uploaded the correct file with your answers.

This study source was downloaded by 100000840171519 from CourseHero.com on 01-30-2022 06:46:08 GMT -06:00

https://www.coursehero.com/file/119494185/4-5882155512295852930pdf/
Question No. 1 [10 Marks]

A Software house wants to develop a website for their daily routine business. To get Comments
and Views from their website visitors they want to have a page YourComments. The
database developer has given you the table structure of a table dbo.UserComments as given
below.

UserComments [ Id, Name, Email, Comment, DateTime]

Write down the YourComments.aspx markup code by using HTML5 tags to 2 marks
match the figure given above. Use appropriate bootstrap classes to make it
presentable.

Write the C# code using Entity Framework to insert a new Row in this table 4 marks
UserFeedBack.

This study source was downloaded by 100000840171519 from CourseHero.com on 01-30-2022 06:46:08 GMT -06:00

https://www.coursehero.com/file/119494185/4-5882155512295852930pdf/
Write the C# Code to select all Rows and Display it on the <asp:GridView> 4 marks

Please upload YourComments.aspx and YourComments.aspx.cs only in Blackboard


as your solution.

Question No. 2 [3+3+3+3+3=15 Marks]


Create a New MVC Web application. Create a New Database in App_Data Folder WPLTASKDB. Create
Four Table in your Database [3 marks]

Patient -> Patient ID (PK), Name, ClassID(FK), WardID(FK)


Doctor -> Doctor ID (PK), Doctor Name, SpecializationID (FK), Qualification
Ward -> WardID (PK), WardName, Location
Specialization-> SpecializationID(PK), SpecializationName
Create Four Controller in your Website,
1. PatientController your Application should be able to Add, Update, Delete and View All Patients
[3 marks],
2. DoctorController your Application should be able to Add, Update, Delete and View All Doctors
[3 marks],
3. WardController your Application should be able to Add, Update, Delete and View All Wards
[3 marks],
4. SpecializationController your Application should be able to Add, Update, Delete and View All
Specialization. [3 marks]

The Home Page should contain all links of these Views.

Please upload Model , Controller and Views folder only in Blackboard as your solution.

Question No. 3 [3+3+3+3+3 = 15 Marks]

Please Copy your MVC Application Created in Question 2 and Paste it in anther Folder named Question 3.

1. Allow User to Register Themselves by using Asp.net Identity. [3 marks]


2. Allow Users to Login by using Asp.net Identity. [3 marks]
3. Create Two Roles 1. Teacher 2. Student in your application using asp.net identity. [3 marks]
4. Doctor Role should not be able to access Patient Controller and Patient Role Should not be able to
access doctor Controller. [3 marks]
5. Allow users to login via their facebook, twitter, linked in, gmail and Microsoft account. [3 marks]

Please upload Model , Controller and Views folder only in Blackboard as your solution.

This study source was downloaded by 100000840171519 from CourseHero.com on 01-30-2022 06:46:08 GMT -06:00

https://www.coursehero.com/file/119494185/4-5882155512295852930pdf/
Note:
1. Do not upload Solution in Word or Pdf File.
2. Please upload only the files required as mentioned in question paper.
3. Create Separate Folder for each question and add all these Folders in On Folder.
4. Upload Only One Final Folder as your Solution in .zip format on black board.

This study source was downloaded by 100000840171519 from CourseHero.com on 01-30-2022 06:46:08 GMT -06:00

https://www.coursehero.com/file/119494185/4-5882155512295852930pdf/
Powered by TCPDF (www.tcpdf.org)

You might also like