WEB PROGRAMMING
QUESTION BANK
UNIT-I
I. Short Answer Type Question.
1. Define the terms.
a. Internet b. WWW
2. What is IP? Explain with an example.
3. What is DNS? Why it is required?
4. What are the most Popular Web Browsers?
5. What is URL? Give an example.
6. What is Window Object?
7. What is Event and Event Handlers?
8. What is Navigator Object?
9. Write any two Mouse and Key Events in JavaScript.
10. What is DOM?
II. Long Answer Type Questions.
1. What is Web Browser? Explain the functions of Web Browser.
2. What is Web Server? Explain the functions of Web Server.
3. What is Internet Security? Write the importance of Internet Security.
4. Explain the Document Object Model levels and Tree representation with example code.
5. Explain Accessing HTML Elements in JavaScript.
6. Explain Event Propagation? Explain the types of Event Propagation in DOM2 Event Model.
7. Explain Properties and Methods used of Tree Traversal and Modifications.
8. Explain Navigator Object.
9. What is Event and Event Handling? Explain different ways of Registering an Event Handler.
10. Explain the types of events in JavaScript with examples.
UNIT-II
I. Short Answer Type Question.
1. What do you mean by absolute positioning of an element?
2. What do you mean by relative positioning of an element?
3. What is Dynamic Content? Give an example.
4. Which methods of window object is used to Move Elements Slowly and Used in Animation?
5. What is Element visibility? Give an example.
6. What is the difference between XML and HTML?
7. Explain the basic syntax of XML.
8. What is XML Declaration?
9. What is XML Schema?
10. What is DTD? What are the limitations of DTD?
II. Long Answer Type Questions.
1. What is Position Property? Explain the types of Positioning.
2. What are Stacking Elements? What is the use of Z-index property?
3. Explain the basic syntax of XML. What are the XML syntax rules?
4. What is XSLT Style Sheets? Explain XSLT Transformation process.
5. Explain DTD Elements with an example.
6. How to declare DTD attributes? Explain with an example.
7. Explain XML Namespace.
8. Explain simple and complex types of XML Schema with example.
UNIT-III
I. Short Answer Type Questions.
1. What is PHP?
2. Mention the components of a PHP file.
3. Variable Names are Case-Sensitive. Explain with an example.
4. Mention Variable Naming Conventions.
5. What is an operator in PHP and give an example?
6. What is the use of global keyword in PHP?
7. Explain Types of comments in PHP.
8. What is the use of global keyword?
9. How are Strings defined in PHP?
10. What is echo and print command? Give an example.
II. Long Answer Type Questions.
1. How PHP works explain in detail?
2. Explain the Structure of PHP with example code.
3. What are the Variables in PHP? Explain in detail.
4. Explain Operators in PHP.
5. What are the Predefined Constants in PHP? Explain the types of Predefined Constants.
6. Explain Variable Typing (Dynamic Casting in PHP) with example.
7. Explain Variable Scope in PHP. Discuss the types of Variable Scope with example.
8. Describe the various data types in PHP and the contexts in which they are used.
9. Discuss various conditional statements in PHP, including if, if-else, elseif, nested if and
switch statements.
10. Elaborate on the different looping structure in PHP, including while, do-while, for and foreach
loops.
11. Explain Jump statements in PHP.
12. Write a PHP program to find the sum, subtraction, multiplication and division of two numbers
using switch statement.
13. Difference between echo and print commands in PHP.
UNIT-IV
I. Short Answer Type Question.
1. What is a function?
2. Define a user-defined function in PHP.
3. Mention any two date functions in PHP.
4. Define PHP arrays and their general purpose.
5. Explain the use of the foreach loop with PHP arrays.
6. What is File Handling in PHP?
7. Write any four File Handling Operations.
8. What is Exception Handling.
II. Long Answer Type Question.
1. Discuss the use of default arguments in functions with example.
2. Explain the types of PHP arrays with examples.
3. Illustrate the use of various array functions in PHP with example.
4. Explain in detail Date and Time Functions in PHP with examples.
5. Explain the concept of exception handling in PHP, including the use of try-catch blocks and
custom exceptions.
6. Describe how cookies are used in PHP, including creating, reading, updating and deleting
cookies.
7. Elaborate on the process of performing database operations in PHP, including querying,
inserting, updating and deleting records.
8. Explain the process of reading from and writing to files in PHP with an example code.
9. Explain file read and file write methods with example.
10. Outline the steps involved in connecting to a database using PHP.