0% found this document useful (0 votes)
11 views47 pages

WT Course Handout For R22 (R22)

The document outlines the course file for the Web Technologies subject, detailing the vision and mission of the institution and department, along with program educational objectives, outcomes, and specific outcomes. It includes a comprehensive syllabus covering PHP, JavaScript, XML, Servlets, and JSP, along with course objectives and outcomes. Additionally, it provides a lesson plan and evaluation scheme for the academic year 2025-2026.

Uploaded by

mounikateja44
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)
11 views47 pages

WT Course Handout For R22 (R22)

The document outlines the course file for the Web Technologies subject, detailing the vision and mission of the institution and department, along with program educational objectives, outcomes, and specific outcomes. It includes a comprehensive syllabus covering PHP, JavaScript, XML, Servlets, and JSP, along with course objectives and outcomes. Additionally, it provides a lesson plan and evaluation scheme for the academic year 2025-2026.

Uploaded by

mounikateja44
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

Course File

The following attributes should be made available in each course file.

Department: CSE (DS) A.Y.: 2025-2026


Name of the Faculty: B. Ramya Sree Subject Code: D84PC8(R22)
Pre-Academic Session Review Title of the subject: Web Technologies
PART-A

S. No Attributes Yes/No

I Vision and Mission of institute

II Course handout& its contents

a) Vision and Mission of department

b) PEOs of the program

c) Program Outcomes (POs)

d) Program Specific Outcomes (PSOs)

e) Prerequisites

f) Course objectives

g) Course Outcomes (COs)

h) Detailed syllabus

i) Course Plan

j) Evaluation scheme

III Course material

a) PPT’s, Reference links of Material

b) Question bank prepared by faculty (unit wise)

c) Quiz question bank (unit wise)

1
WEB TECHNOLOGIES (C56PC2) -COURSE FILE
Class: II [Link] II Sem A.Y: 2023-2024
Name of the Faculty: [Link] Email: snehalatha@[Link]
Phone Number: 99719312232 Contact Sessions: 51

Vision & Mission of the Institution

Vision: The institute endeavors towards imparting quality education with ethical values and strives to make
students technically competent to reach high level of achievements an make our nation self-reliant and
globally recognized.

Mission: The institute is committed and dedicated to mould the students into quality engineers and
technologists with aplomb by providing world class scientific and technical education through:

● Ensuring excellent branch wise infrastructure facilities, with eminent and qualified faculty.

● Making the institute a research/resource center to enhance scope for consultancy and R&D.

Vision & Mission of the Department

Vision: The department aspires to provide quality education with a foundation of ethical values and to
equip students with technical proficiency, enabling to achieve excellence independently and gain
global recognition.

Mission:

1. The department is dedicated to delivering high-quality education seamlessly integrated


with unwavering ethical values.

2. To cultivate technical competence among our students, empowering them to scale new
heights of achievement in the ever-evolving field of data science.

3. The department is committed to nurturing a dynamic learning environment, aim to impart


the skills and knowledge essential for self-reliance and to position our students for global
recognition.

2
a) Program Educational Objectives (PEOs)

The Programme Educational Objectives of the programme offered by the department are listed below:

PEO 1

The graduates will be able to design and develop solutions for real life problems using modern engineering
tools.

PEO 2

The graduates will have the ability to analyse and interpret experimental results in frontier areas of Data
Science and an inclination for higher learning in multidisciplinary areas.

PEO 3

Graduates of the Data Science program will demonstrate holistic excellence by combining a strong
foundation in ethical values with advanced technical proficiency.

PEO 4

Graduates will emerge as leaders who can navigate the complexities of the data science domain, adapt to
changes and contribute to the global recognition of the department and its graduates.

Program Outcomes (POs)


1. Engineering Knowledge: Apply the knowledge of mathematics, science, engineering
fundamentals, and an engineering specialization to the solution of complex engineering
problems.
2. Problem Analysis: Identify, formulate, review research literature, and analyse complex
engineering problems reaching substantiated conclusions using first principles of
mathematics, natural sciences, and engineering sciences.
3. Design/Development of Solutions: Design solutions for complex engineering problems and
design system components or processes that meet the specified needs with appropriate
consideration for the public health and safety, and the cultural, societal, and environmental
considerations
4. Conduct Investigations of Complex Problems: Use research-based knowledge and
research methods including design of experiments, analysis and interpretation of data, and
synthesis of the information to provide valid conclusions.
5. Modern Tool Usage: Create, select, and apply appropriate techniques, resources, and
modern engineering and IT tools including prediction and modelling to complex
engineering activities with an understanding of the limitations.
6. The Engineer and Society: Apply reasoning informed by the contextual knowledge to
assess societal, health, safety, legal and cultural issues and the consequent responsibilities
relevant to the professional engineering practice.

3
7. Environment and Sustain ability: Understand the impact of the professional engineering
solutions in societal and environmental contexts, and demonstrate the knowledge of, and
need for sustainable development.
8. Ethics: Apply ethical principles and commit to professional ethics and responsibilities and
norms of the engineering practice.
9. Individual and Team Work: Function effectively as an individual, and as a member or
leader in diverse teams, and in multi-disciplinary settings.
10. Communication: Communicate effectively on complex engineering activities with the
engineering community and with society at large, such as, being able to comprehend and
write effective reports and design documentation, make effective presentations, and give and
receive clear instructions
11. Project Management and Finance: Demonstrate knowledge and understanding of the
engineering and management principles and apply these to one's own work, as a member
and leader in a team, to manage projects and in multi-disciplinary environments.
12. Life-long Learning: Recognize the need for, and have the preparation and ability to engage
in independent and life-long learning in the broadest context of technological change.

