Gujarat Technological UniversitySummer 2026 Examination

GTU 3151606 Web Development Summer 2026 Paper Solution & PDF

B.E. · IT Engineering · Semester 5 · Subject Code: 3151606
Download Official GTU PDF
Share:
Total Marks70 MarksExternal theory exam
Passing Marks23 Marks33% minimum cutoff
Exam Duration2.5 Hours2:30 PM – 5:00 PM
Paper Structure5 QuestionsWith internal OR choices
Jump toQ1Q2Q3Q4Q5

Question 1

14 MarksMedium
(a)
State what CORS stands for and its basic purpose.
3 Marks
(b)
Explain different attributes of meta tag with example.
4 Marks
(c)
Write a PHP code using session management to track shopping cart items.
7 Marks

Question 2

14 MarksMedium
(a)

Use CSS animations to an HTML element so that a button changes color and scales up slightly when hovered over. Write the code.

3 Marks
(b)
Write code to destroy the session when user press the logout button.
4 Marks
(c)
Write an HTML Code to generate following table structure.

A B C D E F G H I J K L M N O P Q R S T U V W X Y X AA AB AC AD

7 Marks
OR OPTION
(c)

Write an HTML code to create a Registration form for the student at the time of college admission. Apply following validation using the HTML tags and attributes only.

1)All fields are compulsory.
2)Mobile number must be 10 digit number.
3)Passing year must not be less than 2 years from current year. (i.e. not less than 2023). Disable the future date as well.
4)Date of Birth range must be between 01- 01-2005 to 31-12-2024.
5)Email Validation, Pin Code Validation.
7 Marks

Question 3

14 MarksMedium
(a)

Describe the role of callbacks in JavaScript functions, illustrating with a simple code snippet.

3 Marks
(b)

What is event handling in Java? Write a Java Script code to change the size of image if mouse cursor is over the image and reduce back to normal when cursor is out.

4 Marks
(c)

Write JavaScript code to parse a JSON file containing student data and display it in an HTML table.

7 Marks
OR OPTION
(a)

Write a JavaScript code snippet to create an account object containing three sub- objects: Saving, Loan, and Current Account . Assign appropriate properties to each sub-object, and display all properties using a for in loop.

3 Marks
(b)

Simulate an asynchronous operation using setTimeout, and use a callback to display a message after 2 seconds.

4 Marks
(c)

Write a JavaScript program that reads user account data stored in a JSON file. Design an HTML form that allows the user to enter their Username and Password.Using JavaScript, validate the entered credentials against the stored user data in the JSON file.Display an appropriate message such as “Login Successful” or “Invalid Username or Password” based on the validation result.

7 Marks

Question 4

14 MarksMedium
(a)
What is associative array in PHP? Explain with example.
3 Marks
(b)
What is DOM in Java Script? Explain and two DOM manipulation function.
4 Marks
(c)
Write PHP code to perform CRUD operation on Student Database.
7 Marks
OR OPTION
(a)
Differentiate between session and cookies.
3 Marks
(b)

Write Java Script code to enter 10 numbers, comma separated (e.g. 2,4,5,19,3..) through prompt box. Find out Maximum number, minimum number and average of all 10 numbers and display through an alert box.

4 Marks
(c)

Write a PHP script to upload an image, check its type (e.g., JPEG/PNG), and move it to a directory (Directory name - /usr/student/col1/). Apply size limits (under 2MB) and rename the file uniquely.

7 Marks

Question 5

14 MarksMedium
(a)
Explain Hidden Fields and Query String.
3 Marks
(b)

Create a webpage with a list of 5 items. Use jQuery to change the background color of a list item when clicked.

4 Marks
(c)
What is CSS Box Model? Write CSS code to implement following output.
1)Make an ordered list with red border, padding and font size 20.
2)Use flower.jpg as Background and repeat it.
3)Change background color of text box when focused.
4)Create a fixed position link at bottom with scrolling page. Give name of the link “#top”.
7 Marks
OR OPTION
(a)
Explain GET,_GET,_POST and $_REQUEST in PHP.
3 Marks
(b)
Create an Image Slider using Jquery. There should be at least 5 images.
4 Marks
(c)

Create a PHP REST API to perform HTTP GET and DELETE method. Write postman URL to consume that API. Also write necessary database connection code.

7 Marks
College Exam Groups

Studying for Web Development?

Circulate this solved paper with KaTeX formulas and 1-click AI step solvers to your batchmates on WhatsApp or Telegram.

About this Examination Paper & Attribution

Official Gujarat Technological University (GTU) examination paper and step-by-step solutions for Web Development (Summer 2026, B.E. · IT Engineering, Sem 5). Features complete 70-mark regular & remedial examination pattern, official marking distribution across all 5 questions, and direct 1-click official PDF download.

Transcribed for student exam preparation from Gujarat Technological University official examination archives. Questions, syllabus guidelines, and curriculum marking schemes remain the intellectual property of Gujarat Technological University.

Download PDF