IT3401 Web Essentials Important Questions
Unit 1
- Provide a brief explanation of the purpose of backups offered by web hosting providers when creating a website. Also, describe Incremental, Differential and Mirror backup methodologies with suitable architectural diagrams.
- List down the pros and cons of Continuous Data Protection (CDP) pertaining to Web hosting backup methodology.
- For the following scenario, illustrate how client-side and server-side scripting work together to create interactive and functional web applications.
(i) Assume a sign-up form on your website with fields for username, email and password. On the client-side, write a JavaScript code snippet to validate the form fields before submitting the data to the server. If the email or password does not meet the criteria, an alert is shown and the form submission is prevented. (7)
(ii) On the server-side, when the user submits the login form, the data is sent to the server, where a PHP script processes it. The script checks the submitted username and password against a database and responds accordingly. Write a PHP code snippet to process it. - Describe the functionalities of web protocols.
- Explain the working of domain name system in brief.
Unit 2
- Create a web page for displaying your profile using HTML and apply eternal style sheet for different HTML elements.
- Create a web page using HTML for a College event using backgrounds text effects, and animations.
- Explain the purpose of Cascading Style Sheets Level 3 (CSS3). Highlight four key features of CSS3.
- Provide an example scenario that demonstrates the use of features such as Linear and/or Radial Gradients and Media Queries to achieve a responsive design.
- Explain about the various ways users can input data on a webpage.
- Write a HTML5 code snippet to tags embed video content directly into web pages.
Unit 3
- Devise a Java script program that demonstrates the uses of regular expression by creating a simple HTML page with a textarea (T) where the end-user can input text. When the user clicks the “Highlight Words” button, it should highlight the specific words (defined in an array) using regular expressions.
- Explain about the event handling in JavaScript. List down the various types of events that are supported by JavaScript.
- Describe how events in JavaScript move through the DOM tree in two distinct stages.
- Explain looping statements supported in Java Script with examples.
- What are exceptions? How exceptions are handled in Java Script?
Unit 4
- Explain in brief about the operational concept of PHP.
- Give a simple PHP code that demonstrates string pattern matching using regular expressions.
- Devise a simple PHP code that demonstrates reading from and writing to a file.
- Devise a sample PHP function that establishes a connection to the MySQL database server.
- Write a PHP program to access any associative array and display the same.
- Illustrate the process of file uploading in PHP using an example.
Unit 5
- With appropriate illustrations, explain in detail about Java Servlet architecture. Furthermore emphasize about Servlet Life cycle.
- Give a sample Java servlet program that demonstrates handling form submissions using both GET and POST methods.
- Draw and explain Servlet life cycle.
- Explain the purpose of session handling in Servlets with an example.