CS506 Final term Paper Solved 2010

FINALTERM  EXAMINATION
Spring 2010
CS506- Web Design and Development
 

Time: 90 min

M a r k s: 60
 
 
Question No: 1    ( M a r k s: 1 )    http://vuzs.net
 DSN stands for ___________.
       Domain System Name
       Data Source Name
       Database System Name
       Database Simple Name
   
Question No: 2    ( M a r k s: 1 )    http://vuzs.net
One application has _________ servlet context(s).
       1
       2
       3
       4
   
Question No: 3    ( M a r k s: 1 )    http://vuzs.net
 In packages, we organize files into different directories according to their ____________.
       Functionality
       Usability
       Category
       All of these
   
Question No: 4    ( M a r k s: 1 )    http://vuzs.net
Entire JSP page gets translated into a servlet ____________.
       Once
       Every time when it is accessed
       Every time when the page is refreshed
       Every time when the browser is restarted
   
Question No: 5    ( M a r k s: 1 )    http://vuzs.net
 A bean class ___________ be serializable.
       Can
       Can’t
       Must
       Shouldn’t
   
Question No: 6    ( M a r k s: 1 )    http://vuzs.net
 JSP action elements allow us to work with _____________.
       HTML
       JavaScript
       JavaBeans
       ManagedBeans
   
Question No: 7    ( M a r k s: 1 )    http://vuzs.net
MVC stands for _____________.
       Model View Content
       Model View Controller
       Multi View Controller
       Multi View Content
   
Question No: 8    ( M a r k s: 1 )    http://vuzs.net
 Layers represent the _____________ view of application.
       Physical
       Logical
       External
       None of these
   
Question No: 9    ( M a r k s: 1 )    http://vuzs.net
Tiers represent the _____________ view of application.
       Physical
       Logical
       External
       None of these
   
Question No: 10    ( M a r k s: 1 )    http://vuzs.net
 Managed Bean is JavaBeans which are defined in ------------------
       Configuration file
       Source file
       Class file
       None of these
   
Question No: 11    ( M a r k s: 1 )    http://vuzs.net
 UDDI stands for
       Universal Description, Discovery & Integration (UDDI)
       Universal Data, Discovery & Integration (UDDI)
       Universal Data, Database & Integration (UDDI)
       None of these
   
Question No: 12    ( M a r k s: 1 )    http://vuzs.net
 _____________ is a standard web based application framework.
       Java
       Servlet
       JSP
       JSF
   
Question No: 13    ( M a r k s: 1 )    http://vuzs.net
 Which of the following is a general purpose container?
 
       JFrame
       JDialog
       JPanel
       JWindow
   
Question No: 14    ( M a r k s: 1 )    http://vuzs.net
Which of the following component is/are used in directory Structure of web components?
       html, JSP, Images etc..
       web.xml, Classes folder
        lib, jar files
       All of the given options
   
Question No: 15    ( M a r k s: 1 )    http://vuzs.net
 Which of the following is a correct order for Bean scope in JSP page from most visible to least visible?
 
       application, session, request, page
       page, request, session, application
       session, page, request, application
       application, session, page, request
   
Question No: 16    ( M a r k s: 1 )    http://vuzs.net
 Which of the following is not included in simple tag while creating JSP custom tags?
 
       Start of tag
       End of tag
       Attributes
       None of the given options
   
Question No: 17    ( M a r k s: 1 )    http://vuzs.net
 AWT is also called ______________.
 
       Light Weight Component
       Medium Weight Component
       Heavy Weight Component
       None of the given options
   
Question No: 18    ( M a r k s: 1 )    http://vuzs.net
 Which of the following is NOT a standard method called as a part of the JSP life cycle?
       jspInit()
       jspService()
       _jspService()
       jspDestroy()
   
Question No: 19    ( M a r k s: 1 )    http://vuzs.net
 Initialization parameters of a servlet are defined in __________ file.
 
       html
 
       JSP
 
       web.xml
 
       servlet
 
   
Question No: 20    ( M a r k s: 1 )    http://vuzs.net
 The getSession() method of _________ returns HttpSession object.
 
       HttpServletResponse
 
       HttpServletRequest
 
       ServletConfig
 
       ServletContext
 
   
