North Campus: Final Examination Spring Semester 2020

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

North Campus

Final Examination Spring Semester 2020

Subject Web Programming Language (Lab) Program BS-CS


Faculty Muhammad Talha Touqeer Khan Section Code 372001060

No.of Students 22 Maximum Marks 40


Start date & Time June 8th, 2020 Submission June 15th, 2020
at 12:00 AM Deadline at 02:00 PM

Students should meet their submission deadline as there is no re-take or re-attempt after the deadline.

IMPORTANT INSTRUCTIONS:

Read the Instructions carefully.

 Attempt all Questions on MS-Word. Font theme and size must be Time New Romans and 12
respectively. Use line spacing 1.5.
 For Diagram, you can use paper and share a clear visible snapshot in the same Answer Sheet.
 Arrange questions and their subsequent parts (in case question has many parts) in sequence.
 Make sure that your answers are not plagiarized or copied from any other sources. In case of
plagiarism, you will be entitled zero marks.
 Provide relevant, original and conceptual answers, as this exam aims to test your ability to
examine, explain, modify or develop concepts discussed during the course.
 Recheck your answers before the submission on VLE to correct any content or language related
errors.

Page 1 of 2

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

https://www.coursehero.com/file/63381688/WPL-Lab-Final-Paper-372001060docx/
Q1.) Perform Following tasks (5 Marks)
i) Using PHP Script write a code to : 2.5 Marks
(1) Make a textbox. (Get name of a user and print it).
(2) Using option 1 print the length of the string provided by user.
(3) Reverse and print the provided string.
(4) Print word count and letter count of the provided string.
ii) Using Jquery perform these tasks 2.5 Marks
(1) <div class=”hideDiv”>Click here to hide this line </div>, Write a code to hide this line when a user
click on the text.
(2) Create a div and a button.when user presses the button change the background css of that div using
jquery.

Q2.) Perform Following tasks (10 Marks)


i) Design a profile profile page in html and css (Use External Css) with following fields
(Name,Father name,Email,Contact,Education,Institute,Image,Created on)
ii) Write PHP Code to Insert following fields data into database with image.(Image name should be your
complete ID).
iii) Update profile as well

Q3.) Perform Following operations (5 Marks)


i) Using PHP Script Print date and time exactly like (May 31 2020 10:50:00 PM)
ii) Using PHP script create a .txt file and save a string data provided by user in the text field.
iii) Using JavaScript date script Print the following separately.
(1) Day
(2) Month
(3) Year
(4) Hour
(5) Minutes
(6) Seconds

Q4.) Perform this Scenario (20 Marks) –


A shopkeeper needs to track his daily sales for this he wants an online portal.
You need to provide the portal where:
1. The shopkeeper can add, update, and delete products.
2. He can add, delete sale of the day.
3. The shopkeeper can check the product availability and the stock count. He can search product by product
name or product id.
4. The shopkeeper wants to check the list of items that will be available later for the sale. Where user can also
add update delete the products
5. The users want to calculate the total amount of the day.

Page 2 of 2

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

https://www.coursehero.com/file/63381688/WPL-Lab-Final-Paper-372001060docx/
Powered by TCPDF (www.tcpdf.org)

You might also like