Download GTU (Gujarat Technological University Ahmedabad) B.Tech/BE (Bachelor of Technology/ Bachelor of Engineering) 2020 Summer 6th Sem 2160708 Web Technology Previous Question Paper
Enrolment No.___________
GUJARAT TECHNOLOGICAL UNIVERSITY
BE - SEMESTER? VI EXAMINATION ? SUMMER 2020
Subject Code: 2160708 Date:29/10/2020
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) 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.
Q.2 (a) Give full form of following acronym.
03
(1) DOM (2) XSL (3) DTD (4) HTTP (5) PHP
(6) XML
(b) What is CSS? Explain different types of CSS.
04
(c) What is Metadata? Explain with example how Metadata is
07
included in a 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 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 blue and even rows green color.
3. Text color-green, Text case-uppercase
Q.3 (a) Differentiate between Client Side Scripting and Server Side
03
Scripting.
(b) Difference between DTD and XML Schema.
04
(c) Write JavaScript code to print following pattern.
07
1
0 1
1 0 1
0 1 0 1
1 0 1 0 1
OR
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
This post was last modified on 04 March 2021