WP Question Paper
WP Question Paper
___________
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
(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.___________
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
http://www.gujaratstudy.com
Seat No.: ________ Enrolment No.___________
MARKS
Q.1 (a) Give full form of following acronym. 03
1) HTTP 2) SOAP 3) DTD
(b) Explain the points which should be considered for planning a website. 04
January Febuary
March 1 2
3 4
1
http://www.gujaratstudy.com
http://www.gujaratstudy.com
2
http://www.gujaratstudy.com
http://www.gujaratstudy.com
Seat No.: ________ Enrolment No.___________
GUJARAT TECHNOLOGICAL UNIVERSITY
BE - SEMESTER–VI (NEW) - EXAMINATION – SUMMER 2018
Subject Code:2160708 Date:05/05/2018
Subject Name:Web Technology
Time:10:30 AM to 01:00 PM Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
MARKS
Q.1 (a) Explain the points which should be considered for planning a website 03
(b) Differentiate following. (1). HTML and XHTML 04
(2). GET and POST
(c) Write a form to collect details of a user such as name, address, radio 07
button to choose subject of book he wants to buy, Dropdown to choose
favorite author and comments for the last book he read.
Q.3 (a) Explain DOM structure of HTML. Write JavaScript code to know which 03
mouse button was clicked and number of elements in form.
(b) Write a JavaScript, that uses a loop, that searches a word in sentence 04
held in an array, returning the index of the word.
(c) Design a login form using HTML & JavaScript with following 07
validations on username and password fields.
1. Password length must be 6 to 12 characters
2. Username should not start with _, @ or number.
3. Both should not be blank.
OR
Q.3 (a) Differentiate between Client Side Scripting and Server Side Scripting. 03
(b) Why do you need validation? Write HTML and JavaScript code to 04
validate the email address using regular expression.
(c) Design a form using HTML and JavaScript that asks the user 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?
1
http://www.gujaratstudy.com
http://www.gujaratstudy.com
Q.5 (a) Explain RSS elements with example. What are the uses of RSS? 03
(b) Explain need and working of web services with diagram. 04
(c) Write a web application code using PHP, HTML and MySql for 07
Employees that stores employee’s id, name, department, designation, etc.
in database. Create proper GUI including buttons that run separate .php
file for each database operation like insert, update, delete etc.
OR
Q.5 (a) Explain the following. 03
1) Blog
2) Web feeds
(b) What is SOAP? Explain the role of SOAP in web services. 04
(c) Explain session and cookies in PHP with proper example. 07
*************
2
http://www.gujaratstudy.com
Seat No.: ________ Enrolment No.___________
GUJARAT TECHNOLOGICAL UNIVERSITY
BE - SEMESTER–VI(NEW) – EXAMINATION – SUMMER 2019
Subject Code:2160708 Date:18/05/2019
Subject Name:Web Technology
Time:10:30 AM TO 01:00 PM Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
MARKS
Q.1 (a) Give full name of followings: 03
1) DOM 2) TCP 3) RSS 4) ISP 5) XSD 6) HTTP
(b) What are frames? List out its advantages and disadvantages. 04
(c) Create HTML Page with JavaScript which takes Integer number as input 07
and tells whether the number is Prime or Not.
1
OR
Q.5 (a) Explain session in PHP with example. 03
(b) Explain the use of following arrays in PHP. 04
1) $_REQUEST [ ] 2) $_SERVER[ ]
(c) Write PHP program to print following pattern: 07
1
01
101
0101
10101
*************
2
Seat No.: ________ Enrolment No.___________
MARKS
Q.1 (a) Give full form of following acronym (i) DTD (ii) DOM (iii) XSL 03
(b) Explain following HTML tags with example (i) <select> (ii) <pre> 04
(c) What is HTTP? Explain HTTP Request and Response. 07
Q.2 (a) Discuss how display resolution affects web site design. 03
(b) XHTML is stricter language than HTML. Justify. 04
(c) What do you mean by Meta Tags? List and Explain any three meta 07
tags with example.
OR
(c) Write HTML and CSS code for the following: 07
(i) Set color of visited link to "green".
(ii) Set background color of paragraph to “yellow”
(iii) Set list style for unordered lists to "square".
(iv) Set "calendar.jpeg" as the repeated background image of
the page.
Q.3 (a) Differentiate client side scripting and server side scripting. 03
(b) How to display ordered list and unordered list using HTML? Give 04
Example.
(c) Design a login form with username and password option using HTML 07
and JavaScript. Perform following validations.
(i) Username field: minimum length 6 characters, it should not
have any special character or digits other than _
(ii) Password field: minimum length 8 characters and maximum
length 12 characters, it must contain at least one digit and at
least one special character from the set {*,#,_}
OR
Q.3 (a) State true or false and justify your answer : “Java Script is untyped 03
language”
(b) What is external style sheet? Give example. Give advantages of 04
external style sheet.
(c) Write a JavaScript that handles following events. 07
(i) If the mouse is over heading, change font color to “red” and if
the mouse goes out of the heading change it to “black”
(ii) If key pressed is ‘a’,’e’,’i’,’o’,’u’, the message should be
displayed on pop up box that “vowel is pressed”
(iii)If “Date and Time” button is clicked it displays current date
and time information.
Q.4 (a) What is XML? Give purpose and list its features. 03
1
(b) What is an associative array in PHP? Give Example. 04
(c) Using HTML and Java script design a web page that takes one integer 07
as input and display total N prime numbers starting from 1 in HTML
table on web page
OR
Q.4 (a) What is use of “break” and “continue” statements in PHP scripts? 03
(b) Explain following string functions with example in PHP: ucwords() 04
and strpos()
(c) Write XML file to store information about Music_Album having 07
fields of Title, Singer, Music_Composer, Actor, Language, Country
and Release_Year. Also write corresponding external DTD file.
*************
2
Seat No.: ________ Enrolment No.___________
MARKS
Q.1 (a) List and explain the website design principles. 03
(b) Differentiate between HTML and XHTML 04
(c) Explain any three attributes of <Table> Tag in HTML. Write 07
code to display following table.
1
Q.3 (a) Explain DOM structure of HTML. Write JavaScript code to 03
know which mouse button was clicked and number of elements
in form.
(b) Difference between XSD Simple element and XSD Complex 04
element.
(c) Design a login form using HTML & JavaScript with 07
following validations using Regular Expression on username
and password fields.
1. Username and Password should not be both blank
2. Username should not start with digit,_, @ or #
3. Password length must be 8 to 16 characters
Q.4 (a) Compare and contrast between HTML and XML 03
(b) Write a JavaScript program to validate an Email address. 04
(c) Write a JavaScript that handles following events. 07
(i) Gives the key code for the key pressed.
(ii) The script should give message that "vowel is
pressed" if vowel keys are pressed.
(iii) Background color should change to red after
releasing the pressed key.
OR
Q.4 (a) Explain following XSL elements: 03
i) value-of
ii) for-each
(b) Write an HTML and JavaScript program which accepts N as 04
input and print first N odd numbers.
(c) Show the use of events for the following with example. 07
(i) Trap the exiting of the user from a page.
(ii) Show the heading. When the mouse is over the
Heading the background color should be yellow and
when the mouse goes out of the heading, color should
change to black.
Q.5 (a) What PHP can do with header() function? 03
(b) Explain cookies in PHP with proper example. 04
(c) Write an application using PHP and HTML to upload a file 07
from the user on the web server.
OR
Q.5 (a) Explain require() and include() functions in PHP. 03
(b) Explain session in PHP with proper example. 04
(c) Write a web application code using PHP, HTML and MySql 07
for 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.___________
Q.2 (a) Give the difference between Client side Scripting and Server Side 03
Scripting.
(b) Explain with example frames in HTML. 04
(c) Explain different ways to write the CSS with example. 07
1
Q.7 (a) What do you mean by meta tags? Show their meaning and use with 03
example.
(b) Explain XML schema and DTD. 04
(c) What are cookies and sessions in PHP? How can you create, access 07
and delete a cookie in PHP with the help of an example.
Q.8 (a) How XHTML and HTML differ from each other? 03
(b) What is web service? Explain the role of SOAP in web services. 04
(c) Write a JavaScript to check input string is palindrome or not. 07
*************