Question 1
Explain any two attributes and any two methods available for the tag in HTML.
Explain text(), html(), val(), attr() methods related to DOM manipulation using JQuery with example.
Explain any two attributes and any two methods available for the tag in HTML.
Explain text(), html(), val(), attr() methods related to DOM manipulation using JQuery with example.
Discuss the difference between synchronous and asynchronous web programming approaches (Provide at-least three points).
Describe how the CSS position property works with the values static, fixed, relative, and sticky.
Create below table using HTML Student ID Name Subject Grade 101 ABC Maths A Science B English A 102 PQR Maths B Science A English A 103 XYZ Maths A Science A English B
Design an HTML form to capture user information, including Name, Mobile Number, Email Address, Gender, Country, and Date of Birth. Ensure to assign suitable input types for each field.
Discuss various JavaScript pop-up boxes, providing appropriate examples for each.
Design a webpage that features a form asking users to input a name. Upon clicking the submit button, the entered name should be dynamically added to an ordered list displayed on the same webpage. The list should expand dynamically as users continue to provide input.
Differentiate between Client-side scripting and Server-side scripting (Provide at least four points).
Write a JavaScript program that dynamically creates a button element and appends it to an existing div element on the webpage. When clicked, the button should display an alert with a custom message.
Discuss the difference between == and === operators in JavaScript with example.
Write a JavaScript program that prompts the user to enter a URL and then opens the provided URL in a new browser window.
Explain the process of validating the file type for a file uploaded by user in PHP, ensuring that it is a .pdf file. Include an example code snippet demonstrating how to implement this validation.
Develop a webpage that displays a countdown timer starting from 60 seconds and updates every second. Use JavaScript to implement this functionality, and ensure the timer stops when it reaches zero. Additionally, display a message when the timer finishes, indicating the end of the countdown.
Provide examples including each operation.
Create a PHP script that reads and displays the contents of a text file named "sample.txt". Assume that the file is located in the same directory as the PHP script.
Explain the purpose of prepared statements in PHP when working with MySQL databases. Provide an example of using prepared statements to execute a query.
Explain what an associative array is in PHP. How does it differ from a regular array? Provide an example of creating and accessing elements in an associative array.
Develop a script that prompts the user to input an ISBN number of a Book. Upon submission, the script sends the ISBN number to a PHP script hosted on the server. The PHP script retrieves book details such as ISBN, title, author information, and price from a MySQL database. Convert this data into JSON format and send it back to the user as a response.
Circulate this solved paper with KaTeX formulas and 1-click AI step solvers to your batchmates on WhatsApp or Telegram.
Official Gujarat Technological University (GTU) examination paper and step-by-step solutions for Web Programming (WT) (Summer 2026, B.E. · Computer Engineering, Sem 6). 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.