Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

Seat No.: ________ Enrolment No.

___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER– VI (NEW) EXAMINATION – WINTER 2021
Subject Code:3160713 Date:02/12/2021
Subject Name:Web Programming
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.
4. Simple and non-programmable scientific calculators are allowed.
MARKS
Q.1 (a) Differentiate between GET and POST method 03
(b) Write a HTML snippet to show each letter of a word RAINBOW with 04
new color, giving a rainbow effect.
(c) What is navigation? Discuss the characteristics of effective navigation. 07
Also write code of html page to open a link in a new browser window.

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

Q.5 (a) Differentiate synchronous and Asynchronous web programming 03


(b) Write a PHP script to print following pattern 04
1
10
101
0101
10101
(c) What is PHP? How can you connect to database in PHP? Show the simple 07
database operation using PHP with proper example.
OR
Q.5 (a) Explain Following XSL 03
i) Value-of
ii) Sort
(b) Write PHP script to make sum of first 10 even numbers. 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, delete, update etc.

2
Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–VI (NEW) EXAMINATION – SUMMER 2022
Subject Code:3160713 Date:08/06/2022
Subject Name:Web Programming
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.
4. Simple and non-programmable scientific calculators are allowed.
MARKS

Q.1 (a) Give full name of following acronym. 03


1) WWW 2) CSS 3) AJAX
(b) Explain different design issue at the time of designing an effective 04
website.
(c) What is HTTP? Explain how browser and server communicate 07
using HTTP request and response.

Q.2 (a) Explain ordered list and unordered list in HTML. 03


(b) Explain following html tags with proper example. 04
1. <img>
2. <frameset>
(c) What is rowspan and colspan used in HTML? Give examples. 07
OR
(c) What do you mean by “class” and “id” in CSS? Explain with 07
Example.

Q.3 (a) Explain HTML media tags. 03


(b) What is positioning in CSS? 04
(c) What is document object model? Explain any two objects with 07
example.
OR
Q.3 (a) What is Bootstrap? 03
(b) What is CSS? Explain the different types of CSS. 04
(c) What is JavaScript event handling? List the major events and show 07
use of at least one event by writing JavaScript code.

Q.4 (a) Explain callbacks in JavaScript. 03


(b) Write an HTML and JavaScript program which accepts N as input 04
and print N is odd or even number.
(c) What are the different types of arrays in PHP? Explain with 07
examples.
OR
Q.4 (a) Differentiate Client side scripting and Server side scripting. 03
(b) Explain file uploads in PHP. 04
(c) What is PHP Form processing? Write an HTML and PHP program 07
which accepts N as input and print N Fibonacci numbers as list.

Q.5 (a) Explain Regular Expression in PHP. 03


(b) How prepared Statement is executed in PHP? 04
(c) What is Cookie? How can we handle cookies in PHP? 07

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

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–VI(NEW) EXAMINATION – WINTER 2022
Subject Code:3160713 Date:16-12-2022
Subject Name:Web Programming
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.
4. Simple and non-programmable scientific calculators are allowed.
MARKS
Q.1 (a) List and explain the website design principles. 03
(b) Write a difference between following 04
a) HTML and XHTML
b) Client-side scripting and Server-side scripting
(c) What is navigation? Discuss the characteristics of effective navigation. 07
Also write code of html page to open a link in a new browser window.
a) HTML and XHTML
b) Client side scripting and Server side scripting
Q.2 (a) What are the key components of XML? 03
(b) Explain with example frames in HTML. 04
(c) Explain different ways to write the CSS with example. 07
OR
(c) Write an HTML snippet with CSS for following effects 07
1. link: after visited red color and before visited green color
2. table with even rows black and odd rows green color.
3. Text color-green, Text case-uppercase

Q.3 (a) State full form of following acronym. 03