Program Specific Outcomes (PSOs)

PSO 1: Applying the concepts and practical knowledge in data analytical process of
computing systems and statistical methods to multi-disciplinary problems.

PSO 2: Storing, processing, analysing and learning from data for effective decision-making
while finding solutions for problems.

Prerequisites
1. HTML and CSS Basics
Understanding the structure and styling of web pages.
2. Programming Fundamentals
Basic knowledge of programming concepts, especially in JavaScript.
Course Objective

To understand the concepts of PHP Language, processing of XML data with Java, server
side programming with Java servlets and JSP.

Course Outcomes (COs)


Upon completion of the subject, students will be able to

1. Develop a web application using PHP and MySQL to Recall and reproduce PHP syntax and
Identify different data types in PHP and explain the purpose and use of control structures, role of
functions in PHP to handle file permissions, error checking, and security considerations when
working with file operations in PHP .- L3
2. Make use of XML and their concepts to store, navigate, transport, manipulate, and parse the
content and Implement XML parsing using DOM and SAX parsers in Java. - L3

[Link] the components of the Servlet API. Recall the basic concepts of servlets, such as the
servlet lifecycle and deployment and Apply knowledge of servlet parameters to read and process

4
client data, initialization parameters in servlets. Analyze HTTP request and response handling in
servlets. - L3

[Link] JSP pages with appropriate declarations, directives, and expressions and implement
database connectivity in JSP using JDBC. - L3
[Link] knowledge of JavaScript to create and use functions, create a simple AJAX application
dynamically update web page content Implement event handlers for various user interactions on
web pages. - L3

Syllabus
UNIT I: INTRODUCTION TO PHP

Declaring variables, data types, arrays, strings, operators, expressions, control structures,
functions, Reading data from web form controls like text boxes, radio buttons, lists etc.,
Handling File Uploads, Connecting to database (MySQL as reference), executing simple
queries, handling results, Handling sessions and cookies File Handling in PHP: File
operations like opening, closing, reading, writing, appending, deleting etc. on text and
binary files, listing directories.

UNIT II: CLIENT-SIDE SCRIPTING

Introduction to Javascript: Javascript language – declaring variables, the scope of variables,


functions, event handlers (click, onsubmit etc.), Document Object Model, Form validation.
Simple AJAX application.

Unit – III: XML

Introduction to XML, Defining XML tags, their attributes and values, Document Type
Definition, XML Schemas, Document Object Model, XHTML Parsing XML Data – DOM
and SAX Parsers in java

UNIT – IV: INTRODUCTION TO SERVLETS

Common Gateway Interface (CGI), Lifecycle of a Servlet, deploying a servlet, The Servlet
API, Reading Servlet parameters, Reading Initialization parameters, Handling Http Request
& Responses, Using Cookies and Sessions, connecting to a database using JDBC.

UNIT – V: INTRODUCTION TO JSP

The Anatomy of a JSP Page, JSP Processing, Declarations, Directives, Expressions, Code
Snippets, implicit objects, Using Beans in JSP Pages, Using Cookies and session for session
tracking, connecting to database in JSP.

TEXTBOOK:

5
1. Web Technologies, Uttam K Roy, Oxford University Press.

[Link] Complete Reference PHP – Steven Holzner, Tata McGraw-Hill.

REFERENCE BOOKS

[Link] Programming, building internet applications, Chris Bates 2nd edition, Wiley
Dreamtech.

[Link] Server Pages –Hans Bergsten, SPD O’Reilly Java Script, D. Flanagan, O’Reilly,SPD.

[Link] Web Programming-Jon Duckett WROX.

[Link] World Wide Web, R. W. Sebesta, Fourth Edition, Pearson.

[Link] and World Wide Web – How to program, Dietel and Nieto, Pearson.

Course Plan of Computer Web Technologies

Lesson Plan
Teaching and
Lecture/
Learning
[Link]. Dates Tutorial/ Self Topic(s) Contact
method
Learning Time
adapted
Introduction to web 10M
technologies
Course Outcomes
1 02/01/2026 Lecture 10M Chak and Talk
Explanation
Overview of syllabus 20M
Importance of PHP,
10M
Java script, JSP and
Servlets
Any queries about 10M
subject
UNIT-I:
Introduction to
PHP
Understanding
10M
Client-side and
Server-side Scripting
2 Lecture Basic syntax of PHP 10M Chak and Talk
05/01/2024 Declaring variables 10M
Rules for declaring 10M
variables

6
Valid and invalid
10M
variable declaration.
Conclusion 5M
Last class revision 5M
Data types in PHP
10M
3 Lecture Arrays 10M Chak and Talk
8/01/2024 Different types of 15M
Arrays
Strings, 15M
Operations on
strings,
Example programs
on Arrays
Conclusion 5M
09/01/2026 Online Class (Links) 40M Video
4 Tutorial
Classroom 20M Interaction
Discussion
Last class revision 5M
Operators, Types of 10M
5 10/01/2026 Lecture Operators Chalk and Talk
Example programs 10M
applying operators
Expressions 15M
Introduction to 15M
control structures

Conclusion 5M

Last class revision 5M


Conditional statements (if, if-else, 20M
6 Lecture elseif, switch) Chak and Talk
19/01/2026 Example programs 10M
Control loops ( while, do-while), 20M
for, foreach)
Example programs 10M
Conclusion 5M
Last class revision 5M
Functions
15M
Arguments

