0% found this document useful (0 votes)
49 views2 pages

WebEngineeringTheory - Question Paper Format (Final Term Spring-2021)

The document provides details of the final term exam for the Web Engineering theory course including: 1) The exam contains 3 questions worth 25 marks total testing JavaScript functions, PHP/MySQL database development, and HTML/CSS/JavaScript skills. 2) Question 1 (8 marks) involves creating JavaScript functions to calculate a circle area, display results, and add interactivity with buttons and popups. 3) Question 2 (10 marks) tests creating a database for an online shopping site using tables, relationships, foreign keys and queries. 4) Question 3 (7 marks) covers HTML/CSS formatting, JavaScript functions, and using tags to display text on the page.

Uploaded by

Maaz Chauhann
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)
49 views2 pages

WebEngineeringTheory - Question Paper Format (Final Term Spring-2021)

The document provides details of the final term exam for the Web Engineering theory course including: 1) The exam contains 3 questions worth 25 marks total testing JavaScript functions, PHP/MySQL database development, and HTML/CSS/JavaScript skills. 2) Question 1 (8 marks) involves creating JavaScript functions to calculate a circle area, display results, and add interactivity with buttons and popups. 3) Question 2 (10 marks) tests creating a database for an online shopping site using tables, relationships, foreign keys and queries. 4) Question 3 (7 marks) covers HTML/CSS formatting, JavaScript functions, and using tags to display text on the page.

Uploaded by

Maaz Chauhann
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/ 2

Final Term Exams Spring- 2021

Program: BSCS Semester: 6

Course Title: Web Engineering (Theory) Section: A

Instructor Name: Ms. Zobia Khan Max Marks: 25

Time Allowed: 3 hours Date:03-7-21

Email Id: [email protected]

➢ Be brief and to the point.

Question # 1: Marks [8]


Given Code:
<body>
<h2>JavaScript Functions</h2>
<p>Function results should display here:</p>
</body>
Use the above code of jQuery, complete the following:
a) Create a javascript function which calculates area of circle. 1
b) Display the results of above function in html code(given above) using id. 2
c) Then create a button which on click display text message : “My name is ---- and My
roll num is ----" on a pop up window box. 1
d) Now add another p tag and hide only the first p tag used. 2
e) Create a jquery function which can slowly hide the p tag by clicking the h2 tag and
generates a pop up window message: “the p tag is successfully hidden by StudentName” 2

Question # 2: Marks[10]
Suppose a client, wants you to develop an online shopping website. You need to create a
database for this purpose using phpMyAdmin(may use another) .
1. Create atleast 4 tables with proper primary keys(should use autoincremented in one
table) 1
2. Show the relationships between tables. 1
3. Create foreign keys according to the relationships (atleadt 2 keys) 2
4. Write the following queries for the database
4.1.Write code to connect to the server to the database. 1
4.2.User wants to view items according to the category he/she selected 2
4.3. The sold items should be updated as sold and the other user can only view the item
but not the price. 3
Note: Also display a relevant message regarding the success or failure of the queries.
Question # 3: Marks[7]
OUTPUT

a) Write HTML and CSS code for the above output. 3


a.1) For the first line of the output, you should use span tag and CSS. 1

b) Modify the code and write the following code using a tag that preserve the format. 1
a=5
b=8
print (a*b)

c) Write your name in the middle of the page by using only one tag for this purpose. 1
d) Create a javascript function on anchor tag to print a pop up window message.
(Write any text for the message) 1

You might also like