WEB
WEB
___________
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.___________
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. 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
Q.5 (a) Explain the Document Object Model with example. 03
(b) Write a PHP program to find whether entered year is leap year or not. 04
(c) Explain Session & Cookie in PHP with proper example. 07
OR
Q.5 (a) Explain Browser detection PHP with Example. 03
(b) How to write in PHP? Explain with example 04
(c) Explain database connectivity in PHP with example. 07
2
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
Q.4 (a) Explain the following XSL(XML stylesheet elements). 03
(i) value-of
(ii) for-each
(iii) sort
(b) What is XML? Write XML file to store personal information of student. 04
(c) Write a PHP program to upload image. And also check file size should 07
not greater than 30 KB.
OR
Q.4 (a) Explain the key components of XML. 03
(b) Explain XSL and XSLT with example. 04
(c) Write PHP code to read data from a text file and display it in browser. 07
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
Seat No.: ________ Enrolment No.___________
MARKS
Q.1 (a) List and explain the website design principles. 03
(b) Give full form of following acronym. 04
(1) DHTML (2) WAP (3) DOM (4) XSL
(c) Explain any three attributes of Table Tag in HTML. Write code to 07
display following table.
India
USA Spain
Australia
Switzerland Italy
Japan
China Myanmar South Korea
Q.2 (a) Write the Difference between POST and GET methods. 03
(b) What do you mean by meta tags? Show their meaning and use with 04
example.
(c) Define CSS. Enlist and explain methods of using CSS in web page. 07
Write HTML snipped with CSS to
1. Change background color of webpage
2. Set an image as a background
3. Manipulate a background image so it can be repeated over an area.
OR
(c) Write an HTML snippet with CSS for following effects 07
1. link: after visited red color and before visited blue color
2. table with odd rows pink and even rows blue color.
3. Text color-green, Text-indentation-2cm, Text case-uppercase
Q.3 (a) What are the advantages and disadvantages of client side scripting? 03
(b) Write a JavaScript to find first 10 prime numbers. 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
*************
2
Seat No.: ________ Enrolment No.___________
1
(c) What is HTML table? Explain table element rowspan and colspan with 07
necessary attributes. Write HTML code to print following table.
OR
(c) Explain the Document Object Model. Explain any two document object 07
with example.
Q.3 (a) What is the different between HTML and XHTML? 03
(b) Explain ordered and unordered list with example. 04
(c) What is client side scripting? Write an HTML and JavaScript program 07
which accepts N as input and print first N odd numbers.
OR
Q.3 (a) Write CSS code for the following: 03
i) set the background color for the hover and active link states to "yellow".
ii) Set the list style for unordered lists to "square".
iii) Set "paper.gif" as the background image of the page.
(b) What do you mean by “class” and “id” in CSS? Explain with Example. 04
(c) What is an HTML form tag? Discuss the different form attributes and 07
design a simple form to register for new user including user_name,
password, email, mobile number, gender and hobbies.
Q.4 (a) Explain how to use the same style sheets for different webpages. 03
(b) Explain following XSL (XML style sheet Element): 04
i) if
ii) for-each
(c) What is XML Schema and DTD? Explain CDATA and PCDATA with 07
example.
OR
Q.4 (a) Explain different types of Pop-box in javascript. 03
(b) What is XML? Write an XML file to store information of books. 04
(c) What is Event in DHTML? Show the use of events to change background 07
color with DHTML. If mouse button is pressed, background color should
be blue. If mouse button is released up, background color should be green.
Q.5 (a) Explain date() function in PHP. 03
(b) Differentiate session and cookies in PHP. 04
(c) Write HTML and PHP program to read and store student information such 07
as enrollment no, name, semester and percentage from database table.
Output the data to a webpage in tabular format.
OR
Q.5 (a) What PHP can do with header() command? 03
(b) Write a PHP script to print first N Fibonacci numbers. 04
(c) What are the different types of arrays in PHP? Explain with example to 07
process the arrays in PHP.
*************
2
Seat No.: ________ Enrolment No.___________
Q.1 (a) What is HTTP? How do browser and server communicate using HTTP 07
request and response? Explain with example.
(b) Difference between HTML and XHTML 07
Q.2 (a) Describe web design issues. How developer can design website effectively? 07
(b) What is positioning in CSS?. Explain it with example. 07
OR
(b) Explain pop-up boxes in javascript with example. 07
Q.3 (a) Write an XSL file to print list of products which has price < 300 Rs. for item.xml 07
file in tabular structure.
(b) What is metatag?Explain it with example. 07
OR
Q.3 (a) Design HTML form which include two fields username and password. Write 07
javascript code to show and hide password.
(b) What do you mean by class and id in CSS? Show the use of external CSS 07
with example.
Q.4 (a) Write a Javascript to check mobile number (mobile no. should start with 9 07
or 8).
(b) Write short note on Blogs and Web feeds 07
OR
Q.4 (a) Design a login form using HTML & Javascript with following validations on 07
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.
(b) What is DTD and XML Schema? Explain Xml Schema with example. 07
Q.5 (a) What are the key components of XML. 07
(b) Write php code to create database state, create table city(cityname, 07
area,population) and insert data from table.
OR
Q.5 (a) What is session and cookie in php? Create seesion and session parameter using 07
php code.
(b) Write php code to read from a file and display it in browser 07
*************
1
Seat No.: ________ Enrolment No.___________
Q.1 (a) What is navigation? Discuss the characteristics of effective navigation. Also 07
write code of html page to open a link in a new browser window.
(b) Explain following protocols. (Any Two) 07
1. HTTPS 2. FTPS 3. IRC
Q.2 (a) Explain different ways to write the CSS with example. 07
(b) Explain following html tags with proper example. (Any Three) 07
1. <input> 2. <span> 3. <ul> 4. <frameset>
OR
(b) Draw and explain architecture of web browser. 07
Q.3 (a) 1. Difference between DTD and XML Schema. 07
2. Difference between XSD Simple element and XSD Complex element.
(b) Explain types of array in PHP with example. 07
OR
Q.3 (a) Explain XML key component. 07
(b) Explain PHP and WAMP server in detail. 07
Q.4 (a) 1. Differentiate between Client Side Scripting and Server Side Scripting. 07
2. Enlist inbuilt object of JavaScript. Explain any one in brief.
(b) Write a JavaScript to find first 10 prime numbers. 07
OR
Q.4 (a) Explain event handling in JavaScript. 07
(b) Write a JavaScript to check input string is palindrome or not. 07
Q.5 (a) Write a web application code using PHP, HTML and MySql for Employees 07
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.
(b) Write a PHP script to print following pattern. 07
1
01
101
0101
10101
OR
Q.5 (a) Explain session and cookies in PHP with proper example. 07
(b) Write a PHP script that validate email address using Regular Expression when 07
user click on VALIDATE button.
*************