0% found this document useful (0 votes)
612 views

WEB

This document contains a past exam for the subject Web Technology. The exam contains 5 questions assessing student knowledge of topics related to web technologies including HTML, CSS, JavaScript, XML, and PHP. The exam contains multiple choice, short answer, and coding questions. It provides students with 70 total marks across the various questions testing their understanding of key concepts and ability to write code related to web technologies.

Uploaded by

Cunningham
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
612 views

WEB

This document contains a past exam for the subject Web Technology. The exam contains 5 questions assessing student knowledge of topics related to web technologies including HTML, CSS, JavaScript, XML, and PHP. The exam contains multiple choice, short answer, and coding questions. It provides students with 70 total marks across the various questions testing their understanding of key concepts and ability to write code related to web technologies.

Uploaded by

Cunningham
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Seat No.: ________ Enrolment No.

___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER– VI (New) EXAMINATION – WINTER 2019
Subject Code: 2160708 Date: 11/12/2019
Subject Name: Web Technology
Time: 02:30 PM TO 05: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 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.

Q.5 (a) What is use of $_REQUEST[] array in PHP? 03


(b) Explain XSL elements value-of and for-each with example. 04
(c) Write PHP script to read and write a text file. 07
OR
Q.5 (a) What is difference between identical and equal to operator in PHP? 03
Give example.
(b) What is cookie in PHP? Explain cookies handling in PHP. 04
(c) Write a PHP script to store user registration details (user-name, 07
address, date of birth, age, pan card, gender) with MySQL database.

*************

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.

Q.2 (a) XHTML is stricter language than HTML. Justify. 03


(b) Write HTML code to display following irregular table. 04
B C D
E
A F G I
K H L M N
J
O P Q
(c) Describe the web design issues. 07
OR
(c) What do you mean by event in JavaScript? Give at least two examples 07
of events with their handling.
Q.3 (a) What is meta tag? How it is useful by search engine? 03
(b) What is Cascading Style Sheet? Compare inline, embedded and external 04
style sheet with example.
(c) Explain the key components of the XML with suitable examples. 07
OR
Q.3 (a) Define the following with reference to XSL: 03
1) value-of 2) for-each 3) sort
(b) List and explain various list tags in HTML with example. 04
(c) Write and explain rules for well formed XML document. 07
Q.4 (a) List features of Web 2.0. 03
(b) Briefly explain following: 1) Web server 2) Blogs 04
(c) Develop XML File for book record and also write a DTD and XSL for it. 07
OR
Q.4 (a) What is FTP? Mention functionality of various FTP commands in brief. 03
(b) Briefly explain following: 1) SOAP 2) Web Feeds 04
(c) Write a Java Script to read data from XML File and print it in tabular 07
manner.
Q.5 (a) Explain cookie in PHP with example. 03
(b) Explain index and associative arrays in PHP. 04
(c) Write a PHP program to store user registration (user-name, address, Date 07
of Birth, age, pan card, gender) with mysql database.

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.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–VI (NEW) EXAMINATION – WINTER 2018
Subject Code:2160708 Date:30/11/2018
Subject Name:Web Technology
Time: 02:30 PM TO 05: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 form of following acronym. 03
1) HTTP 2) SOAP 3) DTD
(b) Explain the points which should be considered for planning a website. 04

(c) Write HTML code for creating following table. 07

January Febuary
March 1 2
3 4

Q.2 (a) Explain Ordered list with example. 03


