VIDYA JYOTHI INSTITUTE OF TECHNOLOGY
Department of Computer Science and Engineering
III B.Tech I sem
Web Technologies
QUESTION BANK
=======================
UNIT-1
SHORT ANSWER QUESTIONS:
1. What are HTML Tags and what are the elements and attributes ?
2. What are the types of HTML lists?
3. What is javascript? Advantages of javascript?
4. What is function? In how many ways functions can be defined in javascript?
5. Demonstrate how to create arrays in JavaScript?
6. What is the difference between the GET and POST method in javascript?
7. What is event handling? What are events in Javascript?
8. What is a regular expression? In how many ways regular expressions are defined?
9. What are the pop-up boxes in javascript?
10. What is HTML DOM?
11. What are class selectors and id selectors?
12. Differentiate inline and internal styles?
13. Explain the purpose of CSS?
14. Explain how parameters are passed to the function in javascript?
15. Write briefly about the need for scripting language in web programming?
16. Explain the proper syntax for the following input components in HTML form?
a. Text input
b. Dropdown list
c. Radio button
17. What are the CSS properties for text ,border,list?
LONG ANSWER QUESTIONS:
1. Create a registration page.
2. Create a Login page and use CSS to style the buttons with different colors.
3. Write a javascript program to validate the registration page?
4. What are built in objects in JavaScript?
5. Write short notes on event handlers in JavaScript?
UNIT-2
SHORT ANSWER QUESTIONS:
1. Write the differences between HTML and XML?
2. Discuss the common tags in XHTML?
3. What is a well-formed XML document? And how can you declare attributes in XML?
4. What are the advantages and disadvantages of internal DTDs?
5. What are the building blocks of XML documents?
6. Difference between XML Schema and DTDs?
7. List out the data types in XML schema?
8. What is simple element? How does it differ from a complex element?
9. Difference between SAX parser and DOM parser?
10. Describe the structure of XSLT document?
11. Difference between XHTML and HTML?
12. What are the XML namespaces and how are they declared?
13. What are the properties of XMLHttpRequest object?
14. What does XMLHttpRequest do?
15. What is XML DOM?
16. Difference between simple element and complex element?
17. What is a Valid XML document?
18. Write the difference between CDATA and PCDATA
19. Explain about Complex types in XSD(XML Schema)
20. Explain attributes Declaration in XSD(XML Schema)
LONG ANSWER QUESTIONS:
1. Explain document structure description with an example in XML?
2. What is DTD? Explain its purpose? What are the limitations of DTD?
3. Explain DOM parser with suitable example?
4. Write an XML document with validation DTD and XML schema?
5. Explain SAX parser with suitable example?
UNIT-3
SHORT ANSWER QUESTIONS:
1. What is PHP? Difference between client side scripting language and server side scripting
language?
2. What kind of tags are used in PHP script code?
3. How to declare variables in PHP? What are the built-in functions?
4. Give any two advantages of PHP?
5. What is an array? How to create an array in PHP?
6. What are the array functions in PHP?
7. What is string? Explain the string functions with example?
8. What is an operator? Types of operators?
9. What are the control structures in PHP?
10. Difference between include () and require ()?
11. What is function? How to pass the parameters to function?
12. What are the super global variables?
13. What are cookies and write the advantages of cookies?
14. Difference between cookie and session?
15. What are the MySQL functions ? How to fetch the data from the result set?
16. How to read data from web form controls?
17. Write about the output statements in PHP?
18. What is a file? What are the file handling functions?
19. Use of header() function?
20. List the $_SERVER elements?
LONG ANSWER QUESTIONS:
1. Write a PHP script for collecting the data from the web form? And validate it?
2. Explain about state management controls with example? (Session and cookies)?
3. Write a PHP script to connect with the database? Write a script to add and remove users
from a MYSQL table?
4. Write a PHP Script for uploading a file?
5. Write about various functions and control structures in PHP with example?
UNIT-4
SHORT ANSWER QUESTIONS:
1. How does server-side programming differ from client –side programming?
2. Advantages and disadvantages of compiled and interpreted programs in CGI?
3. What is servlet?
4. What are the advantages of servlet over CGI?
5. What is the task of the javax.servlet.Servlet interface?
6. What are the session tracking techniques?
7. Describe how HTTP servlet handles its client request?
8. What are the differences between servlet and applet?
9. What are the advantages of cookies over the URL Rewriting?
10. Explain the life cycle of Servlet?
11. Can we use java as the CGI language? if yes ,how?
12. Define cookie and session?
13. Difference between <init-param > and <context-param>?
14. Difference between httpservletrequest and httpservletresponse ?
15. Difference between HttpServlet and GenericServlet?
16. What are the four types of JDBC Drivers?
17. What is the use of web.xml or deployment descriptor?
18. How can we use prepared Statement and createStatement?
19. Describe the procedure to retrieve the data from ResultSet?
20. Write a short note on Type4 Driver?
LONG ANSWER QUESTIONS:
1. Explain the handling of HTTP request and responses?
2. Explain javax.servlet.* package?Explain javax.servlet.http.* package?
3. Difference between ServletConfig and ServletContext?
4. Difference between single threaded and multi threaded servlet method?
5. Difference between HttpServlet and Generic Servlet?
UNIT-5
SHORT ANSWER QUESTIONS:
1. What is the key difference between HttpServletResponse.sendRedirect() and
<jsp:forward>?
2. Write short notes on JSP processing?
3. What are the Action elements or standard tags?
4. What is a Java bean?
5. Difference between cookie and session?
6. What are the session tracking techniques?
7. Write a short note on implicit JSP elements for Expression languages ?
8. Explain the error handling and debugging in the JSP page?
9. Discuss conditional processing in JSP application development?
10. Write a short note on Anatomy of JSP?
11. List the JSP elements ?
12. Write an example for the request, response, out , exception implicit objects?
13. What are the scripting elements in JSP?
14. What are the Directive elements in JSP?
15. How to declare and expression statements in JSP?
16. What are the advantages of JSP over servlets?
17. Applications of JSP?
18. What is the role of the controller, view and model?
19. Explain the life cycle of JSP?
20. What is the use of web.xml?
LONG ANSWER QUESTIONS:
1. What are the problems of servlets? Explain the JSP application with MVC through
illustrative Example?
2. Deployment of java beans in a JSP page?
3. What are implicit objects available in the JSP page? Explain?
4. What is a session? How do you enable and disable sessions using JSP?
5. Explain the process of accessing database from a JSP page?