7
Reading data from web form
10M
text boxes, radio buttons
10M
Lists, Example programs
15M
7 31/12/2024 Lecture Conclusion 5M Chak and Talk
20/01/2026 Coding Exercises 40M
8 Tutorial Slide
Important questions 20M
Last class revision 5M
Handling file uploads
9 Lecture 20M Chak and Talk
21/01/2026 connecting to database (Mysql 15M
reference)
Establishing connection 15M
Conclusion 5M
Last class revision 5M
Executing simple queries, 15M
handling results
10 02/02/2026 Lecture Chak and Talk
Form handling (GET and POST 10M
methods)
Handling sessions and cookies.
25M
Conclusion 5M
Last class revision 5M
Listing Directories
25M
File handling in PHP: File
11 03/02/2026 Lecture operations like opening, closing, Chak and Talk
reading, writing,
Appending Deleting etc., on
25M
text and binary files.
Conclusion 5M
Problem Solving 50M
12 Self Slide
Learning Assignment-1 10M
04/02/2026
Total Classes for Unit-I 12

UNIT-II
25M Chak
Introduction to Javascript: and Talk
13 05/03/2026 Lecture Javascript language – declaring
variables,

8
the scope of variables
functions 25M
Conclusion 5M

Last class revision 5M

event handlers 40M


14 09/02/2026 Lecture
(click, onsubmit etc.), 10M Chak
and Talk
Conclusion 5M

15 10/02/2026 Tutorial Coding Exercises 40M Slide

Model Papers 20M

16 13/02/2026 Last class Revision 5M

Lecture Document Object Model 35M Chak


and Talk
Implementation 15M

Conclusion 5M

17 16/02/2026 Last class Revision 5M

Lecture Simple AJAX application 25M Chak


and Talk
Sample programs 25M

Conclusion 5M
14141418

Last class revision 5M


Lecture
19/02/2026 Form validation 30M Chak
and Talk
Programs 20M

Conclusion 5M

Total Classes for Unit-II 10

UNIT-III

10M
Introduction to XML

9
Oral discussion on XML
Defining XML tags 20M
XML attributes 10M
23/02/2026 Chak and
values 15M Talk
20 Lecture Conclusion 5M
Last class revision 5M
Document type Definition
10M
21 Lecture Syntax 10M Chak and
25/01/2026 Validation 15M Talk
Linking XML to DTD 15M
Conclusion 5M
26/01/2026 Programs practice 40M Video
22 Tutorial
Classroom Discussion 20M Interaction
Last class revision 5M
Common gateway Interface(CGI) 10M
23 27/02/2026 Lecture Chalk and
Processing XML using CGI 10M
Talk
Handling requests and responses 15M
Example Programs 15M

Conclusion 5M

Last class revision 5M


XML Schemas 30M
24 Lecture Chak and
Elements and attributes in XML 20M
28/02/2026 Talk
schemas

Conclusion 5M
Last class revision 5M
Document Object Model
15M
DOM methods
20M
Example programs
25 02/03/2026 Lecture 15M Chak and
Conclusion 5M Talk
03/02/2026 Coding Exercises 40M
26 Tutorial Slide
Model Papers 20M
Last class revision 5M

10
27 Lecture Chak and
XHTML 20M Talk
05/03/2026 Practice for sample examples 15M
Student Presentations 15M
Conclusion 5M
Last class revision 5M
Parsing XML data-DOM parsers in 25M
java. Chak and
28 06/03/2026 Lecture Talk
25M
Parsing XML data-SAX Parsers in
java.
Conclusion 5M
29 07/03/2026 Lecture Quiz on topics covered 60M IBL
Problem Solving 50M
30 Self Slide
Learning Assignment-2 10M
09/03/2026
Total Classes for Unit-III 11

UNIT-IV SERVLETS

Introduction to Servlets 10M


Common gateway Interface(CGI) 30M
31 16/3/2026 Lecture Sample Servlet applications 10M Chak and
Conclusion 5M Talk
Last class revision 5M

18/03/2026 Lecture Life cycle of a Servlet 40M Chak and


32 Oral discussion on servlets 10M Talk
Conclusion 5M
23/3/202 Online Class (Links) 40M Video
33 Tutorial
Classroom Discussion 20M Interaction
Last class revision 5M
deploying a servlet 20M
34 24/3/2026 Lecture Chalk and
The Servlet API 10M
Talk
Practice for sample examples 10M
Example Programs 10M

Conclusion 5M

11
Last class revision 5M
Reading Servlet parameters, 30M
35 Lecture Chak and Talk
20M
25/03/2026
Reading Initialization parameters
Conclusion 5M
Last class revision 5M
Handling Http Requests
15M Chak and Talk
Handling Http Responses
20M
28/03/2026
Example programs
36 Lecture 15M
Conclusion 5M
30/03/2026 Coding Exercises 40M
37 Tutorial Slide
Model Papers 20M
Last class revision 5M

38 01/03/2026 Lecture Using cookies and Sessions 30M Chak and Talk
Practice for sample examples 20M
Conclusion 5M
Last class revision 5M
Connecting to a database using 30M
39 04/04/2026 Lecture JDBC Chak and Talk
20M

Sample programs on servlets


Conclusion 5M
40 06/04/2026 Lecture Students Presentations 60M Seminars
Problem Solving 50M
41 Self Slide
Learning Assignment-3 10M
07/04/2026
Total Classes for Unit-IV 11