Question No: 21    ( M a r k s: 1 )    http://vuzs.net
 Unpack directory structure of J2EE web application is __________
 
       Known as Web Archive file (WAR)
 
       Used during development of web application
 
       Used to deploy web application
 
       None of the given options
 
   
Question No: 22    ( M a r k s: 1 )    http://vuzs.net
 Which of the following directory is the top level TOMCAT directory that contains all the application deployed on web server?
 
       webapps
 
       bin
 
       lib
 
       tags
 
   
Question No: 23    ( M a r k s: 1 )    http://vuzs.net
 Servlet mapping of a servlet is defined in _____________ file.
 
       JSP
 
       HTML
 
       web.xml
 
       Servlet
 
    
Question No: 24    ( M a r k s: 1 )    http://vuzs.net
 By using forward() method of _________ object, the called resource will be able to access the original request object.
 
       HttpServletRequest
 
       HttpServletResponse
 
       RequestDispatcher
 
       ServletConfig
 
   
Question No: 25    ( M a r k s: 1 )    http://vuzs.net
 A --------in HashMap is associated with each object thatisstored.
       None of the given options
       Key
       Value
       Attribute
   
Question No: 26    ( M a r k s: 1 )    http://vuzs.net
 Which of the following must be used to compare the values of two strings?
 
 
       = operator
       == operator
       equals() method
       compare() method
   
Question No: 27    ( M a r k s: 1 )    http://vuzs.net
 Mouse events can be trapped for ________ GUI component.
 
       JFrame
       JPanel
       JButton
       All of the given options
   
Question No: 28    ( M a r k s: 1 )    http://vuzs.net
 Port is a transport address to which processes can ________ for connections request.
       read
       Write
       Listen
       None of the given options
   
Question No: 29    ( M a r k s: 1 )    http://vuzs.net
 In which file do we define a servlet mapping?
       Web.xml
       index.html
       Servlet.xml
       None of the given options
   
Question No: 30    ( M a r k s: 1 )    http://vuzs.net
 Which of the following is appropriate for Page-with-Bean approach?
 
       The code becomes a mixture of presentation, business and data access logic.
       The maintenance of the application becomes a nightmare.
       A lot of code is also get duplicated.
       All the business logic goes into one application.
   
Question No: 31    ( M a r k s: 2 )
 How to track a user session in Servlets?
Answer:
the user can be tracked in a serlver by it’s state stored on the client side. These states are stored in the form of text or some values etc. this can also be a cookie. By storing this on the use side, user can be tracked by using the information written in it.
   
Question No: 32    ( M a r k s: 2 )
 Why do we use doTag() method in tag handler class?
    Answer: the dotag() method is used to implement/override to code functionality of tag. And this is invoked when the end element of the tag encountered.
Question No: 33    ( M a r k s: 2 )
 Differentiate between Layers and Tiers.
Answer:
Layers are simply logical grouping of the software components that make up the application or service, whereas Tiers refer to the physical residence of those layers. In simple words layers represents the logical view of application while Tiers represents physical view of application.
   
Question No: 34    ( M a r k s: 2 )
 Why is direct call of paint() method not recommended?
Answer:
The direct call of paint() is not recommended because all the graphical processes done automatically by the computer and is does not feel due to the modern computers processing speed. So we don’t call paint() method by recommendation.
 
   
Question No: 35    ( M a r k s: 3 )
 What is the preferred size of a component?
   
Question No: 36    ( M a r k s: 3 )
 Name three stages of servlet life cycle.
Answer:
three stages of servlet life cycle are:
1-      Initialize
2-      Service
3-      destroy
   
Question No: 37    ( M a r k s: 3 )
 What is the difference between variable declared inside a declaration part and variable declared in scriplet part?
 
   
Question No: 38    ( M a r k s: 3 )
 How does JSF provide Navigation?
    Answer: JSF navigation determines the control flow of the web application. Jsf provide a default navigational handler and this behavior can be configured in the configuration. We can do this also visually by using tools like sun studio creator.
 
 
 
Question No: 39    ( M a r k s: 5 )
 What is expression in JSP? Give an example.
   
Question No: 40    ( M a r k s: 5 )
 What is validator? Discuss built-in-validators.

Leave a Reply

Related Posts Plugin for WordPress, Blogger...