(1) DOM (2) XSL (3) DTD (4) HTTP (5) PHP
(6) XML
(b) Explain meta tag? How it is useful by search engine? 04
(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
OR
Q.3 (a) What are web services? Explain role of SOAP in Web services. 03
(b) What is FTP? Demonstrate functionality of various FTP commands in 04
brief.
(c) Write a PHP script to open, close, read and write into a file. 07

Q.4 (a) Differentiate synchronous and Asynchronous web programming 03


(b) Explain the use of following arrays in PHP. 04
1) $_REQUEST [ ] 2) $_SERVER [ ]
(c) Write a Java Script to read data from XML File and print it in tabular 07
manner.
OR
Q.4 (a) List some advantages of JavaScript. 03
(b) Explain in brief about XSL and XSLT with example. 04

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.

Q.5 (a) Explain Following XSL 03


i) Value-of
ii) Sort
(b) Explain database connectivity in PHP with example. 04
(c) What is query string? How is it transmitted to the server with the GET 07
and POST methods?
OR
Q.5 (a) What PHP can do with header () function? 03
(b) Create an HTML and JavaScript program which accepts N as input and 04
print first N odd numbers.
(c) Explain PHP? How can you connect to database in PHP? Show the 07
simple database operation using PHP with proper example.

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

2
Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–VI (NEW) EXAMINATION – SUMMER 2023
Subject Code:3160713 Date:12-07-2023
Subject Name:Web Programming
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.
4. Simple and non-programmable scientific calculators are allowed.

MARKS

Q.1 (a) What is HTTP? Explain HTTP Request and Response. 03


(b) Explain different design issues at the time of designing an effective website. 04
(c) (i) Write any two meta tag syntax to implement different features in html. 07
(ii) Explain with example frames in HTML.

Q.2 (a) What is bootstrap? What Bootstrap package contains? 03


(b) Explain with example: Ordered list and Unordered list. 04
(c) (i) Explain following with example: <pre> tag, <sup> tag, character encoding in 07
HTML
(ii) Explain HTML5 form validation attributes using example.
OR
(c) Explain HTML form attributes with syntax. Make HTML form to collect details of 07
a book in library such as BookTitle (textbox), AuthorName (textbox), Publication
(selectionbox), Domain (checkbox) and comments (textarea) in tabular format.

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.

Q.5 (a) Differentiate between synchronous and asynchronous web programming. 03


(b) Write a PHP Script to display content of .txt file and display total number of words. 04
(c) Write AJAX code to demonstrate the use AJAX request-response mechanism. 07
OR
Q.5 (a) What are APIs? How to use them? 03
(b) Explain the concept of state management using query string in PHP. 04
(c) (i) Explain jQuery load(), get() and post() methods with its syntax. 07
(ii) What is web service? How we can create web service?

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

2
Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–VI (NEW) EXAMINATION – WINTER 2023
Subject Code:3160713 Date:11-12-2023
Subject Name:Web Programming
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.
4. Simple and non-programmable scientific calculators are allowed.
MARKS

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

Q.2 (a) What is Metadata? How we can include Metadata is included in a 03


document? Write meta tag syntax to implement following features in html:
(i) Set an expiration date
(ii) Stop the browser from caching a page.
(b) Write a code for the given output using list in HTML. 04
1. DoTNet
2. Cyber Security
3. WP
I. CSS
II. HTML
• Table
• frame
III. JS
10. IoT
(c) (i) Explain frame and frameset with example. 07
(ii) Why we use bootstrap? Show a basic structure of bootstrap grid.
OR
(c) Explain HTML form attributes with syntax. Write a program to create 07
sports registration page in HTML that contains EnrollmentNo(textbox),
Secretkey(password), address(textarea), College(selectionbox),
Branch(radiobutton), hobby(checkbox).
Q.3 (a) What are the different ways to use JavaScript in html document? 03
(b) What is the use wildcard selector in CSS? Discuss wildcard selectors with 04
example.

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.

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

You might also like