UNIT-V JSP
08/04/2026
Introduction to JSP: 15M
The anatomy of a JSP Page 30M
42 Lecture Sample Jsp program 10M Chak and Talk
Conclusion 5M
Last class revision 5M

12
10/04/2026 Lecture Chak and Talk
JSP Processing 40M
43 Declarations 10M
Directives
Conclusion 5M
15/03/2026 Online Class (Links) 40M Video
44 Tutorial
Classroom Discussion 20M Interaction
Last class revision 5M
Expressions 20M
45 16/04/2026 Lecture Chalk and
Different types 10M
Talk
Example Programs 10M

Conclusion 5M

Last class revision 5M


code snippets, implicit objects 30M
46 Lecture Chak and
20M
20/04/202 Talk
6 Using Beans in JSP pages
Conclusion 5M
22/04/202 Coding Exercises 40M
47 6 Tutorial Slide
Model Papers 20M
Last class revision 5M

48 Lecture JSP Beans sample programs 30M Chak and


23/04/202 Practice session for sample examples 20M Talk
6
Conclusion 5M
Last class revision 5M
Connecting to database 30M
49 27/04/202 Lecture in JSP. Chak and
6 Talk
20M
Sample Programs for practice on how to
connect to Database
Conclusion 5M
50 30/04/202 Lecture Students Presentations 60M Seminars
6
Problem Solving 50M
51 Self Slide
Learning Assignment-3 10M
02/05/202
6

13
Total Classes for Unit-V 10

Course material
a. PPT’s, Reference links of Material
[Link]

Question bank prepared by faculty (unit wise)

UNIT-I

Part-A

1. List out the features of PHP

2. How many types of operators are used in PHP

3. Show the syntax of PHP script with an example.

4. Compare the GET and POST methods

5. Define a constant variable in PHP? Give an example

6. Compare the 'BITWISE AND' operator and the 'LOGICAL AND' operator in
PHP
7. Solve a PHP program to print reverse of any number

8. Classify the characteristics of PHP and JavaScript?

9. Define the super globals variable in PHP

10. Find the factorial of any given number using PHP

11. Show the star triangle structure using PHP code

12. Find a php code to swap any two numbers

13. How to create the cookie using PHP

Part-B

1. Define an Array? Explain about the types of Arrays in PHP with an example

14
2. Summarize the variables and operators with example in PHP

3. Explain the predefined and user defined functions in PHP with an example.

a. Define is PHP session, how session is created and destroyed.

b. Explain Different file modes in PHP

c. Build a PHP script for uploading a file to the server and display the
uploaded files details.

d. List and explain the string functions in PHP

4. What are the differences between Get and post methods in form submitting? Give
the case where we can use get and we can use post methods

5. List the statements that are used to connect PHP with MySQL.

6. Explain PHP form processing with an example.

a. Discuss different types of Conditional statements in PHP.

b. Write a PHP program to demonstrate the passing a variable by reference

7. Write a Program to read the form data of user registration using PHP and display
the retrieved data.

8. Write PHP code to read two values from form and find Area of Triangle and
display the result

UNIT -II

Part-A

1. What is javascript? Write the advantages of javascript.

2. Write the limitation of javascript.

3. Discuss with an example about internal and external java scripts.

4. How do you convert numbers to strings in javascript.

5. What is the function of the === operators

6. Write any 3 properties of the window object

15
7. Write a javascript program to display the time and date on popup window

8. Write a javascript program to close the window

9. What are the limitations of ajax technology

10. What is the XMLHttpRequest Object in AJAX.

Part-B

1 Discuss about Advantages and limitations of Javascript.

2 Explain internal and external javascript with an example.

3 Explain about javascript variables scope with an example

4 Write a JavaScript program for arithmetic operations.

5 Explain about Function definition, Function calling,

6 Function parameters, the return statement with a suitable example.

7 Define what is DOM and explain javascript HTML Object Hierarchy.

8 Explain Form validation types with a suitable example.

9 What are the properties of the XMLHttpRequest Object?

10 What are the different values of ready State in AJAX?

11 Write a javascript to design a simple calculator to perform the all

12 Basic arithmetic operations

13 Explain about Asynchronous and Synchronous request in AJAX with neat diagram

UNIT-III

Part-A

16
1. What is XML? Explain the various feature of XML

2. With suitable example explain the creation of namespaces in XML.

3. What are the advantages and disadvantages of internal DTDs

4. What are the advantages and disadvantages of External DTDs

5. What are empty elements? How can an empty element be declared in a DTD?

6. Why are attributes used?

7. How will you declare an entity?

8. Which data type do we use in XML Schema?

9. Write the advantages and disadvantages of local and global declarations

10. What does XML parser do?

11. List the important points to create the XML Document.

Part-B

1. How can both Internal and External DTDs be used in an XML File?

2. Show with an Example

3. Show with an example how to use a DTD in an XML document externally.

4. Describe different techniques that are used to process XML Files.

5. How can both Internal and External DTDs be used in an XML File? Show

6. with an Example.

7. Consider the following DTD.

1. <!ELEMENT course (name, curriculum, teacher+, student+)>

