Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FINALTERM EXAMINATION Fall 2011 CS506- Web Design and Development (Session - 1)
#1
Question No: 1 ( Marks: 1 ) - Please choose one
DSN stands for ___________.
► Domain System Name
► Data Source Name
► Database System Name
► Database Simple Name

Question No: 2 ( Marks: 1 ) - Please choose one
One application has _________ servlet context(s).
► 1
► 2
► 3
► 4

Question No: 3 ( Marks: 1 ) - Please choose one
In packages, we organize files into different directories according to their ____________.
► Functionality
► Usability
► Category
► All of these

Question No: 4 ( Marks: 1 ) - Please choose one
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 ( Marks: 1 ) - Please choose one
A bean class ___________ be serializable.
► Can
► Can’t
► Must
► Shouldn’t

Question No: 6 ( Marks: 1 ) - Please choose one
JSP action elements allow us to work with _____________.
► HTML
► JavaScript
► JavaBeans
► ManagedBeans

Question No: 7 ( Marks: 1 ) - Please choose one
MVC stands for _____________.
► Model View Content
► Model View Controller
► Multi View Controller
► Multi View Content

Question No: 8 ( Marks: 1 ) - Please choose one
Layers represent the _____________ view of application.
► Physical
► Logical
► External
► None of these

Question No: 9 ( Marks: 1 ) - Please choose one
Tiers represent the _____________ view of application.
► Physical
► Logical
► External
► None of these

Question No: 10 ( Marks: 1 ) - Please choose one
Managed Bean is JavaBeans which are defined in ------------------
► Configuration file
► Source file
► Class file
► None of these

Question No: 11 ( Marks: 1 ) - Please choose one
UDDI stands for
► Universal Description, Discovery & Integration (UDDI)
► Universal Data, Discovery & Integration (UDDI)
► Universal Data, Database & Integration (UDDI)
► None of these

Question No: 12 ( Marks: 1 ) - Please choose one
_____________ is a standard web based application framework.
► Java
► Servlet
► JSP
► JSF

Question No: 13 ( Marks: 1 ) - Please choose one
Which of the following is a general purpose container?





► JFrame
► JDialog
► JPanel
► JWindow

Question No: 14 ( Marks: 1 ) - Please choose one
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 ( Marks: 1 ) - Please choose one
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 ( Marks: 1 ) - Please choose one
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 ( Marks: 1 ) - Please choose one
AWT is also called ______________.

► Light Weight Component
► Medium Weight Component
► Heavy Weight Component
► None of the given options

Question No: 18 ( Marks: 1 ) - Please choose one
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 ( Marks: 1 ) - Please choose one
Initialization parameters of a servlet are defined in __________ file.

► html

► JSP

► web.xml

► servlet


Question No: 20 ( Marks: 1 ) - Please choose one
The getSession() method of _________ returns HttpSession object.

► HttpServletResponse

► HttpServletRequest

► ServletConfig

► ServletContext


Question No: 21 ( Marks: 1 ) - Please choose one
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 ( Marks: 1 ) - Please choose one
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 ( Marks: 1 ) - Please choose one
Servlet mapping of a servlet is defined in _____________ file.

► JSP

► HTML

► web.xml

► Servlet


Question No: 24 ( Marks: 1 ) - Please choose one
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 ( Marks: 1 ) - Please choose one
A --------in HashMap is associated with each object that is stored.
► None of the given options
► Key
► Value
► Attribute

Question No: 26 ( Marks: 1 ) - Please choose one
Which of the following must be used to compare the values of two strings?





► = operator
► == operator
► equals() method
► compare() method

Question No: 27 ( Marks: 1 ) - Please choose one
Mouse events can be trapped for ________ GUI component.






► JFrame
► JPanel
► JButton
► All of the given options

Question No: 28 ( Marks: 1 ) - Please choose one
Port is a transport address to which processes can ________ for connections request.
► read
► Write
► Listen
► None of the given options

Question No: 29 ( Marks: 1 ) - Please choose one
In which file do we define a servlet mapping?
► Web.xml
► index.html
► Servlet.xml
► None of the given options

Question No: 30 ( Marks: 1 ) - Please choose one
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 ( Marks: 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 ( Marks: 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 ( Marks: 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 ( Marks: 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 ( Marks: 3 )
What is the preferred size of a component?

Question No: 36 ( Marks: 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 ( Marks: 3 )
What is the difference between variable declared inside a declaration part and variable declared in scriplet part?


Question No: 38 ( Marks: 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 ( Marks: 5 )
What is expression in JSP? Give an example.

Question No: 40 ( Marks: 5 )
What is validator? Discuss built-in-validators.

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  BNK603 Consumer Banking Mid Term Papers Fall Semester 2012 Vuhelper 0 4,675 11-24-2012, 09:28 PM
Last Post: Vuhelper
  pak301- Final Term Solved Papers for 2011 Xpert 1 7,276 02-09-2012, 12:29 PM
Last Post: David
  eng201 midterm paper subjective 26th November, 2011 Xpert 2 4,894 11-27-2011, 05:27 PM
Last Post: Xpert
  ACC501 Midterm subjective paper shared by student 26th Noivember, 2011 Xpert 0 3,081 11-26-2011, 11:46 PM
Last Post: Xpert
  cs403 database management midterm current paper of fall 2011 on 26th November Xpert 0 2,794 11-26-2011, 11:35 PM
Last Post: Xpert
  CS507 mid term exam of today fall november 2011 Vuhelper 1 3,121 11-26-2011, 08:23 PM
Last Post: Vuhelper
  eco401 mid term today current paper fall november 2011 Vuhelper 0 3,107 11-26-2011, 08:21 PM
Last Post: Vuhelper
  acc501 mid term current solve paper fall November 2011 Vuhelper 0 3,509 11-26-2011, 08:08 PM
Last Post: Vuhelper
  CS601 Current Spring 2011 Final Term VU Paper 20 July 2011 Vuhelper 1 3,073 11-21-2011, 02:33 PM
Last Post: sid786
  MGT101 today's 25 july 2011 final term paper (subjective) naveed004 0 3,953 07-25-2011, 10:30 PM
Last Post: naveed004

Forum Jump:


Users browsing this thread: 1 Guest(s)