Professional Documents
Culture Documents
WP Pyq
WP Pyq
___________
Q.2 (a) What is the role of Cache and Cookies in the browser? 03
(b) Write a difference between following 04
a) HTML and XHTML
b) Client side scripting and Server side scripting
(c) What is HTML form tag? Discuss the different form attributes and design 07
a simple form to register student including name, roll no., semester, email,
mobile number, gender, hobbies, and feedback, and also create two
buttons submit and reset.
OR
(c) What is HTML table? Explain table element tr, td, th, rowspan and 07
colspan. Write HTML code to print following time table
Day Lecture Timings
10:30am-11:30am 11:30am-12:30am 1:00am-2:00am
Monday DS SE WP
Tuesday OS CN ML
Wednesday DS WP CN
Thursday OS SE ML
Friday Test day
Q.3 (a) What is CSS? What is the importance of CSS? List out the different ways 03
to write CSS.
(b) What do you mean by meta tags? Show how can following be achieved 04
with the help of metadata?
a) Stop the page from being listed
b) Set an expiration date
c) Stop the browser from caching a page
(c) Design a form using HTML and JavaScript that asks the users to enter his 07
date of birth and on clicking the calculate Button it calls the function that
calculates how many days are left in your birthday?
OR
Q.3 (a) What is meta tag? How it is useful by search engine? 03
(b) Explain pop-up boxes in Java-Script with example 04
(c) Explain event handling in JavaScript with proper example. 07
1
Q.4 (a) Explain DOM with example. 03
(b) List and explain various list tags in HTML with examples 04
(c) Write and explain rules for well-formed XML documents 07
OR
Q.4 (a) What are web services? Explain role of SOAP in Web services. 03
(b) Give a full form of following: 04
(1) DTD (2) WAP (3) WML (4) SOAP
(c) Develop XML file for book record and also write a DTD and XSL for it. 07
2
Seat No.: ________ Enrolment No.___________
1
OR
Q.5 (a) What is JQuery? What are the advantages of JQuery? 03
(b) State the difference between synchronous and asynchronous web 04
programming.
(c) Write HTML and PHP program to read and store book information 07
such as book id, title, author and price from database table. Output
the data to a webpage in tabular format.
*************
2
Seat No.: ________ Enrolment No.___________
1
(c) Develop a web application code using PHP, HTML and MySQL for 07
Students that stores student's enrolment no., name, semester, gender,
qualification, etc. in database. Create proper GUI including buttons that
run separate .php file for each database operation like insert, update,
delete etc.
*************
2
Seat No.: ________ Enrolment No.___________
MARKS
Q.3 (a) Write the difference between POST and GET methods. 03
(b) Discuss following properties with respect to CSS. 04
(1) Z-Index positioning (2) Relative positioning
(c) (i) Write a JavaScript that handles following mouse event. If the mouse is over 07
heading, change font color to “green” and if the mouse goes out of the heading
change it to “red”.
(ii) Put three buttons “OPEN NEW WINDOW”, ”CLOSE CHILD WINDOW”,
”CLOSE MAIN WINDOW” in main HTML page. On click of first button, execute
some JavaScript code that will open one child window. Clicking on second button,
child window will close and clicking on third button, main html page will close.
OR
Q.3 (a) Create a webpage containing one button. Clicking on this button, change the size 03
of the window & position.
(b) What is Pseudo-Elements in CSS? Explain through example. 04
(c) (i) Explain different pop-up boxes of Javascript with suitable examples. 07
(ii) Write HTML and JavaScript code to validate the email address using regular
expression.
1
Q.4 (a) What is the use of cookie in web programming? Write a code to set and display 03
cookies in PHP.
(b) Explain any two event handlers for text box & text area in Java Script with 04
Example.
(c) Write HTML and PHP program to read and store employee information such as 07
e_id, e_name, e_dept, e_exp and e_salary from employee table. Make a search
module to search a record from the database based on e_dept and display the result
in tabular format.
OR
Q.4 (a) Explain session in PHP with example. 03
(b) Explain any two event handlers for button in Java Script with Example. 04
(c) Write a web application code using PHP, HTML and MySql for Students that stores 07
EnrollmentNo, Name, College, Branch, Year etc. in database. Make separate PHP
file for each database operation like insert, update and delete operation.
*************
2
Seat No.: ________ Enrolment No.___________
Q.1 (a) Explain HTTP Request and Response with header details. Also explain 03
various http status codes.
(b) Enlist and explain the website design issues. 04
(c) Write HTML code for creating following table also explain table element 07
with its attributes.
C3
C1 C2
C3.1 C3.2
R1a 123 456 789
R1
<HTML> E=m*c2
1
(c) (i) Explain the Document Object Model. 07
(ii) Write an HTML and JavaScript program
that accepts N as input and print all prime numbers. (e.g. input N=10
than answer is 3,5,7)
OR
Q.3 (a) Explain different types of Pop-box in JavaScript. 03
(b) What do you mean by “class” and “id” in CSS? Explain with Example. 04
(c) Write HTML and JavaScript code to validate the username and password. 07
1. Both fields should not be blank.
2. Username contains only number.
3. Minimum password length 8.
4. Password contains at least one capital letter, special character and
number.
Q.4 (a) Give the difference between Client side Scripting and Server Side 03
Scripting.
(b) What is JSON? Explain different methods used to convert JavaScript to 04
JSON and vice versa through example.
(c) Write HTML and JavaScript code to validate the mobile number and email 07
address using regular expression.
OR
Q.4 (a) What is the use cookie in web programming? Write a code to set and 03
display cookies in PHP.
(b) Enlist and explain valid data types in JSON with syntax. 04
(c) Write a PHP script to insert user details (firstname, lastname, email) in 07
MySQL using prepared statement.
Q.5 (a) Explain the concept of classic web-application model. 03
(b) Explain index and associative arrays in PHP with example. 04
(c) Write AJAX code that creates a simple XMLHttpRequest to retrieve data 07
from a TXT file.
OR
Q.5 (a) Explain the concept of AJAX web-application model. 03
(b) Write a PHP script to print number of words in a given statement. 04
(c) (i) What is the use of jQuery? Explain through its syntax. 07
(ii) What is a web service? Write advantages and disadvantages of web
services.
(iii) What is an API service? Write advantages and disadvantages of API
services.
*************