2. <!ELEMENT name (#PCDATA)>

3. <!ELEMENT curriculum (#PCDATA)>

4. <!ELEMENT teacher (#PCDATA)>

5. <!ELEMENT student (#PCDATA)>

8. Write a sample XML documents that is valid according to this DTD.

17
9. Describe the procedure for validating the XML Documents.

10. Describe about the Style sheets in XML

11. Describe the difference between DOM and SAX

UNIT - IV
Part-A

1. Give a note of servlet API

2. How to create a cookie using servlet

3. What is Session?

4. What is difference between Get and Post method?

5. What is a Cookie?

6. Discuss about Http Request

7. What are the different types of session tracking mechanism supported?

8. Discuss about Http Responses

9. What are the differences between doGet() Vs doPost() methods

10. What are the Difference between GenericServlet and HTTPServlet?

11. What is servlet?

Part-B

1. What is JDBC? How to connecting to a database using JDBC

2. Explain about Lifecycle of a Servlet with neat diagram

3. Justify the Common Gateway Interface (CGI) with neat Diagram

4. Justify the Differences between CGI and Servlets.

5. Write Six Steps to Run Servlet program

6. What is Servlet? Explain about Servlet API

7. Explain about the life-cycle methods for a servlet?

18
8. Compare Get and Post method?

9. Describe the anatomy of Servlet with neat diagram.

10. Discuss about Session Tracking Techniques

UNIT-V
Part-A

1. What are the advantages of JSP?

2. What are the implicit objects in JSP?

3. What is Session tracking?

4. What is jsp?

5. What are the directives in jsp with syntax?

6. What is the syntax of jsp?

7. What is Type 1 driver?

8. What are implicit objects in jsp?

9. What is type 2 driver?

10. Write about the methods of get property () and set Property ().

11. What is type 4 driver?

12. What are the Beans in jsp page

Part-B

1. Justify the differences between servlets and jsp.

2. How does jsp page converts to servlet. give an example.

3. Describe the components of jsp.

19
4. Explain about the anatomy of jsp.

5. Explain about the jsp processing.

6. Explain about the different methods used for Session tracking

7. Explain about the JDBC Drivers.

8. How does Jdbc allows to access database through java

9. Discuss about the code snippets in detail.

[Link] about the getProperty() and setProperty() of beans in jsp.

UNIT-I

1. In PHP, every variable name must begin with the symbol __________.

2. The superglobal array used to collect form data sent using POST method is __________.

3. The function used to start a session in PHP is __________.

4. An array that uses named keys is called a(n) __________ array.

5. The operator used for string concatenation in PHP is __________.

6. The PHP function used to open a file is __________.

7. The SQL command used to retrieve records from a database table is __________.

8. The PHP superglobal used to handle file uploads is __________.

9. The function used to delete a file in PHP is __________.

10. Cookies in PHP are created using the __________ function.

Multipli chocie Questions


1. Which symbol is used to declare a variable in PHP?
a) #
b) @
c) $
d) %

20
2. Which of the following is a valid PHP data type?
a) character
b) integer
c) realnumber
d) longint

3. Which loop is specifically designed to work with arrays in PHP?


a) for
b) while
c) do-while
d) foreach

4. Which superglobal is used to collect data from a form using GET method?
a) $_POST
b) $_REQUEST
c) $_GET
d) $_FORM

5. Which function is used to move an uploaded file to a permanent location?


a) upload_file()
b) move_uploaded_file()
c) copy_file()
d) save_file()

6. Which function is used to connect PHP to a MySQL database using MySQLi?


a) mysql_connect()
b) mysqli_connect()
c) db_connect()
d) connect_mysql()

7. Which SQL query is used to insert data into a table?


a) SELECT
b) UPDATE
c) INSERT
d) DELETE

8. Which function is used to read data from a file in PHP?


a) fwrite()
b) fopen()
c) fread()
d) fclose()

21
9. Which of the following stores user information on the client’s machine?
a) Session
b) Cookie
c) Variable
d) Array

10. Which function is used to list files in a directory in PHP?


a) file_list()
b) dir_list()
c) scandir()
d) listdir()

UNIT-II

Fill in the blanks


1. JavaScript is a __________-side scripting language.

2. The keyword used to declare a constant variable in JavaScript is __________.

3. Variables declared using let have __________ scope.

4. The __________ event is triggered when a form is submitted.

5. The Document Object Model represents a web page as a __________ structure.

6. The method used to access an HTML element by its ID is


__________.

7. Form validation is used to ensure that user input is __________ before submission.

8. The __________ event occurs when a user clicks on an HTML element.

9. AJAX stands for Asynchronous JavaScript


and__________.

10. AJAX allows data to be exchanged with the server __________ reloading the page.

Multiple Choice Questions (MCQs)


1. Which of the following is used to declare a variable in JavaScript?

22
a) int
b) var
c) string
d) declare

2. Which keyword provides block-level scope in JavaScript?


a) var
b) let
c) static
d) global

3. Which event handler is used when a button is clicked?


a) onload
b) onchange
c) onclick
d) onsubmit

4. What does DOM stand for?


a) Data Object Model
b) Document Object Method
c) Document Object Model
d) Digital Object Model

5. Which method is used to select an element using its ID?


a) getElement()
b) getElementByClass()
c) getElementById()
d) selectElement()

6. Which of the following is a JavaScript


function?
a) <function>
b) function myFunc()
c) def myFunc()
d) create myFunc()

7. Which event is used to validate a form before submitting it?


a) onclick
b) onmouseover
c) onsubmit
d) onfocus

8. Client-side form validation is mainly used to __________.


a) store data permanently

23
b) reduce server load
c) create database
d) send emails

9. AJAX is mainly used to


__________.
a) style web pages
b) reload web pages
c) update web content asynchronously
d) create animations

10. Which object is the root of the DOM?


a) window
b) document
c) html
d) body

UNIT-III

Fill in the blanks


1. XML stands for __________ Markup
Language.

2. XML is mainly used to __________ data.

3. XML tags are __________-defined.

