Web Design Assignment 3

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Subject: Web Design

Subject Code: 21ITT-316 Semester: 5th

Assignment- 3

Last date of Submission: Total Marks: 10

Set – 1

1. Explain the basic structure of an XML document. What are XML tags, and 5 marks CO4
how are they used to define elements?
2. What is the significance of the XML prolog, and what information does it 5 marks CO4
contain?
3. Write a PHP script to load and parse the following XML document. Display 5 marks CO5
the title and author of each book.

Set – 2

1. How do you create a new database in PHP My Admin ? Create a table named 5 marks CO5
students with columns id (INT, primary key, auto-increment), name
(VARCHAR(100)), age (INT), and email (VARCHAR(100)).
2. How do you declare variables in PHP, and what are the rules for naming 5 marks C05
them? Can you provide examples of using if, else, and switch statements
in PHP?
3. How do you define a function in PHP? Can you demonstrate a simple 5 marks C04
function that takes parameters?

Set-3
1. How can you implement error handling in PHP using try, catch, and 5 marks CO4
custom error handlers?
2. Discuss XML Schema, and how does it help in defining the structure of XML 5 marks CO4
documents?
3. How is XML used in conjunction with Ajax for data transfer? Give an 5 marks CO5
example.

You might also like