VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 0 0 DEPARTMENT OF COMPUTERAPPLICATIONS QUESTION BANK V SEMESTER MC70- Web Application Development Regulation 0 Academic Year 07 8 Prepared by Mr.M.AsanNainar, Assistant Professor/MCA
SUBJECT SEM / YEAR: V / III VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 0 0. DEPARTMENT OFCOMPUTER APPLICATIONS QUESTION BANK : MC70- Web Application Development UNIT I - JEE Platform Introduction Enterprise Architecture Styles JEE Architecture Containers JEE Technologies Developing JEE Applications Naming and directory services Using JNDI JNDI Service providers Java and LDAP LDAP operations Searching an LDAP server Storing and retrieving java objects in LDAP Application Servers Implementing the JEE Specifications JEE packaging and Deployment JEE packaging overview Configuring JEE packages. PART A Q.No Questions BT Level Competence. What is JEE?. Outline the role of MVC.. Define EJB container.. What is a session bean?. Classify the JEE application programming interfaces.. Define JAAS. 7. Define JAXP. 8. Differentiate SAX and DOM Parser. 9. What is connector? 0. What do you think of a resource adapter?. Identify the components of JEE application.. What is JDBC? Devise the steps needed to execute a SQL query using JDBC.. Discuss the use of JNDI.. What was the main idea behind LDAP? What is an LDAP server and why it is used in an enterprise. environment?. Examine the purpose of DTD. 7. Determine the type of messaging provided by JMS. 8. Write down the steps for deploying a JEE package. 9. What are the differences between EAR, JAR and WAR files? Under what circumstances should we use each one? 0. Assess the limitations of packaging.
PART B. Write in detail about the Enterprise Architecture with a neat diagram. (). (i) Identify the four types of container that the JEE specification defines. () (ii) Explain the container centric architecture of JEE. (0). Examine the technologies that JEE platform provides for developing the components. (). Write short notes on the following JEE APIs: (i) RMI/IIOP (ii) JNDI (iii) JDBC (iv) Java Mail (v) JMS. (++++). Examine the following: (i) Application Server Architecture (7) (ii) Advantages of Application Servers (). (i) Explain the components of JEE framework and their use in web application development. (8) (ii) Elaborate the functions of application servers. () 7. Explain the following issues related to Java objects in LDAP with an example. (i) Searching (ii)storing (iii)retrieving (++) 8. Explain in detail about the LDAP Operations. () 9. Write in short about (i) Naming and Directory Services (ii) Java and LDAP (8+) 0. Devise the steps involved in performing a JNDI Search and explain elaborately. (). Determine how JNDI allows to store several types of java related objects into the LDAP server. (). (i) How does the Java naming and directory service help in storing and searching for objects in web application? (8) (ii) Write short note on JEE packaging. (). (i) Describe in detail about the structure of JEE package. (8) (ii) How to work with the EAR Deployment Descriptor? (). Describe the mechanism involved in configuring the JEE packages with an example. () PART C. Develop a car showroom inventory web application with -tier architecture. Use appropriate JSP code and JDBC connectivity. (8 + 7). Determine the code of a standalone java application to (i) add (ii) modify (iii) delete the LDAP attributes of the given input. (++). Develop a real estate web application using JSP, servlet and JDBC. (). Summarize the steps involved in developing JEE applications. ()
UNIT II - STRUTS AND HIBERNATE Struts Architecture Struts classes Action Forward, Action Form, Action Servlet, Action classes struts config.xml, Action Mappings, Struts flow with an example application, Struts Tiles Framework, Struts Validation Framework Hibernate Architecture of Hibernate Downloading Hibernate Exploring HQL Hibernate O/R Mapping. PART A Q.No Questions BT Level Competence. Illustrate the use of Struts in a web application.. What are the components of struts?. List the design patterns used in struts.. Define a Servlet.. What is ActionForm?. State the need for ActionForward Class. 7. What is the role of Action Class? 8. Define ActionMapping. 9. What are the different kinds of actions in struts? 0. Draw the directory structure of struts application.. When will you use Struts Tiles Framework?. Can we have more than one struts-config.xml for a single struts application? Justify.. Why do you need ORM tools like hibernate?. What does Hibernate simplify?. Analyze the need for Hibernate XML mapping file.. Outline the various ways to express joins in HQL. 7. What advantages does Hibernate framework provide for web application development? 8. What are the differences between EJB.0 and Hibernate? 9. Expand HQL. Give example. 0. Determine the types of inheritance models in Hibernate. PART B. Explain Struts architecture representing the basic elements. (). Write a simple application using struts and explain it. (). Describe the core classes of the Struts Framework. (). Describe elaborately the Struts navigation flow. (). (i) Identify the different kinds of actions in Struts. () (ii) Explain in detail the different kinds of actions in Struts. (0). With an application, explain the following: (i) of Action Mappings () (ii) Struts flow (7) 7. Devise and explain the steps required to create tiles application. () 8. Write in detail the struts validation framework. ()
9. (i) Outline the importance of Hibernate. () (ii) Explain the features of hibernate in detail. (8) 0. Discuss the architecture of Hibernate with a neat diagram. (). (i) What is query interface? () (ii) Give some examples of queries in hibernate query language. (0). Describe the following mappings in hibernate. (i) Collection () (ii) Association () (iii) Component (). (i) Give the architecture overview of Struts framework. (7) (ii) Explain the three kinds of Hibernate OR mapping. (). (i) Assess the aggregate methods supported by HQL. (7) (ii) How do the named parameters of HQL help in preventing SQL injection attacks? () PART C. Determine a student identity management web application using struts framework. The application should be able to provide an identity such as student id, access to department assets with department id, access to lab assets with lab id. ( + + ). Determine struts XML based validation for an employee whose name and age would be captured using a simple page and develop code for two XML validations to make sure that user always enters a name and age between 8 and. (). Create and deploy a web application that displays data from a database. The web application should use the Hibernate framework as the persistence layer for retrieving and storing plain old Java objects (POJOs) to a relational database. (). Develop an application to develop a registration form for students admission using struts UI tags and store the data in a database using Hibernate. () UNIT III - LAMP STACK Overview of Lamp Stack Features of Lamp Stack Python LAMP and Its Effect on Web Development. PART A Q.No Questions BT Level Competence. What is LAMP stack?. What are the main features of LAMP? Also identify the benefits of LAMP.. Define the output types of PHP.. Define web service.. Differentiate between client-side and server-side programming.. What is Python? State some programming language features of Python. 7. Howpython is interpreted? 8. How do we make python scripts executable? 9. List the disadvantages of python. 0. Examine the use of literals and identifiers in Python.. How do you make an array in python?
. Show how to overload constructors in Python.. What is used to create Unicode string in python?. How is memory managed in python?. How do we share global variables across modules in Python?. Illustrate the role of repr function. 7. Explain how to create a multidimensional list. 8. Explain how to make forms in python. 9. Describe how to implement Cookies for Web python. 0. State how to use sessions for Web python. PART B. Explain in detail Linux and its architecture. (). (i) Identify the types of Pipes. () (ii) Explain the various uses of pipes. (0). Examine how Apache tomcat is used to develop rich web applications.(). (i) Explain in detail about MYSQL. (8) (ii) Explain the features of MYSQL. (). Describe elaborately the Perl architecture. (). Explain in detail about python architecture. () 7. Write short notes on: (i) Arithmetic Operators () (ii) Comparison Operators () (iii) Logical Operators () (iv) Conditional Operators. () 8. (i) Classify the various looping structures of python. () (ii) Explain the looping techniques of python programming with examples. (0) 9. Write a Python function to sort n numbers in ascending order. () 0. (i) Write a Python program to add the number of vowels in a word. (7) (ii) Enlist the features of LAMP stack. (). (i) What makes LAMP stack the best choice for developing good application for organizations? () (ii) Devise a Python program to sort words in alphabetical order. (7). Explain how Python is deployed in web application with suitable example. (). (i) Determine and explain the main components of LAMP. (0) (ii) Assess the benefits of LAMP stack in business. (). Describe usage of LAMP and its effect on web development with example. () PART C. (i) Deploy a simple two-tier LAMP stack application. (7) (ii)configure the application and database tiers separately and connect them with a binding. (8)
. (i) Determine the steps to create a dynamic web application using python. () (ii)verify with code for designing a temperature converter web application using python. (0). Develop a program to: i) Check whether the given number is odd or even. (7) ii) Find the square root of a number. (8). Determine the python code for multiplication of two matrices. () UNIT IV -.Net, C# Introduction.Net revolution.net framework and its architecture CLR What is Assembly Components of Assembly DLL hell and Assembly Versioning. Overview to C# C# Compilation and Execution Process C# Fundamentals (Data types, Operators, Programming constructs) Inheritance Sealed Classes Interface Overloading Overriding Method Hiding C# Property Exception Handling PART A Q.No Questions BT Level Competence. What is a Managed Code?. Examine the role of assemblies in.net.. Classify the different components of an assembly.. What is DLL Hell, and how does.net solve it?. How does assembly versioning work?. What are the features of a metadata? 7. Describe the purpose of inheritance. 8. Define sealed class. Give example. 9. How abstract classes and interfaces are implemented? 0. How many differences exist between String and StringBuilder classes?. Interpret the term Interface.. Define overriding.. Illustrate the purpose of authentication and authorization.. Compare value types and reference types.. Describe Jagged Arrays.. What is a Multicast Delegate? 7. What is LINQ? 8. What is the difference between.exe and.dll files? 9. What is Global Assembly Cache (GAC)? 0. Show the commonly used types of exceptions in.net. PART B. (i) Describe elaborately the importance of.net Framework. () (ii) Write notes on the features of.net. (7). Analyze in detail the different types of Assemblies in.net. (). (i) What is DLL hell problem? () (ii) Give an appropriate solution to DLL hell problem. (0)
. Devise the steps involved to resolve an assembly binding request. (). (i) Categorize the various data types of.net. () (ii) Explain with examples the.net data types. (0). Explain elaborately inheritance with a suitable example. () 7. (i) Examine in detail about the interface in.net. (8) (ii) How multiple interfaces are used in.net? () 8. (i) Write notes on the following: Overloading () Overriding () (ii) State the differences between overloading and overriding. () 9. Write notes on: (i) Sealed classes (7) (ii) Method hiding. () 0. Explain the architecture of.net framework and its significance. (). (i) Write a C# code to show the difference between value type and reference type parameter with suitable example. (7) (ii) Explain the compilation and execution process of a C# program. (). Write a C#.NET program that reads username and password from the user and redirects to the next form if he / she is a valid user. If not, the user must be asked to fill a registration form. Use a database to store the user details. (). Explain exception handling in C#.Net with an example. (). (i) Write notes on C# Operators. () (ii) Describe the Programming constructs in C#. (7) PART C. (i) Create a simple database web application using C#.NET. (7) (ii)display the records of a specific table in the database with a DataSet, DataGrid and DataView. (8). (i) Determine the code to read a string and find the sum of all digits in the string using C#.NET. (8) (ii)determine the code to count number of vowels and consonants from a given string using C#.NET. (7). Compare inheritance and sealed classes with example. (). Develop a C# program to implement overloading with suitable example. () UNIT V - ASP.NET AND SILVERLIGHT ASP.Net IIS ASP.Net Page Life Cycle ASP Vs ASP.Net HTML Controls Vs Server side Controls Validation Controls Data binding in ASP.Net Caching Configuration in ASP.Net (web.config) Session management View State in ASP.Net ASP.Net. Introduction RIA Silverlight XAML App.Xaml XAP How Silverlight application executes in a web browser PART A Q.No Questions BT Level Competence. Mention the difference between ASP and ASP.NET framework.. Name the web server available in.net IDE.. List the events in page life cycle.
. What are server side controls?. Determine the different validators in ASP.NET.. How we can force all the validation controls to run? 7. Illustrate client-side and server-side validations in web pages. 8. Explain the validation controls. How many validation controls are in ASP.NET.0. 9. Explain role based security. 0. Outline the need for caching.. What are the various session state management options provided by ASP.NET?. What is ViewState?. What does the "EnableViewState" property do? Why do we want it On or Off?. Mention the use of RIA technology.. What are the main features and benefits of Silverlight?. What is XAML? 7. What is a.xap file? 8. What are the different Layout controls available in Silverlight? 9. Identify the relationship and difference between Silverlight and ASP.Net. 0. What is the difference between Silverlight and Flash? PART B. (i) Describe in brief about ASP.NET Web Parts Framework. (7) (ii) Write short notes on the components of ASP.NET. (). Classify the events in the ASP.NET page lifecycle and explain. (). Explain in detail about Master Page. (). Describe the different methods of navigation in ASP.NET. (). Explain how data binding is achieved in ASP.NET (). (i) Explain elaborately about caching. (8) (ii) Discuss the different types of caching. () 7. Write short notes on: i) Session Management (7) ii) View State. () 8. Assess the steps involved in creating an ASP.NET WebService application. () 9. Write short notes on: (i) XAML (ii) XAP. (7+) 0. (i) Explain the life cycle of an ASP.NET page. (7) (ii) What are the various elements that need to be configured in web.config file for an ASP.NET project? ()
. Write an ASP.NET program to show the use of following using validation controls: RequiredFieldValidator () RangeValidator () RegularExpressionValidator () CustomValidator (). Compare and contrast HTML controls and Server side controls with examples. (). (i) How Silverlight application executes in a web browser? Give example. (7) (ii) Differentiate XAML and XAP. (). Devise the steps in detail involved in developing a silver light application. () PART C. (i) Create a ASP.NET component that receives two numbers from the user through a Web Form, and based on the user s selection add or subtract the two numbers and returns the result to the web form. (0) (ii)design a web form to display the result. (). (i) How would you create a graph using the SharePoint Object Model? (8) (ii)determine the steps to display the graph using Silverlight Graphing controls. (7). Develop an online bookstore web application that includes all the validation controls available in ASP.NET. (). Create a simple TimeDisplay user control in ASP.NET with encapsulates a single LinkButton control. Whenever the link is clicked, the time displayed in the link is updated. The time is also refreshed when the control first loads. ()