4. An XML document must have exactly __________ root element.

5. Attributes in XML provide __________ information about elements.

6. A document that follows XML syntax rules is called a __________ XML document.

7. DTD stands for __________ Type Definition.

8. XML Schema is commonly written using __________ language.

9. DOM represents an XML document in the form of a __________ structure.

10. SAX parser is an __________-driven parser.

24
Multiple Choice Questions (MCQs)
1. Which of the following is a correct XML declaration?
a) <xml version="1.0">
b) <?xml version="1.0"?>
c) <xml version=1.0?>
d) <?xml version=1.0>

2. Which feature distinguishes XML from


HTML?
a) Predefined tags
b) Fixed structure
c) User-defined tags
d) Formatting support

3. Which of the following is mandatory in an XML document?


a) Comments
b) Attributes
c) Root element
d) DTD

4. What is the main purpose of DTD?


a) Store XML data
b) Validate XML structure
c) Style XML
d) Parse XML

5. Which of the following supports data types?


a) DTD
b) XML Schema
c) DOM
d) XHTML

6. DOM parser loads the entire XML document into


a) File
b) Database
c) Memory
d) Network

7. Which parser is suitable for large XML documents?


a) DOM parser
b) SAX parser
c) XHTML parser

25
d) XSD parser

8. XHTML is a combination
of
a) XML and Java
b) HTML and JavaScript
c) XML and HTML
d) XML and CSS

9. Which Java package is commonly used for SAX parsing?


a) [Link]
b) [Link]
c) [Link]
d) [Link]

10. SAX parser processes XML data in


a
a) Tree-based manner
b) Sequential manner
c) Random manner
d) Graphical manner

UNIT-IV

Fill in the Blanks


1. CGI stands for __________ Gateway
Interface.

2. A servlet is a __________-side Java program.

3. The life cycle of a servlet begins with the __________() method.

4. The method used to handle client requests in a servlet is __________().

5. The method called before a servlet is destroyed is __________().

6. The Servlet API is provided in the __________ package.

7. Servlet request parameters are read using the __________() method of HttpServletRequest.

8. Initialization parameters are configured in the __________ file.

26
9. The object used to send response data to the client is __________.

10. Cookies are stored on the __________ side.

Multiple Choice Questions (MCQs)


1. What is the main disadvantage of CGI?
a) Platform independence
b) High memory usage
c) New process for each request
d) Multithreading support

2. Which method is called only once during the servlet life cycle?
a) service()
b) doGet()
c) init()
d) destroy()

3. Which file is used to deploy a servlet?


a) [Link]
b) [Link]
c) [Link]
d) [Link]

4. Which package contains the Servlet API classes?


a) [Link]
b) [Link]
c) [Link]
d) [Link]

5. Which method retrieves a parameter value from a request?


a) getAttribute()
b) getInitParameter()
c) getParameter()
d) getSession()

6. Which HTTP method is used to send data securely?


a) GET
b) POST
c) PUT
d) HEAD

27
7. Which object is used to write output to the client?
a) ServletRequest
b) HttpServletRequest
c) HttpServletResponse
d) HttpSession

8. Where are cookies stored?


a) Server
b) Database
c) Client browser
d) Web container

9. Which method is used to get an existing session?


a) getCookie()
b) getSession()
c) createSession()
d) openSession()

10. Which JDBC interface represents a database connection?


a) Driver
b) Statement
c) Connection
d) ResultSet

11. Which JDBC object is used to execute SQL queries?


a) DriverManager
b) ResultSet
c) Statement
d) Connection

12. Which method is used to close a JDBC connection?


a) end()
b) stop()
c) close()
d) terminate()
UNIT-V

1. JSP stands for __________ Server Pages.

2. A JSP page is ultimately translated into a __________ by the web container.

28
3. The file extension used for JSP pages is __________.

4. JSP declarations are written using __________ tags.

5. JSP expressions are written using __________ tags.

6. JSP directives provide instructions to the __________.

7. The directive used to import packages in JSP is __________ directive.

8. The object used to read request parameters in JSP is __________.

9. The implicit object used to manage session data is __________.

10. JavaBeans used in JSP must follow the __________ convention.

Multiple Choice Questions (MCQs)


1. Which component processes JSP pages?
a) Browser
b) JVM
c) Web container
d) Database

2. Which JSP tag is used for declarations?


a) <% %>
b) <%= %>
c) <%! %>
d) <%@ %>

3. Which JSP element is used to embed Java code?


a) Declaration
b) Expression
c) Scriptlet
d) Directive

4. Which implicit object represents the client request?


a) response
b) request
c) session
d) out

5. Which implicit object is used to write output to the client?

29
a) request
b) response
c) out
d) application

6. Which directive is used to include another file in JSP?


a)page
b) taglib
c) include
d) import

7. Which action tag is used to set a property of a JavaBean?


a) <jsp:useBean>
b) <jsp:setProperty>
c) <jsp:getProperty>
d) <jsp:param>

8. Which object is used for session tracking in JSP?


a) request
b) response
c) session
d) application

9. Where are cookies stored?


a) Server
b) Database
c) Client browser
d) Web container

10. Which technology is used to connect JSP with a database?


a)ODBC
b) JDBC
c) SQL
d) ORM

Previous Question Papers

Ref: [Link]/library/downloads/syllabus-question-papers/

30
[Link] III Year II Semester First Mid-Term Examinations April- 2026

Branch Name: CSE (DS)

Subject Name: Web Technologies

Maximum Marks: 20 Duration: 1Hour 20 Minutes

Set-1