(b) Differentiate between 04
1) HTML vs XHTML
2) GET vs POST
(c) Design Login Page HTML. Page must have fields in page Username, 07
Password, Remember Me and Login Button.
OR
(c) Design Registration page in HTML. 07
Q.3 (a) Explain Meta Tag. 03
(b) Differentiate between “ID” and “Class” using suitable example. 04
(c) List and Explain types of CSS with Example. 07
OR
Q.3 (a) Draw and Explain Web Browser Architecture. 03
(b) Explain pop-up boxes in JavaScript with example. 04
(c) Write Java Script to validate Mobile Number. 07
1) Entered value must be numeric
2) 10 digit length
Q.4 (a) Write the difference between Client Side Scripting and Server Side Scripting. 03
(b) Explain any two types of events in Java Script with Example. 04
(c) Write Java Script for find first 10 prime numbers. 07
OR
Q.4 (a) Explain DTD (Document Type Definition). 03
(b) Explain following XSL Elements with suitable example. 04
1) value-of
2) sort
(c) Write Well formed XML file to store student information. 07

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.2 (a) Give full form of following acronym. 03


(1) XSL (2) WML (3) SOAP (4) DTD
(b) What is CSS? Explain the different types of CSS. 04
(c) What is Metadata? Explain with example how Metadata is included in a 07
document? Also show how can following be achieved with the help of
Metadata?
(i) Stop the page from being listed.
(ii) Set an expiration date
(iii) Stop the browser from caching a page.
(iv) Give a context for date so that it can take format DD-MM-YYYY
OR
(c) Write HTML and CSS code for the following: 07
(i) set the background color for the 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.

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.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–VI (NEW) EXAMINATION – WINTER 2017
Subject Code: 2160708 Date:16/11/2017
Subject Name:Web Technology
Time:02:30 PM TO 05:00PM 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) 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

Q.3 (a) Explain the Document Object Model with example 03


1
(b) Write JavaScript code to know which mouse button was clicked, 04
number of elements in form, and write hello world on the document.
(c) Show the use of JavaScript events for the following 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 red and when the mouse goes out of the
heading, color should change to blue.
Q.4 (a) Explain XSL and XSLT. 03
(b) Explain the following. 04
(1) Web feeds (2) Blogs
(c) Write a PHP program to find whether entered year is leap year or not. 07
OR
Q.4 (a) Compare and contrast between HTML and XML. 03
(b) What is XML? Write XML file to store personal information of student. 04
(c) Write a PHP script to print following pattern. 07
1
ab
234
cdef
56789
Q.5 (a) What is RSS? Explain RSS elements. 03
(b) Explain Cookie in PHP with proper example. 04
(c) Write a PHP script to validate email address using Regular Expression 07
when user click on SUBMIT button.
OR
Q.5 (a) What is web service? Explain role of SOAP in Web services. 03
(b) Explain Session in PHP with proper 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 2017
Subject Code: 2160708 Date: 05/05/2017
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 Short Questions 14


1 Write full form of HTTP.
2 What is navigation in designing a website?
3 What is the correct HTML for adding a background color?
a). <body color="yellow">
b). <body bgcolor="yellow">
c). <background>yellow</background>
d). <body background="yellow">
4 Write a correct HTML tag for making hyperlink.
5 Which HTML tag is used to define an internal style sheet?
6 Which CSS property is used to change the text color of an element?
7 How do you put a message in the browser's status bar?
a). window.status("put your message here")
b). window.status = "put your message here"
c). statusbar = "put your message here"
8 What is the correct syntax for referring to an external script called
"xxx.js"?
a). <script type="text/javascript" href="xxx.js">
b). <script type="text/javascript" src="xxx.js">
c). <script type="text/javascript" name="xxx.js">
9 Write full form of XSL.
10 State True/False: XML preserves white spaces.
11 All variables in PHP start with which symbol?
a). $ b). ! c). &
12 Write full form of PHP.
13 A PHP _____ variable is used to store the information about, or change
settings for a user session.
a). session b). $SERVER c). Section
14 What is the correct way to connect to a MySQL database?
Q.2 (a) Differentiate between GET and POST method. 03
(b) Explain different design issues at the time of designing an effective 04
website.

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.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE – SEMESTER – VI (NEW).EXAMINATION – WINTER 2016

Subject Code: 2160708 Date: 26/10/2016


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.

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.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER– VI EXAMINATION – SUMMER 2016
Subject Code: 2160708 Date:13/05/2016
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.

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.

*************

You might also like