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

Wp Summer 2022 Merged

The document outlines the examination structure for the Web Programming course at Gujarat Technological University for the years 2022, 2023, and 2024. It includes various questions covering topics such as HTML, CSS, JavaScript, PHP, and AJAX, along with instructions for students to attempt all questions and make necessary assumptions. Each question is allocated specific marks, and the document emphasizes the importance of understanding web development concepts and programming techniques.

Uploaded by

mambaraval
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views

Wp Summer 2022 Merged

The document outlines the examination structure for the Web Programming course at Gujarat Technological University for the years 2022, 2023, and 2024. It includes various questions covering topics such as HTML, CSS, JavaScript, PHP, and AJAX, along with instructions for students to attempt all questions and make necessary assumptions. Each question is allocated specific marks, and the document emphasizes the importance of understanding web development concepts and programming techniques.

Uploaded by

mambaraval
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

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 – 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
Enrolment No./Seat No_____________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–VI (NEW) EXAMINATION – SUMMER 2024
Subject Code:3160713 Date:22-05-2024
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) Define following: 03
1. URL 2. HTTP 3. Web Server
(b) Write differences between client-side scripting and server-side 04
scripting.
(c) What is cascading style sheet (CSS)? Compare inline, 07
embedded and external style sheet with example.

Q.2 (a) Differentiate GET and POST methods. 03


(b) Explain different design issues at the time of designing an 04
effective website.
(c) Explain “class” and “id” in CSS with suitable example. 07
OR
(c) Explain usefulness of rowspan and colspan attributes in HTML 07
Table. Also, Write HTML code to print the following table.

Q.3 (a) Write a short note on error handling in JavaScript. 03


(b) Discuss callback in JavaScript with the help of appropriate 04
example.
(c) Design Student registration form including rollno, name, 07
password and mobile number using HTML. Also write
JavaScript to validate following:
• All Fields are compulsory.
• Password length should be 6 to 8 characters long.
• Mobile number must be of 10 digits only.
OR
Q.3 (a) Explain different types of popup boxes in JavaScript. 03
(b) Write a short note on DOM (Document Object Model) in 04
JavaScript.

1
(c) Write a java script to find whether entered number by user is 07
prime or not.

Q.4 (a) Explain ordered and unordered list in HTML with example. 03
(b) Explain types of loops in PHP. 04
(c) What are different types of arrays in PHP? Explain with 07
example to process the arrays in PHP.
OR
Q.4 (a) Write a note on Web services. 03
(b) Write a PHP code to demonstrate a calculator using switch case. 04
(c) Briefly discuss sessions and cookies in PHP using appropriate 07
example.

Q.5 (a) Write a short note on file handling in PHP. 03


(b) Write a note on AJAX. 04
(c) Design Employee form with Employee ID, Employee Name, 07
Designation details with submit button using HTML. On
clicking submit button, entered Employee details should be
fetch and display on another webpage “EmpInfo.php“.
OR
Q.5 (a) Briefly discuss JSON. 03
(b) Write the differences between synchronous and asynchronous 04
web programming.
(c) Discuss steps to connect database using PHP. Also, discuss any 07
two database operations using proper example.
****************

You might also like