WT Impq Unit Wise

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

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

21CS503PC - WEB TECHNOLOGIES


YEAR:III/I SECTION: C & D

IMPORTANT QUESTIONS UNIT WISE( 2/3 Marks Questions)


Unit-1:

1. Design a PHP program to print reverse of any number


2. Define PHP Function.
3. List various types of arrays supported by PHP. How to declare arrays in
PHP
4. What is the use of $ symbol in PHP, explain with an example.
5. Design a PHP code to swap any two numbers.
6. List any two advantages of PHP.
7. Write the structure of PHP script with an example.
8. List various String Functions in PHP.
9. What are the data types supported by PHP.
10.What is the difference between JavaScript and PHP.

Unit-2:
1. Define Anchor tag with an example.
2. List the types of Style sheets.
3. Define image tag with an example.
4. Define Ordered list with an example.
5. Define Heading Tags with an example.
6. Explain about the purpose of DTD.
7. Why are attributes used in XML.
8. Define naming rules in XML.
9. Define XML Schema.
10. Define SAX Parser.

Unit-3:
1. How is Servlet different from an Applet.
2. Explain about Servlet API.
3. How to create a cookie using servlet.
4. What is servlet?
5. What are the Difference between Generic Servlet and HTTPServlet?
6. Discuss about Http Requests.
7. What is Session?
8. Discuss about Http Responses.
9. What are the different types of session tracking mechanism supported
by Servlets?
10. Explain about Common gateway interface.

Unit-4:
1. Define JSP expression.
2. What are the directives in JSP write with syntax?
3. What is the syntax of JSP?
4. Explain about Scriptlet Tag.
5. What are implicit objects in jsp?
6. Explain about the methods of getProperty() and setProperty().
7. What is JSP?
8. What are the uses of Java Beans in JSP page.
9. What are the difference between JSP and HTML.
10.How are Cookies used for Session tracking in JSP.

Unit-5:
1. What is JavaScript? Write the advantages of JavaScript
2. What is the difference between GET and POST methods in JavaScript.
3. What is the scope of variables in JavaScript.
4. Define Event. How events are handled in JavaScript.
5. What is DATE object in JavaScript.
6. Explain use of “this” keyword in JavaScript.
7. How the keyword “new” is used to create objects in JavaScript?
8. What is Document Object Model?
9. What is the difference between undefined and not defined in
JavaScript?
10.How to insert JavaScript code in PHP?

IMPORTANT QUESTIONS UNIT WISE(10/8 Marks Questions)


UNIT-I
1. List and explain the control structures used in PHP
2. Explain the file handling in PHP with examples/
Explain about the file operations in PHP with example.
3. List and explain the operators used in PHP.
4. Explain different types of arrays used in PHP with examples.
5. Write a PHP script to read and write data into a file.
6. (a) Write an example PHP script to retrieve and display records
from the MySQL database.
(b)How to connect MySQL using PHP? Write a program to
executing simple queries.
7. Discuss about various functions used in PHP with examples.
8. Explain different types of string functions in PHP with examples.
UNIT-II

1. (a) Explain HTML frameset with example.


(b) Explain different types of lists in HTML with example.
2. (a) What is CSS? Explain with example
(b) Explain types of CSS with examples
3. (a) Explain difference between HTML, XHTML and XML
(b) Differentiate between internal and external DTD with suitable
example
4. Differentiate between DTD and XML scheme with suitable
example
5. (a) Give an overview of defining basic XML tags
(b) Explain XML schema with example
UNIT-III

1. (a) Explain the Common Gateway Interface (CGI).


(b) Explain the Life Cycle of a Servlet with an example.

2. (a) Explain the advantages of Servlets over CGI.


(b) Demonstrate the use of cookies in servlets with an example.

3. (a) Present an overview of the servlet API.


( b) Explain with suitable example how servlet handle:
i) HTTP get requests ii) HTTP post requests.
4. (a) Explain with suitable examples, the difference between get
and post in Servlets
(b) Distinguish Generic servlet from HttpServlet
5. (a) Write a servlet program to retrieve data from the Employee
table which is existing in MySql database
(b)Write a simple servlet program to read two parameters from
form data.
UNIT-IV
1. (a) Describe the anatomy of a JSP page with example.
(b) Write briefly about JSP Declarations with example.

2. (a) What are the implicit objects available in JSP? List the
advantages of JSP over Servlets?
(b) Write a JSP to demonstrate the usage of page and include
Directives.

3. (a) Explain the JSP Processing with an example.


(b) Explain about page directive with an example JSP code

4. (a) What are JSP Code snippets? Develop a JSP program to


display current date and time.
b) Discuss various implicit objects in JSP
5. (a) Explain how database is accessed using a JSP page
(b) Write a JSP program to retrieve data from the MySql
database.

UNIT-V

1. (a) What is JavaScript? What are the features of JavaScript?


(b) Write a JavaScript to display whether given number is a
prime or not.

2. (a) Explain the event handlers in Java Script.


b) Write a Java Script to check whether the given year (4 digit)
is leap year or not.

3. Explain the various operators and data types available in Java


Script.

4. (a) How to create a Date object using JavaScript?


(b) Explain about Document Object Model with suitable example.

5. (a) Explain about functions in Java Script with examples.


(b) Explain this keyword in Java Script.

**************************** ALL THE BEST@KVR ***********************

You might also like