0% found this document useful (0 votes)
148 views6 pages

Web Programming Exam Papers 2022-2024

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)
148 views6 pages

Web Programming Exam Papers 2022-2024

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

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
Tim[Link] 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
Tim[Link] 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 “[Link]“.
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.
****************

Common questions

Powered by AI

The DOM provides a structured representation of a web page, enabling programs to modify its content and visual presentation dynamically. For example, the 'document' object allows access to HTML elements for manipulation such as retrieving elements by ID or class. The 'window' object gives control over aspects like document view area and methods to open a new window or interact with browser history. These objects collectively enable dynamic updates, event handling, and user interactions, thereby enhancing web interactivity .

AJAX enables asynchronous data loading without reloading the entire webpage, leading to faster page updates and improved user experience. However, it introduces complexities such as increased server load and potential difficulties in maintaining states across requests. Debugging can also be challenging due to asynchronous processing, but the benefits often outweigh these challenges in enhancing responsiveness and interactivity .

Synchronous web programming involves tasks executing in a sequential order, blocking further code execution until the current task completes. This can lead to slower performance in web applications as each task must complete before the next begins. Asynchronous programming, on the other hand, allows tasks to be executed concurrently, thereby not affecting the entire system's performance as new tasks can begin before previous ones finalize. Asynchronous approach improves application responsiveness and efficiency, allowing better handling of tasks such as I/O operations .

JavaScript event handling allows dynamic interaction by responding to user actions such as clicks, mouse movement, or keyboard inputs. Examples include 'onclick', which is used for executing functions when buttons are clicked, and 'onmouseover', which often changes element appearance when hovered. Handling these events leads to interactive, engaging interfaces where user activities evoke immediate responses .

CSS is used to control the presentation layer, providing styles to HTML elements. Inline styles apply directly within the element, offering precedence but cluttering HTML. Embedded styles reside within the <style> tag in the HTML <head>, providing centralized styling for a single document. External styles involve linking external CSS files, promoting reusable, clean code across multiple pages. Each method has distinct use cases based on project needs .

Sessions store data server-side, associating data with a unique session ID, offering more security for sensitive data as it is not exposed to the client. They are well-suited for temporary data storage across multiple pages. Cookies store data client-side in the browser, suitable for persistent data retention across sessions. Cookies are best for non-sensitive data like user preferences due to their persistent nature but can be a security risk if not managed properly .

GET methods append data to the URL, visible in the browser's address bar, best for non-sensitive data retrieval as it is cacheable and has length restrictions. POST transmits data in the request body, suitable for sending sensitive information and data files without size restriction, but is not cached. GET is faster and simpler while POST is more secure for data manipulation .

PHP form processing allows for handling and manipulation of user input to perform dynamic operations. For instance, a form that accepts a number 'N' and returns the first 'N' Fibonacci numbers involves capturing the input, executing logic to calculate the sequence, and displaying results. This process is vital in dynamic content generation based on user interaction .

Key design considerations include usability, accessibility, mobile responsiveness, and aesthetic pleasing design. Usability ensures the website is easy to navigate, accessibility guarantees that it is usable by people with disabilities, mobile responsiveness allows compatibility with various devices, and an aesthetic design enhances user engagement. These elements culminate in a seamless user experience, integral for maintaining user interest and satisfaction .

CSS positioning properties dictate how elements are laid out on a webpage. 'Relative positioning' moves elements relative to their normal position, enabling offsets without affecting the positioning of other elements. The 'z-index' property controls the vertical stacking order of positioned elements, determining overlap levels of stacked elements. Effectively using these positions allows complex layouts, ensuring certain elements remain visible and interactable despite overlapping content .

You might also like