0% found this document useful (0 votes)
10 views2 pages

WT Ia2 Answer Key

The document outlines the internal assessment for the Web Technology subject at Velammal Institute of Technology for the Computer Science and Engineering department. It includes various parts with questions on JavaScript, server-side programming, servlet containers, and practical tasks involving HTML, CSS, and database connectivity. The assessment is structured into multiple parts, each focusing on different aspects of web technology and programming.

Uploaded by

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

WT Ia2 Answer Key

The document outlines the internal assessment for the Web Technology subject at Velammal Institute of Technology for the Computer Science and Engineering department. It includes various parts with questions on JavaScript, server-side programming, servlet containers, and practical tasks involving HTML, CSS, and database connectivity. The assessment is structured into multiple parts, each focusing on different aspects of web technology and programming.

Uploaded by

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

VELAMMAL INSTITUTE OF TECHNOLOGY

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

INTERNAL ASSESMENT - II Nov-Dec 2024

Subject Name: WEB TECHNOLOGY Sub code: CCS375


Branch: COMPUTER SCIENCE AND ENGINEERING Year/Sem: II / IV
Common to: COMPUTER SCIENCE AND ENGINEERING Date: 28.09.2024
Duration: 1 Hour 45Minutes Max. Marks: 60
PART - A (5×2=10 Marks)

1. How to Create an Object in JavaScript?

Use an object literal:

const obj = { key: 'value' };

2. Methods in RegExp

 exec()
 test()

3. What is Server-Side Programming?

It involves executing code on a server to process user requests, interact with databases, and generate
dynamic content.

4. What is a Servlet Container? Its Functions?

A servlet container is a part of a web server that manages servlets. Functions:

 Handles HTTP requests and responses.


 Manages servlet lifecycle.
 Provides security and session management.

5. Two Methods to Send a Request to a Server

 GET
 POST

PART-B

6a..Describe the data types, functions, and objects used in JavaScript with an example":

 Data Types – 4 Marks


 Functions – 4 Marks
 Objects – 4 Marks

6.bExplain any two validation functions in JavaScript. Write a JavaScript program to print prime numbers
from 1 to 100

Validation Functions – 6 Marks

Prime Numbers Program – 6 Mark


7.aDesign a dynamic welcome page that obtains the user’s name and then displays it on the page
using JavaScript.

 HTML Structure – 4 Marks


 JavaScript to Obtain User’s Name – 4 Marks
 Display the Name Dynamically – 4 Marks

7.b.Explain in detail about JSON function files and HTTP request.

 Explanation of JSON – 4 Marks


 Explanation of Function Files – 4 Marks
 Explanation of HTTP Request – 4 Marks

8.aExplain the lifecycle of servlets with suitable examples.

 Initialization Phase – 4 Marks


 Request Handling Phase – 4 Marks
 Destruction Phase – 4 Marks

8.bExplain the use of cookies for tracking requests with a servlet program.

 Explanation of Cookies – 4 Marks


 Creating and Storing Cookies in Servlet – 4 Marks
 Retrieving Cookies in Servlet – 4 Marks

Part C

9.a. Use CSS and JavaScript to create a program that allows you to drag and drop multiple images
(including one with a mouse) as thumbnails.

 CSS and HTML Setup for Thumbnails – 4 Marks


 JavaScript for Drag and Drop Functionality – 5 Marks
 Image Click Functionality and Growing Image Logic – 3 Marks
 Change Background Color and Font Style – 2 Marks

9.b. Create a three-tier application using servlets to handle registration form details and update
the same in database.

 Designing the Registration Form (HTML) – 4 Marks


 Servlet Logic for Handling Form Data – 5 Marks
 Database Connectivity and Update Logic – 5 Marks

You might also like