Part-A (Objective Paper)

Answer All the following questions. (5 Multiple choice & 5 Fill Blooms Course
in the blanks) Taxonomy Outcomes
Level
Marks: 10x1/2M = 5M

1 PHP Scripts runs on L1 CO1

a)Client b) Server c) Client and Server d) In Compiler

2 The PHP variable name starts with L1 CO1

a)% b) # c) @ d) $

3 Which of the following function is used to open a PHP file? L1 CO1

a)fopen() b) openf() c) fopens() d) fgets()

4 XPATH used to L2 CO2

a)Address your documents by specifying a location path

b) Address the server

c)Store the IP address of the server

d)None of these

5 The DTD begins with the word: L2 CO2

a)#PCDATA b)XML c)DOCTYPE d)HTTPS

6 PHP is a ___________ typed language. L1 CO1

7 PHP Scripts starts with _________________ L1 CO1

31
8 In PHP a Variable name cannot start with____________ L2 CO1

9 XML stands for________ L1 CO2

10 DTD defines structure of _________________document L1 CO2

Part-B (Descriptive Paper)

Answer All the following questions. Marks: Blooms Course


3x5M= 15M Taxonomy Outcomes
Level

11 Analyze the syntax and characteristics of data types in L3 CO1


PHP

OR

12 Design a PHP script to create a Class Time Table L3 CO1

13 Illustrate the process of extracting information from L3 CO1


web forms using PHP

OR

14 Analyze the differences between HTML and XML L3 CO2

32
15 Describe Document type definition with an Example. L3 CO2

OR

16 Analyze the functioning and significance of the L3 CO3


Common Gateway Interface (CGI) protocol in web
development

Note: 1. Set the question paper as per Syllabus mentioned

2. Descriptive each question carries 5 marks and may have a,b,c,d or i,ii,iii,iv as
sub

questions.

3. Indicate blooms taxonomy level as applicable. Example: Remembering as L1.

[Link] III Year II Semester First Mid-Term Examinations April- 2026

Branch Name: CSE (DS)

Subject Name: Web Technologies

Maximum Marks: 20 Duration: 1Hour 20 Minutes

33
Set-2

Part-A (Objective Paper)

Answer All the following questions. (5 Multiple choice & 5 Fill Blooms Course
in the blanks) Taxonomy Outcomes
Level
Marks: 10x1/2M = 5M

1 Which of the following cookie is automatically sent to L2 CO1


user’s computer to store unique session identification
string?

a) SESSID b) PHPSESS c) PHPSESSID d)


PHPID

2 PHP cookie can be created by using ……function L1 CO1

a) cookie () b) set() c) setcookie() d) none

3 DOM stands for? L1 CO1

a) Direct Object Model

b)Document Object Modeling

c) Document Object Model

d) Document Output Model

4 ____________is used to eliminate definition duplication, L2 CO2


XML Schemas

a) an intersection table.

b) global elements.

c) a normalized definition table.

d) None of the above is correct.

5 What XML stands for? L1 CO2


a) Extra Marked Language

b)Extensible Markup Language

c) Extensible Marked Literal

34
d) Extra Markup Language

6 A Variable declared outside function has L2 CO1


a____________Scope

7 ____________function is used to sort array in descending L1 CO1


order

8 _____________is PHP super global variable used to L2 CO1


collect the data from form

9 DTD stands for _______________ L1 CO2

10 _________________parser is built into Internet Explorer L1 CO2

Part-B (Descriptive Paper)

Answer All the following questions. Marks: Blooms Course


3x5M= 15M Taxonom Outcomes
y Level

11 Describe Control structures in PHP with an Examples L3 CO1

OR

12 Describe the file handling functions in php L3 CO1

13 Analyze the distinctions between sessions and cookies L3 CO1

OR

14 Differences between DOM and SOX L3 CO2

15 Explain XML and detail its Document Object Model L3 CO2


(DOM) briefly.

OR

16 Define a 'servlet' and describe its life cycle using an L3 CO3


example servlet program

35
Note: 1. Set the question paper as per Syllabus mentioned

2. Descriptive each question carries 5 marks and may have a,b,c,d or i,ii,iii,iv as
sub

questions.

3. Indicate blooms taxonomy level as applicable. Example: Remembering as L1.

[Link] III Year II Semester First Mid-Term Examinations April- 2026

Branch Name: CSE (DS)

Subject Name: Web Technologies

Maximum Marks: 20 Duration: 1Hour 20 Minutes

Set-3

Part-A (Objective Paper)

Answer All the following questions. (5 Multiple choice & 5 Fill Blooms Course
in the blanks) Taxonomy Outcomes
Level
Marks: 10x1/2M = 5M

36
1 Witch of the following word is used to declare a PHP L1 CO1
function

a) fun b) function c) fundec d) no need to use any


word

2 The limitation for sending the data by GET method L1 CO1


is………..

a) 5000 characters b)10000 characters c)about 2000


characters d) no limitation

3 session variables are stored in………….array L2 CO1

a) array() b) session array() c) $_SESSION[]


d) none

4 White spaces in XML includes L2 CO2

[Link] like space characters, new lines and tabs

[Link] spaces [Link] between two double quotes

[Link] of these

5 The tags elements in XML are L1 CO2

[Link]-insensitive [Link]-sensitive [Link] dependent

[Link] of these

6 A Variable declared within a function has a _____Scope L2 CO1

7 ________loops through a block of code for each element L2 CO1


in an array

8 A User -defined function declaration start with L1 CO1


word___________

9 XSD stands for_________________ L1 CO2

10 _________is a platform to dynamically access and update L2 CO2


the content of XML document

37
Part-B (Descriptive Paper)

Answer All the following questions. Marks: 3x5M= Blooms Course


15M Taxonomy Outcomes
Level

11 Explain strings in PHP with an Example L3 CO1

OR

12 Develop a PHP code for addition of two Arrays L3 CO1

13 Describe about XML Schemas L3 CO2

OR

14 Develop XML code for Student profile using DTD. L3 CO2

15 Explain Super Global Variables with an example L3 CO2

16 Explain common gateway interface(CGI) L3 CO3

Note: 1. Set the question paper as per Syllabus mentioned

2. Descriptive each question carries 5 marks and may have a,b,c,d or i,ii,iii,iv as
sub

questions.

3. Indicate blooms taxonomy level as applicable. Example: Remembering as L1.

38
[Link] III Year II Semester First Mid-Term Examinations April- 2026

Branch Name: CSE (DS)

Subject Name: Web Technologies

Maximum Marks: 20 Duration: 1Hour 20 Minutes

Set-4

Part-A (Objective Paper)

Answer All the following questions. (5 Multiple choice & 5 Fill in Blooms Course
the blanks) Taxonom Outcomes
y Level
Marks: 10x1/2M = 5M

1 L1 CO1

How PHP files can be accessed?


[Link] HTML files b. Through Web Server
c. Through Web Browser d. All of Above

2 L1 CO1

PHP is ___________ scripting language.


a)Clint-side b)Middle-side c)Server-side d)Out-side

3 What DOM stands for? L1 CO2

a)Direct Object Model b)Document Object Modeling

c)Document Object Model d)Document Output Model

4 The document that is used by XSLT to indicate, how to L2 CO2

39
transform the elements of the XML document to another
format is

[Link] page [Link] type procedure

[Link] sheet d. Stored procedure

5 Which of the following statements are true with reference to L2 CO2


the way of describing XML data ?
[Link] DTD to describe the data
[Link] uses XSL to describe the data
[Link] uses a description node to describe the data
a. 1 only b.3 only c. 1 and 2 d. 1 and 3
6 The ______Key word is used to access a global variable with L1 CO1
in a function

7 In PHP ______ function is used to find whether a variable is L2 CO1


numeric.

8 To create a constant, we can use_____________function L1 CO1

9 ____________was developed to make HTML more L2 CO2


extensible and standard.

10 In XHTNL attributes names must be in____________ L1 CO2

Part-B (Descriptive Paper)

Answer All the following questions. Marks: 3x5M= Blooms Course


15M Taxonomy Outcomes
Level

11 Demonstrate database connectivity with PHP by explaining L3 CO1


the process and providing an example to illustrate how it
works

OR

12 Illustrate the file uploading functionality using PHP L3 CO1

40
13 Analyze the Differences between GET and POST Methods L3 CO1

OR

14 Explain about SAX Parser. L3 CO2

15 Explain DOM with example L3 CO2

16 Define a 'servlet' and describe its life cycle using an L3 CO3


example servlet program

Note: 1. Set the question paper as per Syllabus mentioned

2. Descriptive each question carries 5 marks and may have a,b,c,d or i,ii,iii,iv as
sub

questions.

3. Indicate blooms taxonomy level as applicable. Example: Remembering as L1

41
PART-B

Department: CSE (DS) Date: 25-03-2026


Name of the Faculty: B. Ramya Sree Subject Code: : D84P48(R22)
Title of the subject: WEB TECHNOLOGIES

1 CO-PO & PSO’s mapping

2 Teaching Dairy (Faculty Activity Book)

3 Analysis of student performance

4 Answer book copies

a) Internal books (Excellent/Good/Fail) = 3 Nos

b) Assignment Copies (Excellent/Good/Fail) = 3 Nos

c) Quiz paper (Excellent/Good/Fail) = 3 Nos

d) Laboratory records (if any) (Excellent/Good/Fair) = 3 Nos.

5 Whether remedial measures were taken by faculty members after


completion of first module (with supporting documents)

42
6 IQAC review report of teaching notes (pre + post)

CO-PO – PSO Target Matrix


Theory:

*to be rated with 1- slightly, 2 – moderately, 3- substantial

Delivery Methodology

Course Delivery Methods/Modes:


1. Class room lectures: 55
2. Presentations:5
3. Laboratory sessions:-
4. Demos: 0
5. Assignments:5
6. Case studies: 0
7. Seminars:3
8. Projects: 5
9. E-Learning Resources:5

43
Mapping between Course Delivery Methodology and Course Outcomes

44
CO-PO-PSO ATTAINMENT MATRIX

Graphical statistics for Target & Attainment

Analysis of student feedback

Enclosed.

Corrective actions taken in this Year:

1. Completed extra content.


2. Given extra information regarding topics.

Teacher self-assessment (at the completion of course)

45
All five units are completed and 80% of students understood the subject. With the help of
presentations students will improve their knowledge on this subject. All the five course outcomes
have been achieved throughout the subject.

Recommendation/Suggestions for improvement by faculty:


Recommend more examples in multimedia.

CERTIFICATE
I, the undersigned, have completed the course allotted to me as shown below.

S. Semester Subject with code Total Remarks


No units

1 VI WEB TECHNOLOGIES 5

Date: Signature of faculty

Submitted to HOD

Certificate by HOD

I, the undersigned, certify that [Link] has completed the course work allotted to him/her
satisfactorily/not satisfactorily.

Date: Signature of HOD

46
47

You might also like