You are on page 1of 24

J NTUK O NLI NE EXAMI NATI O NS [Mid 2 - Web Technologies]

1. W h ic h o f t h e fo llo w in g is n o t a n in t e r fa c e ?
a. Servlet
b. ServletRequest
c. SingleThreadModel
d . G e n e r ic S e r v le t

2. W h ic h o f t h e fo llo w in g u t ilit y e n a b le s y o u t o t e s t s o m e o f t h e s e r v le t s t h a t y o u c r e a t e ?
a. Serveletrun
b . S e r v le t r u n n e r
c. Servletrunnable
d. Servletenable

3. _ _ _ _ _ _ in t e r fa c e in d ic a t e s t h a t t h e s e r v le t is t h r e a d s a fe .
a. S in g le Th r e a d Mo d e l
b. Double Thread Model
c. Server Thread Model
d. Safe Thread Model

4. W h ic h o f t h e fo llo w in g m e t h o d c o m e s u n d e r S e r v le t R e s p o n s e in t e r fa c e ?
a. getProtocol( )
b. getScheme( )
c . g e t Ch a r a c t e r En c o d in g ( )
d. getServerPort( )

5. _ _ _ _ _ _ _ _ _ in t e r fa c e e n a b le s s e r v le t s t o lo g e v e n t s a n d a c c e s s in fo r m a t io n a b o u t t h e ir e n v ir o n m e n t .
a. Servlet
b. S e r v le t Co n t e x t
c. ServletConfig
d. Servlet Request
6. _ _ _ _ _ m e t h o d is in v o k e d o n ly w h e n t h e s e r v le t is fir s t lo a d e d in t o m e m o r y .
a. in it ( )
b. service( )
c. destroy( )
d. Thread( )

7. _ _ _ _ _ a r e s m a ll p r o g r a m s t h a t e x e c u t e o n t h e s e r v e r s id e o f a w e b c o n n e c t io n .
a. S e r v le t s
b. Cookies
c. Beans
d. Struts

8. D r a w b a c k o f Co m m o n Ga t e w a y I n t e r fa c e is
a. Platform Independent
b . N o t P la t fo r m in d e p e n d e n t
c. Creating a separate process for each client request was inexpensive
d. Inexpensive to open and close database connections for each client request

9. W h ic h o f t h e fo llo w in g m e t h o d is n o t c e n t r a l t o t h e life c y c le o f a s e r v le t ?
a. init( )
b. service( )
c. destroy( )
d . Th r e a d ( )

10. Th e s e r v e r c a lls t h e _ _ _ m e t h o d t o r e lin q u is h a n y r e s o u r c e s , s u c h a s file h a n d le s t h a t a r e a llo c a t e d fo r t h e s e r v le t .


a. init( )
b. service( )
c. de s troy( )
d. Thread( )

11. J S D K s t a n d s fo r
a. Java Server Development Kit
b . J a v a S e r v le t D e v e lo p m e n t Kit
c. Java Service Designer Kit
d. Java Servlet Dynamic Kit
12. W h ic h o f t h e fo llo w in g p a c k a g e is r e q u ir e d t o b u ild s e r v le t s ?
a . j a v a x . s e r v le t . h t t p
b. javax.sevlet.tree
c. javax.servlet.reflect
d. java.servlet.zip

13. _ _ _ _ in t e r fa c e a llo w s s e r v le t s t o g e t in it ia liz a t io n o f p a r a m e t e r s .


a. Servlet
b. ServletContext
c. S e r v le t Co n f ig
d. ServeltRequst

14. _ _ _ _ _ _ c la s s im p le m e n t s t h e S e r v le t a n d S e r v e lt Co n fig .
a. ServeltException
b. G e n e r ic S e r v lt
c. ServltRequest
d. ServletResponse

15. Th e _ _ _ _ _ _ _ m e t h o d is c a lle d b y t h e s e r v le t t o o b t a in in it ia liz a t io n p a r a m e t e r s .


a. getServletNames( )
b. getServletInfo( )
c. getServlet( )
d . g e t S e r v le t Co n f ig ( )

16. Th e _ _ _ _ _ _ _ _ _ _ _ m e t h o d is d a n g e r o u s t o u s e , b e c a u s e t h e y c a n c o r r u p t t h e s e r v e r ' s s t a t e m a c h in e .
a. getMimeType( )
b. g e t S e r v le t ( )
c. getRealpath( )
d. getAttribute( )

17. g e t Ch a r a c t e r En c o d in g ( ) m e t h o d is in _ _ _ _ _ _ _ _ _ _ _ in t e r fa c e .
a. ServletConfig
b. ServletContext
c. ServletRequest
d . S e r v le t R e s p o n s e

18. W h ic h o f t h e fo llo w in g m e t h o d is n o t in s e r v le t R e q u e s t in t e r fa c e ?
a . g e t Mim e Ty p e ( )
b. getRemoteAddr( )
c. getRemoteHost( )
d. getScheme( )

19. W h a t is t h e o p e r a t io n o f t h e f o llo w in g m e t h o d ? v o id
lo g ( Ex c e p t io n e , S t r in g s )
a. Read s and the stack trace for e to the server log
b. Read s and the queue trace for e to the server log
c . W r it e s a n d t h e s t a c k t r a c e fo r e t o t h e s e r v e r lo g
d. write and the queue trace for e to the server log

20. Th e r e t u r n t y p e o f g e t P a r a m e t e r Va lu e s ( ) m e t h o d is
a. String { }
b. String< >
c. String( )
d . S t r in g [ ]

21. Th e _ _ _ _ _ _ _ _ _ _ m e t h o d r e t u r n s t h e v a lu e o f t h e s e r v e r a t t r ib u t e n a m e d a t t r .
a . O b j e c t g e t At t r ib u t e ( s t r in g a t t r )
b. String getAttribute(string attr)
c. Void getAttribute(string attr)
d. int getAttribute(string attr)

22. _ _ _ _ _ _ c la s s in d ic a t e s t h a t a s e r v le t e r r o r o c c u r r e d .
a. ServletError
b. ServletIOException
c. S e r v le t E x c e p t io n
d. Servletexception

23. All s e r v le t s m u s t im p le m e n t t h e _ _ _ _ _ _ _ _ _ in t e r fa c e .
a . S e r v le t
b. ServletConfig
c. ServletContext
d. ServletRequest

24. Th e r e t u r n t y p e o f d e s t r o y ( ) m e t h o d is
a. int
b. String
c. char
d . v o id

25. Th e R e t u r n t y p e o f g e t S e r le t I n fo ( ) m e t h o d is
a. int
b . S t r in g
c. chat
d. void

26. Th e _ _ _ _ _ _ _ _ _ _ _ c la s s e x t e n d s S e r v le t Ex c e p t io n .
a. GenericServlet
b. ServletOutputStreem
c . Un a v a ila b le E x c e p t io n
d. ServletInputStream
2 7 . W h ic h o f t h e fo llo w in g m e t h o d c o m e s u n d e r S e r v le t Co n t e x t in t e r fa c e ?
a . g e t R e a lp a t h ( )
b. getContentLength( )
c. getScheme( )
d. getServerport( )

28. Th e r e t u r n t y p e o f g e t S e r v e r P o r t ( ) m e t h o d is
a . in t
b. string
c. char
d. void

29. _ _ _ _ _ _ _ _ _ in t e r fa c e e n a b le s a s e r v e lt t o fo r m u la t e a r e s p o n s e fo r a c lin e t .
a. ServeltRequest
b. S e r v le t R e s p o n c e
c. ServletConfig
d. ServletContext

30. _ _ _ _ _ _ _ _ m e th od re tu rn s th e port n u m be r.
a. getServerNum( )
b. getServerDigit( )
c. getPostServer( )
d. g e tSe rve rPo rt ( )

31. _ _ _ _ _ _ _ _ in t e r fa c e a llo w s s e s s io n s t o b e m a n a g e d .
a. HttpSession
b. H t t p S e s s io n Co n t e x t
c. HttpSessionBindingListener
d. HttpSessionRequest

32. Th e _ _ _ _ _ _ _ _ m e t h o d is c a lle d in t h e J a v a S e r v le t d e p e n d in g o n t h e m e t h o d Us e d b y t h e Clie n t .


a . d o Ge t ( ) o r d o P o s t ( )
b. doget( ) or doPost( )
c. doGet( ) & dopost( )
d. doget( ) or dopost( )
33. Th e in it ( ) m e t h o d d e c la r e d b y t h e S e r v le t in t e r fa c e r e c e iv e s a _ _ _ _ _ _ o b j e c t a s it s a r g u m e n t .
a. ServerConfig
b. ServiceConfig
c . S e r v le t Co n f ig
d. ServletConfigure

34. Th e _ _ _ _ _ _ _ _ m e t h o d d e c la r e d b y t h e S e r v le t in t e r fa c e r e t u r n s a S e r v le t Co n fig o b j e c t .
a . g e t S e r v e lt Co n fig ( )
b. getServerInfo( )
c. getContentLength( )
d. getContentType( )

35. W h ic h o f t h e fo llo w in g is n o t a Cla s s in j a v a x . s e r v e lt . h t t p p a c k a g e ?


a. HttpServlet
b. Cookie
c. HttpUtils
d. H t t p S e s s io n

36. _ _ _ _ _ _ _ _ _ _ e n a b le s y o u t o d e fin e a s e q u e n c e o f c o m m a - d e lim it e d p a r a m e t e r n a m e s a n d v a lu e s .


a. S e r v le t . n a m e .in it a r g s
b. Servlet.initservlet.initargs
c. Servlet.server.initvals
d. Servlet.initpar.initargs

37. Th e _ _ _ _ _ _ _ _ _ p a c k a g e c o n t a in s s e v e r a l in t e r fa c e s a n d c la s s e s t h a t a r e c o m m o n ly u s e d b y s e r v e le t d e v e lo p e r s .
a. javax.servlet.jsp
b. j a v a x . s e r v le t . h t t p
c. javax.servlet.html
d. javax.servlet.xml

38. W h ic h o f t h e fo llo w in g c la s s a llo w s s t a t e in fo r m a t io n t o b e s t o r e d o n a c lie n t m a c h in e ?


a. HttpUnits
b. HttpServlet
c. HttpSessionBindingEvent
d . Co o k ie

39. W h ic h o f t h e fo llo w in g is n o t a n in t e r fa c e o f j a v a x . s e r v le t . h t t p p a c k a g e ?
a . Ht t p S e r v e r Re q u e s t
b. HttpServletResponse
c. HttpServletRequest
d. HttpserverResponse

40. _ _ _ _ _ _ _ _ in t e r fa c e in fo r m s a n o b j e c t t h a t it is b o u n d t o o r u n b o u n d fr o m a s e s s io n .
a. HttpSession
b. H t t p S e s s io n B in d in g Lis t e n e r
c. HttpSessionContext
d. HttpServerResponse

41. H t t p S e r v e lt R e s p o n s e in t e r fa c e e n a b le s e r v le t s t o _ _ _ _ _ d a t a t o a n H TTP r e s p o n s e .
a. read
b. modify
c. execute
d . w r it

42. H t t p S e r v e lt R e q u e s t in t e r fa c e e n a b le s s e r v le t s t o _ _ _ _ _ _ _ d a t a t o a n H TTP r e q u s t .
a . re a d
b. modify
c. execute
d. write.

43. _ _ _ _ _ _ _ _ c la s s P r o v id e s m e t h o d s t o h a n d le H T TP r e q u e s t s a n d r e s p o n s e s .
a. HttpSession
b. HttpServelt
c. HttpUtils
d. Ht t p S e r v e r

44. W h ic h o f t h e fo llo w in g Cla s s in d ic a t e s w h e n a lis t e n e r is b o u n d t o o r u n b o u n d fr o m a s e s s io n v a lu e ?


a. HttpSessionBindingLirterer
b . H t t p S e s s io n B in d in g Ev e n t
c. HttpSessionContext
d. HttpSession

45. Th e g e t S e s s io n ( ) m e t h o d o b t a in s t h e s e s s io n t o w h ic h t h e lis t e n e r is b e in g b o u n d o r u n b o u n d . I t s s ig n a t u r e is
a . H t t p S e s s io n g e t S e s s io n ( )
b. String getSession( )
c. void getSession( )
d. Boolean getSession( )
46. W h ic h o f t h e fo llo w in g is n o t a m e t h o d in H t t p S e r v le t c la s s ?
a. doDelete( )
b. doGet( )
c. doOptions( )
d . d o Te s t ( )

47. A s e r v le t c a n w r it e a c o o k ie t o a u s e r ' s m a c h in e v ia t h e a d d Co o k ie ( ) m e t h o d o f t h e _ _ _ _ _ _ _ _ _ in t e r fa c e .
a. HttpSessionContext
b. HttpSession
c. H t t p S e r v le t R e s p o n s e
d. HttpSessionBindingListener

48. A _ _ _ _ _ _ _ _ _ m e t h o d is d e c la r e d t o r e t u r n a n e n u m e r a t io n a ll t h e s e s s io n I Ds in t h e H t t p s e s s io n Co n t e x t in t e r fa c e .
a. getID( )
b. setID( )
c. g e t I Ds ( )
d. setIDs( )

49. Th e _ _ _ _ _ _ _ c la s s p r o v id e s s t a t ic m e t h o d s , t h a t a r e u s e fu l fo r s e r v le t d e v e lo p e r .
a. Cookie
b. HttpServlet
c. HttpsessionBindingEvent
d . H t t p u t ils
50. Th e r e t u r n t y p e o f g e t La s t Mo d ifie d ( ) m e t h o d is
a. int
b . lo n g
c. String
d. void

51. _ _ _ _ _ _ _ m e t h o d r e t u r n s a n a r r a y o f t h e c o o k ie s in t h is r e q u e s t .
a. setCookies( )
b. putCookies( )
c. g e t Co o k ie s ( )
d. addCookie( )

52. W h ic h o f t h e fo llo w in g m e t h o d is r e la t e d H t t p S e r v le t R e s p o n s e in t e r fa c e ?
a . e n c o d e UR L( )
b. getServletPath( )
c. getRequestURL( )
d. isNew( )

53. Th e _ _ _ _ _ _ _ _ m e t h o d o b t a in s t h e n a m e t h a t is b e in g b o u n d ( o r ) u n b o u n d .
a. getSession( )
b . g e tNa m e ( )
c. getValue( )
d. getsession( )

54. W h ic h o f t h e fo llo w in g r e t u r n s t h e s e s s io n I D ?
a . g e t I D( )
b. takeID( )
c. setID( )
d. getSession( )

55. Th e r e t u r n t y p e o f is N e w ( ) m e t h o d is
a. long
b. int
c. void
d . b o o le a n

56. A _ _ _ _ _ _ _ _ is s t o r e d o n a c lie n t a n d c o n t a in s s t a t e in fo r m a t io n .
a. Bookie
b. HttpServelt
c. Co o k ie
d. Session

57. Th e _ _ _ _ _ _ _ c la s s e x t e n d s Ev e n t o b j e c t .
a. HttpSessionBlockEvent
b . H t t p S e s s io n B in d in g Ev e n t
c. HttpUnits
d. HttpServlet

58. Th e r e t u r n t y p e o f g e t Va lu e ( ) m e t h o d in t h e c o o k ie c la s s is
a. object
b. S t r in g
c. int
d. boolean

59. Th e _ _ _ _ _ _ _ _ _ c la s s e x t e n d s Ge n e r ic S e r v le t .
a. Cookie
b. HttpUtils
c. HttpSessionBindingEvent
d . H t t p S e r v le t

60. Th e _ _ _ _ _ _ m e t h o d is u s e d t o n o t ify t h e c lie n t t h a t a n e r r o r h a s o c c u r r e d .


a. sendRedirect( )
b . s e n d Er r o r ( )
c. sendDirect( )
d. sendFail( )

61. W h a t is H TTP 1 . 1 s t a t u s c o d e fo r r e s o u r c e n o t fo u n d ?
a. 400
b. 401
c. 403
d. 404

62. W h ic h o f t h e fo llo w in g H TTP R e s p o n s e H e a d e r , t h a t s p e c ifie s t h e t im e in m illis e c o n d s w h e n d o c u m e n t is o u t o f d a t e ?


a. Ex p ir e s
b. Location
c. Retry-After
d. Refresh

63. A J a v a s e r v le t c a n w r it e t o t h e H TTP r e s p o n s e h e a d e r b y c a llin g t h e _ _ _ _ _ _ _ m ethod of th e


H t t p S e r v le t R e s p o n s e o b j e c t .
a. putStatus( )
b. getStatus( )
c. s e t St a t u s ( )
d. setValueStatus( )

64. W h ic h o f t h e fo llo w in g H TTP R e s p o n s e H e a d e r t h a t in d ic a t e s t h e n u m b e r o f s e c o n d s t o w a it b e fo r e a s k in g fo r a


pa ge update?
a . Re fr e s h
b. Retry-After
c. Location
d. Expires

65. _ _ _ _ _ _ _ H TTP R e s p o n s e H e a d e r in s t r u c t s t o u s e o r n o t u s e p e r s is t e n c e .
a. Allow
b. Cache-control
c. Close
d. Co n n e c t io n

66. Th e _ _ _ _ _ _ is in v o k e d w h e n a fo r m o n a w e b p a g e is s u b m it t e d .
a . s e r v le t
b. cookie
c. session
d. bookie

67. _ _ _ _ _ _ _ file d is p la y s c o o k ie v a lu e s .
a. AddCookie.htm
b. AddCookieServlet.java
c. MyCookie
d. G e t Co o k ie S e r v le t . j a v a

68. _ _ _ _ _ _ _ file p r o c e s s e s t h e s u b m is s io n o f Ad d Co o k ie . h t m .
a. AddCookie.htm
b. Ad d Co o k ie S e r v le t . j a v a
c. MyCookie
d. GetCookieServlet.java

69. _ _ _ _ _ _ _ file a llo w s a u s e r t o s p e c ify a v a lu e fo r t h e c o o k ie n a m e d My Co o k ie .


a . Ad d Co o k ie . h t m
b. AddCookieServlet.java
c. MyCookie
d. GetCookieServlet.java

70. A _ _ _ _ _ is a s m a ll a m o u n t o f d a t a t h a t is s a v e d o n t h e c lie n t s m a c h in e a n d c a n b e c r e a t e d b y a n d r e fe r e n c e d
b y a J a v a S e r v le t
a. servlet
b . c o o k ie
c. session
d. bookie

71. H TTP is _ _ _ _ p r o t o c o l.
a. state
b . s t a t e le s s
c. bound
d. unbound

72. Th e _ _ _ _ _ _ m e t h o d r e t u r n s a n a r r a y o f Co o k ie o b j e c t s .
a. g e t Co o k ie s ( )
b. addCookie( )
c. arrayCookie( )
d. putCookie( )

73. A J a v a s e r v le t is c a p a b le o f t r a c k in g s e s s io n s b y u s in g t h e _ _ _ _ _ _ .
a. HttpSessionTrack API
b. HttpSession HAPI
c. H t t p S e s io n AP I
d. HttpTrackSession API

74. B u s in e s s lo g ic c o d e c a n b e h a n d le d b y
a . J a v a Be a n s
b. Java Mail
c. Java Message Service
d. JDBC

75. Te m p la t e t e x t c a n b e u s e d a s
a. HTTP
b. JSP
c. EJB
d . W ML

76. W ML s t a n d s fo r
a. Web Markup Language
b. Wrapper Markup Language
c . W ir e le s s Ma r k u p La n g u a g e
d. Web page Markup Language

77. J S P p a g e s a r e _ _ _ _ fo r e ffic ie n t s e r v e r p r o c e s s in g .
a. Recompiled
b . Co m p ile d
c. Executed
d. Re executed

78. J S P is a n in t e g r a l p a r t o f _ _ _ _ _ _ _ _ .
a. J2ME
b. J2SE
c . J 2 EE
d. J2CS

79. J S P s t a n d s fo r
a. Java Script Pages
b. Ja va Se rve r P a g e s
c. Java Servlet pages
d. Java Support Pages
8 0 . Th e p r o b le m w it h s e r v le t s is
a. P r o c e s s in g t h e r e q u e s t a n d g e n e r a t in g t h e r e s p o n s e a r e b o t h h a n d le d b y a s in g le s e r v le t c la s s
b. Processing the request and generating the response are both handled by a two servlet classes
c. Processing the request and generating the response are both handled by a three servlet classes
d. Processing the request and generating the response are both handled by a four servlet classes

8 1 . Ev e r y t h in g in t h e p a g e t h a t is n o t a J S P e le m e n t is c a lle d _ _ _ _ _ _ _ _ .
a. JSP container
b. JSP request
c. template element
d . t e m p la t e t e x t

8 2 . Th e a n a t o m y o f a J S P p a g e c o n t a in s
a. JSP container and JSP request
b. JSP request and template text
c . J S P e le m e n t a n d t e m p la t e t e x t
d. Template text and JSP request

8 3 . W h ic h o f t h e fo llo w in g is n o t a p o p u la r t e c h n o lo g y fo r d e v e lo p in g d y n a m ic w e b s it e s ?
a. HP H
b. ASP
c. JSP
d. PHP
8 4 . Th e _ _ _ _ _ _ is o ft e n im p le m e n t e d a s a s e r v le t c o n fig u r e d t o h a n d le a ll r e q u e s t s fo r J S P p a g e s .
a. J S P Co n t a in e r
b. Servlet Container
c. JSTL
d. Server
8 5 . W h ic h o f t h e fo llo w in g s t a n d a r d a c t io n e le m e n t m a k e s a J a v a B e a n s c o m p o n e n t a v a ila b le in a p a g e ?
a. <jsp:setProperty>
b. <jsp:include>
c. < js p :u s e Be a n >
d. <jsp:param>

8 6 . d ir e c t iv e e le m e n t s a r e d e fin e d in _ _ _ _ _ _ t a g .

87. _ _ _ _ _ _ _ a r e t y p ic a lly u s e d a s c o n t a in e r s fo r in fo r m a t io n t h a t d e s c r ib e s a p p lic a t io n e n t it ie s , s u c h a s a c u s t o m e r o r


a n o rd e r.
a. Directive elements
b . J a v a B e a n s e le m e n t s
c. Scripting elements
d. Standard action elements

88. W h ic h o f t h e fo llo w in g s c r ip t in g e le m e n t is u s e d t o e m b e d s c r ip t in g c o d e e x p r e s s io n s w h e n t h e r e s u lt s h a ll b e a d d e d t o
th e re s pon s e?
a.
bCd
.

8 9 . A s e r v le t c o n t a in e r a n d a J S P c o n t a in e r a r e o ft e n c o m b in e d in o n e p a c k a g e u n d e r t h e n a m e _ _ _ _ _ _ _ .
a. Server
b. JSTL
c. JSP Container
d . W e b Co n t a in e r

9 0 . W h ic h o f t h e fo llo w in g is a s t a n d a r d a c t io n e le m e n t o f J S P ?
a. <jsp:throwBean >
b . < j s p : in c lu d e >
c. <jsp:backward>
d. <jsp:plug>
91. W h ic h o f t h e fo llo w in g s c r ip t in g e le m e n t u s e d t o e m b e d s c r ip t in g c o d e ?
a bc
d

92. T h e _ _ _ _ _ _ e le m e n t s , s p e c if y i n f o r m a t io n a b o u t t h e p a g e it s e lf t h a t r e m a in s t h e s a m e b e t w e e n
r e q u e s t s . a. standard action
b. custom action
c. scripting
d . d ir e c t iv e

93. _ _ _ _ _ _ _ c a n b e u s e d d ir e c t ly in t e m p la t e t e x t o r t o a s s ig n v a lu e s t o a c t io n e le m e n t a t t r ib u t e s .
a. Directive elements
b. Scripting elements
c. E L e x p r e s s io n s
d. Custom action elements

94. _ _ _ _ _ _ _ _ e le m e n t s t y p ic a lly p e r fo r m s o m e a c t io n b a s e d o n in fo r m a t io n t h a t is r e q u ir e d a t t h e e x a c t t im e J S P
p a g e is r e q u ir e d b y a b r o w s e r .
a. Directive
b . S t a n d a r d a c t io n
c. Custom action
d. Scripting

95. _ _ _ _ _ _ _ e le m e n t s , a llo w y o u t o a d d s m a ll p ie c e s o f c o d e in a J S P p a g e , s u c h a s a n if s t a t e m e n t t o g e n e r a t e
d iffe r e n t H TML d e p e n d in g o n a c e r t a in c o n d it io n .
a. Directive
b. Standard action
c. Custom action
d . S c r ip t in g

96. I n MVC t e r m s , t h e Mo d e l c o r r e s p o n d s t o
a. Presentation
b. Request processing
c . B u s in e s s lo g ic a n d d a t a
d. Response

97. Th e _ _ _ _ _ _ is a ls o r e s p o n s ib le fo r in v o k in g t h e J S P p a g e im p le m e n t a t io n c la s s t o p r o c e s s e a c h r e q u e s t a n d
gen e rate the res pons e.
a . J S P c o n t a in e r
b. Servlet container
c. Web container
d. Server container
98. W h ic h o f t h e fo llo w in g s c r ip t in g e le m e n t is u s e d t o d e c la r e v a r ia b le s a n d m e t h o d s in t h e J S P p a g e im p le m e n t a t io n c la s s ?
a.

9 9 . W h a t is t h e d e fa u lt s h e ll fo r Lin u x ?
a. born
b. bash
c. c
d. korn
1 0 0 . J R E s t a n d s fo r
a . J a v a R u n t im e En v ir o n m e n t
b. Jakartha Runtime Environment
c. Java Recovered Exception
d. Java Runtime Exception

1 0 1 . To m c a t c a n b e c o n fig u r e d t o u s e _ _ _ _ _ _ _ in s t e a d o f t h e j a v a c c o m p ile r a v a ila b le in t h e j a v a 2 S D K fr o m S u n .


a. kikies
b. pikies
c . j ik ie s
d. tikies

102. _ _ _ is a p u r e J a v a w e b s e r v e r w it h s u p p o r t fo r t h e s e r v e le t 2 . 4 a n d J S P 2 . 0 s p e c ific a t io n s .
a. tomcat 2
b. tomcat 3
c. tomcat 4
d. tom ca t 5

103. To m c a t is p u r e
a . w e b s e rve r
b. web container
c. web browser
d. web application

104. P ATH e n v ir o n m e n t v a r ia b le is lo c a t e d in w h ic h d ir e c t o r y ?
a. /include
b. /lib
c . b in
d. /web-app
1 0 5 . I n J a v a t o s e e w e a t h e r t h e e n v ir o n m e n t v a r ia b le is s e t o r n o t , w h a t is t h e c o m m a n d y o u c a n u s e in w in d o w s ?
a . e c h o % j a v a _ H O ME %
b. export Java _ HOME= / usr / local/jdk1.1.2
c. expost cotalinw _ HOME= / usr / local /
d. export PATH = $ JAVA _ HOME/bin

106. In J S P p a g e h o w m a n y t y p e s o f b u ild s a r e a v a ila b le ?


a. 2
b. 4
c. 3
d. 5

107. I n t h e d e v e lo p m e n t o f To m c a t , w h ic h y o u c a n u s e fr o m t h e fo llo w in g ?
a. Milestone builds
b . N ig h t ly b u ild s
c. Release builds
d. Export builds

108. Mo s t o p e r a t in g s y s t e m v e n d o r s h a v e t h e ir o w n _ _ _ _ im p le m e n t a t io n a v a ila b le fo r fr e e .
a. sdk
b. jsk
c. jkc
d. jsp

109. c: Ja ka rta Ja k a rt a - t o m ca t b in > c o m m a n d . c o m / E: 4 0 9 6 / p t h is c o m m a n d s e t s t h e e n v ir o n m e n t s p a c e t o _ _ _ _ _ _


_ _
a. 6KB
b. 4 KB
c. 2KB
d. 8KB

110. _ _ _ _ _ _ _ _ is t h e n a m e o f t h e J S P c o n t a in e r
a. kasper
b. ja s pe r

c. tasper
d. sasper
1 1 1 . I n w h ic h d ir e c t o r y W in d o w s b a t c h file s u s e d f o r s t a r t in g a n d s t o p p in g t h e s e r v e r ?
a. /lib
b . / b in
c. /include
d. /web-app

1 1 2 . W h ic h o f t h e fo llo w in g b u ild is v e r y u n s t a b le ?
a. milestone builds
b. release builds
c . n ig h t ly b u ild s
d. accept builds

113. _ _ _ _ _ _ _ is t h e n a m e o f t h e s e r v le t c o n t a in e r
a. Ca t a lin a
b. Satalina
c. Matalina
d. Tatalina

114. W h a t is t h e e r r o r m e s s a g e y o u r u n s t a r t u p . b a t file in W in d o w s 9 5 / 9 8 / ME?


a. file not found
b. file server not found
c. http status 400 not found
d . o u t o f e n v ir o n m e n t s p a c e

115. W h ic h file is t h e m a in s c r ip t fo r c o n t r o llin g t h e s e r v e r ?


a. startup.bat
b. shutdown.bat
c . c a t a lin a . b a t
d. restart.bat

116. W h a t is t h e d e fa u lt lo c a t io n fo r a p p lic a t io n s s e r v e d b y t o m c a t ?
a. /conf
b. / w ebapps
c. /bin
d. /include

117. I n t e s t in g To m c a t , if s o m e t h in g d o e s n o t w o r k a s e x p e c t e d , y o u w ill lo o k in t o w h ic h d ir e c t o r y ?
a. /work
b. /conf
c . / lo g s
d. /webapps
1 1 8 . _ _ _ _ _ a r e s t a b le r e le a s e s t h a t h a v e b e e n t e s t e d e x t e n s iv e ly a n d v e r ifie d t o c o m p ly w it h t h e s e r v le t a n d J S P
s p e c ific a t io n .
a. milestone builds
b . r e le a s e b u ild s
c. nightly builds
d. accept builds

119. _ _ _ _ _ _ a r e c r e a t e d a s in t e r e s t in g s t e p s t o w a r d s a r e le a s e b u ild .
a. m ile s t o n e b u ild s
b. release builds
c. nightly builds
d. accept builds

120. Th e _ _ _ _ _ _ _ _ d ir e c t o r y c o n t a in s Un ix s c r ip t s fo r s t a r t in g & s t o p p in g t h e s e r v e r .
a. root
b. home
c. conf
d . b in

121. Th e _ _ _ _ _ _ _ _ d ir e c t o r y fo r t h e e x a m p le a p p lic a t io n c o n t a in s a n o o f J AR file s


a. bin
b. classes
c . lib
d. home

122. W h ic h o f t h e fo llo w in g is a s u b d ir e c t o r y o f t o m c a t h o m e d ir e c t o r y ?
a . lo g s
b. binary
c. config
d. webapplications

123. I f s o m e t h in g d o e s n o t w o r k a s e x p e c t e d lo o k in t h e file s in _ _ _ _ _ _ _ d ir e c t o r y fo r c lu e s a s t o w h a t ' s w r o n g .


a. work
b. bin
c. conf
d . lo g s
124. W EB - I N F d ir e c t o r y c o n t a in s w h ic h file a n d d ir e c t o r y ?
a . w e b . x m l, lib , a n d c la s s e s
b. web.xml, lib, and objects
c. container, lib, and classes
d. web.xml, bin, and classes

125. W h o is n o t c o n t r ib u t in g t o To m c a t fr o m t h e fo llo w in g ?
a. Oracle
b. IBM
c. Netscape
d. Mic r o s o f t

126. W h ic h o f t h e fo llo w in g is a s u b d ir e c t o r y o f t o m c a t h o m e d ir e c t o r y ?
a. binary
b. config
c. w o rk
d. webapplications

127. To m c a t c o n fig u r a t io n file s a r e s t o r e d in _ _ _ _ _ _ _ d ir e c t o r y


a . conf
b. bin
c. web applications
d. logs

128. In w h ic h d ir e c t o r y t e m p o r a r y file s c r e a t e d b y J S P c o n t a in e r a n d o t h e r file s ?


a. /logs
b. / w ork
c. /conf
d. /bin

129. W h a t is t h e d e fa u lt p o r t n u m b e r , w h ic h is u s e d in To m c a t s e r v e r ?
a. 80
b. 8080
c. 2525
d. 25

130. H o w m a n y p r o j e c t s J a k a r t h a in c lu d e s ?
a. 2
b. 4
c. 3
d. 5

131. _ _ _ _ _ _ _ is a d ir e c t o r y fo r t e m p o r a r y file s c r e a t e d b y t h e J S P c o n t a in e r a n d o t h e r file s .


a. logs
b. w ork
c. conf
d. webapplications

132. In J S P t a g lib d ir e c t iv e m a y c o n t a in h o w m a n y a t t r ib u t e s ?
a. 3
b. 4
c. 5
d. 2

133. W h ic h p r o t o c o l w e w ill u s e in w e b a p p lic a t io n s ?


a. FTP
b. SMTP
c . H TTP
d. TCP/IP

134. Ma t c h t h e fo llo w in g
1 . com m e n ts ; ; ; ; ; ; ; ; ; ; ; ; a )
2 . e x p r e s s io n s ; ; ; ; ; ; ; ; ; ; ; ; b )
3 . s c r ip le t ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; c )
4 . d e c la r a t io n s ; ; ; ; ; ; ; ; ; ; ; ; d )
b. 1 -c, 2 -d , 3 -a , 4 -b
c. 1-a, 2-b, 3-d, 4-c
d. 1-d, 2-c, 3-a, 4-b
e. 1-c, 2-d, 3-b, 4-a

135. I n J S P p a g e d ir e c t iv e c o n t e n t t y p e a t t r ib u t e is o f w h ic h t y p e s p e c ifie r ?
a . MI ME t y p e
b. JPEG type
c. MPEG type
d. ZIP type
a. custom tag library
b . J S TL
c. Expression language
d. Directory

137. W h ic h o f t h e fo llo w in g is n o t a J S P d ir e c t o r y ?
a. page
b . u s e Be a n
c. include
d. taglib

138. W h ic h file c o n t a in s in fo r m a t io n a b o u t s e c u r it y r e q u ir e m e n t s in J S P p a g e ?
a . w e b .xm l
b. index.html
c. orataglib-3-0.jar
d. startup.bat

139. W h ic h is d e p lo y e d w h e n c r e a t in g t h e c o n t e x t p a t h ?
a. .jar b . . w a r c. .xml d. .jsp

140. W h ic h d ir e c t o r y c o n t a in s t h e a p p lic a t io n d e p lo y m e n t d e s c r ip t io n ?
a. /Catalina
b. /lib
c. /bin
d . / W EB- I N F

141. W h ic h a t t r ib u t e o f t h e p a g e d ir e c t iv e is u s e d t o h a n d le r u n t im e e x c e p t io n s ?
a. e rrorpa g e
b. isErrorpage
c. import
d. info

142. A J S P d ir e c t iv e e le m e n t s s t a r t s w it h w h ic h id e n t ifie r ?
a.
b. <@
c. < % @
d. <@ %

143. Ge n e r a t in g t h e J a v a s e r v le t s o u r c e c o d e fr o m a > j s p file is k n o w n a s


a. request time
c. t r a n s la t io n t im e
d. wait time
e. average time

144. J S P a c t io n e le m e n t s c a n b e in v o k e d a t
a. compile time
b . r u n t im e
c. load time
d. translate time

145. H o w m a n y c a t e g o r ie s o f J S P e le m e n t s c a n b e g r a s p e d ?
a. 2
b. 4
c. 3
d. 5

146. W h ic h o f t h e fo llo w in g s t a n d a r d a c t io n e le m e n t s a d d s a p a r a m e t e r v a lu e t o a r e q u e s t o f t o a n o t h e r s e r v le t o r J S P p a g e ?
a.
b.
c.
d.

1 4 7 . W h ic h m e t h o d w ill b e fa s t e r a t r u n t im e ?
a.
b.
c.
d.

1 4 8 . W h ic h o f t h e fo llo w in g s c r ip t in g e le m e n t is u s e d fo r a b lo c k o f c o d e t o b e e x e c u t e d ?
a. Declaration
b. Expression
c. Statement
d. S c r ip t le t s

149. I n h o w m a n y w a y s t o in c lu d e o t h e r r e s o u r c e s in J S P ?
a. 4
b. 3
c. 2
d. 1

1 5 0 . I n w h ic h o f t h e fo llo w in g J S P p a g e d ir e c t iv e is u s e d t o c o p y s t a t ic t e x t in t o J S P s o u r c e c o d e ?
a.

d.

1 5 1 . W h ic h m e t h o d w ill b e fa s t e r a t c o m p ile t im e ?
a.
b.

c.

d.

1 5 2 . H o w m a n y t y p e s o f s c r ip t in g e le m e n t s a r e t h e r e ?
a. 2
b. 3
c. 4
d. 5

153. _ _ _ _ _ _ _ o b j e c t s a r e in s t a n c e s o f c la s s e s d e fin e d b y t h e s e r v le t o f J S P s p e c ific a t io n .


a. im p lic it
b. explicit
c. internal
d. external

154. _ _ _ _ _ _ _ _ v a r ia b le c o n t a in a r e fe r e n c e t o a n o b j e c t r e p r e s e n t s c u r r e n t r e s p o n s e t im e .
a. request
b. re s pon s e
c. session
d. out

1 5 5 . W h e n fix e d s e r v le t is lo a d e d , w h ic h o f t h e fo llo w in g m e t h o d is c a lle d b y t h e c o n t a in e r ?


a . i n it ( )
b. destroy( )
c. service( )
d. serinit( )
156. _ _ _ _ _ _ _ _ is d e c la r e d in J S P s c r ip le t o r d e c la r a t io n .
a. scoped variable
b. s c r ip t in g v a r ia b le
c. session variable
d. page variable

1 5 7 . I n J S P s p e c ific a t io n p r o v id e s a p a g e c o n t e x t o b j e c t p r o v id e s h o w m a n y le v e ls o f a t t r ib u t e s ?
a. 2
b. 3
c. 4
d. 5

158. _ _ _ _ _ j s p s e r v ic e ( ) m e t h o d a v a ila b le in w h ic h js p c la s s ?
a. javax.servlet.
b. javax.servlet.jsp.
c. j a v a x . s e r v le t . j s p . j s p p a g e
d. javax.servlet.jsp.jspEngine Info

1 5 9 . W h a t is s u c c e s s fu l s t a t u s o n H TTP m e s s a g e ?
a. 400
b. 100
c. 2 0 0
d. 300

1 6 0 . Co lle c t io n o f t a g s a r e o r g a n iz e d in t o t a g lib r a r ie s t h a t c a n b e p a c k a g e d a s _ _ _ _ _ file s .


a. zip
b . ja r
c. war
d. tar

161. In v a lu e a t t r ib u t e c o d e , t h e v a lu e o f e x p r e s s io n m u s t b e
a. int
b. character
c. s t r in g
d. byte
162. A c la s s a t t r ib u t e v a lu e in t h e < j s p : u s e b e a n > a c t io n m u s t b e k n o w n in t h e
a. t r a n s it io n p h a s e
b. request phase
c. service phase
d. response phase

163. _ _ _ _ _ _ _ is a J a v a c la s s t h a t e x t e n d s a s e r v e r w it h fo x fo r p r o c e s s in g a r e q u e s t a n d p r o v id in g r e s p o n s e .
a. Bean
b. S e r v le t
c. Structs
d. Hibernate

164. A _ _ _ _ _ _ _ _ is a c o m p o n e n t t h a t c a n in t e r c e p t a r e q u e s t t a r g e t e d fo r a s e r v le t .
a. Filter
b. S e r v le t
c. Jsp
d. Web

165. W h ic h m e t h o d is t h e h e a r t o f t h e J S P r e q u e s t p r o c e s s in g lo g ic ?
a. jspDestroy( )
b. jspInit( )
c. service( )
d . j s p S e r v ic e ( )

166. W h ic h m e t h o d w ill b e in v o k e d in H TTP r e q u e s t p r o c e s s in g ?


a. GET
b. POST
c. PUT
d . D ELETE

167. TLD s t a n d s fo r
a . t a g lib r a r y d e s c r ip t o r
b. tag library development
c. tag language descriptor
d. tag language development

168. Mm a p p in g t a g lib r a r ie s c a n b e d o n e in w h ic h file ?


a . xm l
b. class
c. java
d. jsp

169. O b j e c t in t h e _ _ _ _ _ _ _ _ _ a r e a v a ila b le t o a ll r e q u e s t m a d e fr o m s a m e b r o w s e r .
a. page
b . s e s s io n
c. request
d. application

170. A _ _ _ _ _ _ _ _ _ is a n a m e fr a m e p a ir t h a t t h e s e r v e r p a s s e s t o t h e b r o w s e r in r e s p o n s e h e a d e r ?
a. session
b. c o o k ie
c. request
d. response

171. J CA s t a n d s fo r
a. Java Connection Architecture
b . J S P c o n n e c t io n Ar c h it e c t u r e
c. J2EE connector Architecture
d. JDBCdbc connection Architecture

172. J TA s t a n d s fo r
a . J a v a Tr a n s a c t io n AP I
b. Java Transrormsaction API
c. Java Transmit API
d. Java Transfer API

173. W h ic h o f t h e fo llo w in g c la s s is t h e s u p e r c la s s fo r a ll J S P r e le a s e d e x c e p t io n ?
a. Exception ( )
b . J s p E x c e p t io n ( )
c. JspTagException ( )
d. SkipPageException ( )

174. _ _ _ _ _ _ _ _ is a in t e r n a l t o b e u s e d b y t a g h e a n d le r t o in d ic a t e u n r e c o v e r d a b a le e r r o r ?
a. JspException( )
b. J s p T a g E x c e p t io n ( )
c. ELEexception ( )
d. ELPageE xceptionxception ( )
175. A s im p le t a g h a n d le r t h r o w n a _ _ _ _ _ e x c e p t io n t o t e ll t h e c o n t a in e r t o s t o p p r o c e s s in g a p a g e .
a. ELParse
b. JSPException
c. S k ip P a g e
d. JSPTag

176. In J S P , j a v a x .S e r v le t . J s p .. js p F a c t o r y is a _ _ _ _ _ _ _ _ _
a. Calass
b. Inter face
c. Ab s t r a c t c la s s
d. Null Interface

177. In J S P , j a v a x .S e r v le t . J s p . J s p P a g e is a _ _ _ _ _ _ _ _ _
a. Claalss
b. I n t e r fa c e
c. Abstract class
d. Null Interface

178. _ _ _ _ _ _ _ in t e r fa c e p r o v id e s m e t h o d s fo r h a n d lin g e x c e p t io n s t h r o w n w h ile e v a lu a t in g a b o d y o f a n a c t io n


e le m e n t s .
a. Try
b. T r y Ca t c h F in a lly
c. TryCatch
d. Finally

179. _ _ _ _ _ c la s s r e p r e s e n t s a n in t e r f a c e t o t h e g e n e r ic r u n t im e e n v ir o n m e n t a v a ila b le t o s im p le t a g h a n d le r .
a. Bodytagsupport
b. Bodycontext
c. Requestdispatcher
d. JSPconte xt

180. To c r e a t e n e w c o n s t r u c t o r in J S P w it h n o e r r o r m e ssnages ?
a. exception( )
b . j J s p E x c e p t io n ( )
c. jJsp Init()
d. jJspSservice( )

181. I n J S P t o r e t u r n s t h e e x c e p t io n t h a t c a u s e d ?
a. get Ccaunse( )
b. getR root( )
c. get Mmanage( )
d . g e t Rr o o t ca n s e ( )

182. A s u b in t e r fa c e o f J S P Ex c e p t io n En g in e u s e d in t a g s e r v le t s t o in d ic a t e s a _ _ _ _ _ _
a. Compile time error
b. R r u n t im e e r r o r
c. Fatal error
d. Logical error

183. In J S P , j a v a x .s e r v le t . js p . p a g e Cc o n t e x t is a _ _ _ _ _ _ _ _
a. class
b. a b s t r a c t c la s s
c. interface
d. null interface

184. Th e c o n t a in e r m e a n s a n in s t a n c e o f Er r o r D a t a a v a ila b le fo r J S P s p e r r o r p a g e s t h r o u g h t h e _ _ _ _ _ _ _ fo r
the
a . p a g e co n t e xt
b. Application context
c. Session
d. Request context

1 8 5 . W h ic h o f t h e fo llo w in g a c t io n c a n o n ly b e u s e d in t h e b o d y o f is a a c t io n ? a.

186. In H TTP r e s p o n s e c o d e s 3 x x s p e c ie s ?
a. In formational
b. Success
c. Server error
d. R e d ir e c t io n

1 8 7 . Th e o u t v a r ia b le is a s s ig n e d t o a c o n c r e t e s u b c la s s o f _ _ _ _ _ _ a b s t r a c t c la s s b y t h e w e b c o n t a in e r ?
a. Page context
b. Application context
c . J S P w r it e r
d. JSP Rreader
188. I n H TTP r e s p o n s e c o d e s 5 XX s p e c ifie s
a. informational
b. success
c. client error
d. s e rve r e rro r

1 8 9 . W h ic h o f t h e fo llo w in g s t a n d a r d a c t io n c a n b e u s e d t o p r o v id e s u p p o r t fo r c o o k ie g e n u in e t r a c k in g ?
a.

190. Th e p r o c e s s o f c o n v e r t in g o b j e c t s t o a s t r e a m o f b y t e s t h a t c a n b e s t o r e d in a file o r t r a n s m it t e d n e t w o r k
is
a. internalization
b . s e r ia liz a t io n
c. externalization
d. synchronize
191. In H TTP r e s p o n s e c o d e s 4 XX s p e c ifie s
a. informational
b. success
c. c lie n t e r r o r
d. server error

192. < s p : f o r w a r d > a c t io n s t o p s p r o c e s s in g o f o n e p a g e a n d s t a r t s p r o c e s s in g a p a g e s p e c if ie d b y t h e p a g e


a t t r ib u t e c a lle d t h e
a. front page
b. home page
c. web page
d. ta rge t pa ge

193. W h e n b r o w s e r s e n d s r e q u e s t t o a s e r v e r it c h e c k s it s _ _ _ _ _ _ a n d in c lu d e a ll c o o k ie s it h a s r e c e iv e d
fr o m t h e s a m e s e r v e r .
a . c o o k ie J AR
b. cookie WAK
c. cookie
d. cookie Zip

194. A s m a ll n a m e d d a t a e le m e n t s a r e s e n t t o t h e c lie n t a n d r e t u r n e d t o t h e s e r v e r w h e n t h e p a g e is r e g is t e r e d
?
a. session
b. url
c . c o o k ie
d. hidden fields
1 9 5 . I n H TTP r e s p o n s e c o d e 1 0 0 in d ic a t e s
a. ok
b . c o n t in u e
c. created
d. switching protocol

196. _ _ _ _ _ _ _ _ r e p r e s e n t s p u r e b u s in e s s d a t a a n d r u le s fo r h o w t o u s e t h is d a t a .
a. view
b. controller
c. m odel
d. userinterfere

197. _ _ _ _ _ _ _ _ _ is fo r o b j e c t t h a t n e e d t o b e a v a ila b le t o a ll p a g e s p r o c e s s in g a s a m e r e q u e s t .
a. page scope
b. re que st scope
c. session scope
d. application scope

198. _ _ _ _ _ _ _ _ _ k e e p t h e in fo r m a t io n o n t h e s e r v e r a n d p a s s o n ly a n id e n t ifie r b e t w e e n a b r o w s e r s a n d
s e rve rs .
a. URL Rewriting
b . S e s s io n t r a c k in g
c. Session ID
d. Session Control

199. Th e d e fa u lt s c o p e fo r o b j e c t a r e
a . pa ge s cop e
b. application scope
c. request scope
d. session scope

200. O n a p a g e r e f e r e n c e s t a r t s w it h / it s in t e r r u p t e d r e la t iv e t o t h e t o p d ir e c t o r y fo r t h e a p p lic a t io n s w e b
p a g e file s , t h is is c a lle d
a. page relative path
b. c o n t e x t r e la t iv e p a t h
c. absolute path
d. relative path
201. _ _ _ _ _ _ _ _ is a c o n n e c t io n t y p e t h a t p r o v id e s a c c e s s t o in d iv id u a l e le m e n t s t h r o u g h a s id e n t ifie r k n o w n
a s ke y ?
a. map
b. list
c. hash
d. class

202. Th e t e r m w h ic h is n o t r e la t e d w e b a p p lic a t io n d e p lo y m e n t
a. servlet container
b. Jsp container
c. Web container
d . Co lle c t io n s

203. W h ic h t y p e d r iv e r is a p u r e J a v a lib r a r y t h a t t r a n s la t e J D B C r e q u e s t s d ir e c t ly t o d a t a b a s e - s p e c ific


protocol ?
a. type - 1 driver
b. type -2 driver
c. type -3 driver
d . t y p e - 4 d r iv e r

204. _ _ _ _ _ _ _ _ _ is s e t o f c la s s e s a n d in t e r fa c e s it a llo w s a J a v a a p p lic a t io n t o h a n d le S Q L s t a t e m e n t s t o a


d a t a b a s e in a w in d o w in d e p e n d e n t w a y ?
a . J D B C AP I
b. JNDI
c. JDO
d. ODBC

205. J 2 EE d e fin e s m o r e fle x ib le w a y t o m a k e a d a t a s o u r c e o r a n y o t h e r s h a r e d r e s o u r c e s a v a ila b le t h r o u g h a _ _ _ _ _


_ _ ?
a. JDBC
b. ODBC
c. J NDI
d. JMS

206. W h ic h t y p e d iv e r t r a n s la t e s J D B C t o O D B C a n d r e lie s o n a n O D B C d r iv e r t o c o m m u n ic a t e w it h t h e d a t a b a s e
?
a . t y p e - 1 d r iv e r
b. type -2 driver
c. type -3 driver
d. type - 4 driver

207. W h ic h t y p e d r iv e r is a p u r e J a v a c lie n t lib r a r y fo r d a t a b a s e ?


a. type - 1 driver
b. type -2 driver
c . t y p e - 3 d r iv e r
d. type - 4 driver
2 0 8 . W h ic h m e t h o d s y o u m u s t c a ll o n c e m o r e t h e it e r a t o r t o t h e fir s t r o w ?
a. first( )
b. ne xt( )
c. previous( )
d. last ( )
209. Ge t c o n n e c t io n ( ) m e t h o d is a v a ila b le in w h ic h c la s s ?
a. drive
b . d r iv e m a n a g e r
c. statement
d. result set

210. H o w m a n y t y p e s o f d r iv e r s e x it s in J a v a ?
a. 2
b. 3
c. 4
d. 5

211. W h ic h c la s s m a n a g e s a lis t o f d a t a b a s e d r iv e r s ?
a. driver
b . d r iv e r m a n a g e r
c. connection
d. statement

212. W h ic h t y p e d r iv e r is w r it t e n p a r t ly in J a v a a n d p a r t ly in n a t iv e c o d e
a. type - 1 driver
b . t y p e - 2 d r iv e r
c. type -3 driver
d. type - 4 driver

213. I n t e g e r o r I n t d a t a t y p e c a n o c c u p y h o w m a n y b it s in S Q L ?
a. 16 bits
b . 3 2 b it s
c. 48 bits
d. 64 bits
214. O CI s t a n d s fo r _ _ _ _ _ _ _ _ _
a. Object Call Interface
b. Oracle Connection Interface
c . O r a c le Ca ll I n t e r fa c e
d. Object Connection Interface

215. S t a t e m e n t u s e d t o e x e c u t e _ _ _ _ _ _ _ _ _ S Q L s t r in g s ?
a. dynamic
b . s t a t ic
c. user level
d. run time

216. W h ic h o n e o f t h e fo llo w in g is n o t a d a t a b a s e ?
a. SQL
b. My SQL
c. Dbase
d . Sa p

217. P r e c o m p ile d S Q L s t a t e m e n t s c a n b e w r it t e n b y w h ic h c la s s ?
a. statement
b. callable statement
c. p re pa re d s t a t e m e n t
d. result set

218. Th e r e q u e s t g e n e r a t e d b y t h e _ _ _ _ _ _ _ _ a c t io n is a n in s t a n c e o f t h e j a v a x . s e r v le t . j s p . j s t l . s q l. r e s u lt c la s s .
a. <sql: param>
b. <sql: update>
c. < s q l: q u e r y >
d. <sql: table>

219. A _ _ _ _ _ _ a c t io n g e n e r a t e s a n H TML t a b le w it h a ll r o w s fr o m t h e r e s u lt .
a . < c : fo r Ea c h >
b. <c: forRandom>
c. <c: Chose>
d. <c: forRow>

220. Us in g p r e p a r e d s t a t e m e n t s y o u c a n a v o id w h ic h t y p e o f e r r o r s ?
a. static syntax errors
b . d y n a m ic s y n t a x e r r o r s
c. fatal errors
d. exception at in SQL

221. R e s u lt s e t is o f w h ic h t y p e _ _ _ _ _ _ _ _ _ _ _
a. class
b. abstract class
c . in t e r f a c e
d. NULL interface
222. To in v o k e s t o r e d p r o c e d u r e s y o u c a n u s e w h ic h c la s s ?
a. prepared statement
b . c a lla b le s t a t e m e n t
c. statement
d. driver manager

223. I n w h ic h in t e r fa c e p r o v id e s in fo r m a t io n a b o u t s t r u c t u r e s a n d c a p a b ilit ie s o f d a t a b a s e ?
a. result set
b. data base m eta data
c. result set meta data
d. statement

224. An in t e r fa c e w h ic h s p e c ifie s c o lu m n r e s u lt s e t ?
a. drive manager
b. result set
c. database metadata
d . r e s u lt s e t m e t a d a t a

225. W h ic h m e t h o d y o u c a n u s e t o e x e c u t e S Q L s e le c t s t a t e m e n t a n d t o r e t u r n a r e s u lt s e t ?
a. execute( )
b. e xe cu t e qu e ry ( )
c. executeupdate ( )
d. executebatch ( )

226. Ex e c u t e u p d a t e ( ) m e t h o d r e t u r n t y p e is _ _ _ _ _ _ _ .
a. string
b. byte
c. char
d . in t
227. _ _ _ _ _ _ is t h e a t t r ib u t e n a m e o f J a v a t y p e j a v a x . s q l. d a t a s o u r s e .
a. data select
b. da ta s ou rce
c. data object
d. data post

228. F o r e a c h s p e c ific d a t a b a s e e n g in e a n im p le m e n t a t io n o f t h e in t e r f a c e d e f in e d b y t h e J D B C AP I ? t r a n s la t e t h e
g e n e r ic c a lls t o t h e fo r m a t u n d e r s t o o d b y t h e e n g in e c a lle d As ?
a . J D B C d r iv e r
b. JDBC ODBC bridge
c. Java native
d. JDBC URL

229. Th e _ _ _ _ _ _ _ p a g e u s e s t h e J S T L < c : if> a c t io n a n d t h e c u s t o m a c t io n t o v a lid a t e a ll u s e r in p u t .


a. invlid.jsp
b . v a lid a t e . j s p
c. enter.jsp
d. input.jsp

230. T h e _ _ _ _ _ _ _ _ _ c r e a t e d b a s e d o n t h e c o n t e x t p a r a m e t e r in f o r m a t io n s h o w e a r lie r o r b y t h e
< s q l. s e t d a t a s o u r c e > a c t io n d o e s n o t r e p r e s e n t a c o n n e c t io n p o o l.
a. driver
b. password
c. scope
d. da ta s ou rce

231. W h ic h o f t h e fo llo w in g is n o t J D B C o w n c la s s fo r d a t e a n d t im e v a lu e s ?
a. java.sql.date
b. java.sql.time
c. java.sql.time.stamp
d . j a v a . s q l. r e s u lt s e t

232. J N D I s t a n d s fo r ?
a. Java Native and Development Integration
b . J a v a N a m in g a n d D ir e c t o r y I n t e r fa c e
c. Java Naming and Directory
d. Java Native and Directory Interface

233. Th e _ _ _ _ _ _ _ a c t io n r e p la c e s a p la c e h o ld e r , m a r k e d w it h q u e s t io n m a r k ( ? ) in t h e S Q L s t a t e m e n t w it h a v a lu e .
a. <sql: query >
b. <sql: data source>
c. <sql:setdata source>
d . < 4 s q l: p a r a m >

234. Th e _ _ _ _ _ _ a c t io n s r e a d s in fo r m a t io n fr o m a d a t a b a s e u s in g S Q L s e le c t s t a t e m e n t , s p e c ifie d e le m e n t s b o d y o r a
S Q L a t t r ib u t e v a lu e .
a. <sql:param>
b . < s q l: q u e r y >
c. <sql:update>
d. <sql:setdata source>

235. Mo s t d a t a b a s e s in t e r p r e t t h e _ _ _ _ _ _ _ _ _ p a r t o f t h e s t a r t o f a c o m m e n t , s o w h a t e v e r c o m e s a f t e r t h e s e
c h a r a c t e r s is ig n o r e d .
a. ``??''
b.
c. ``++''
d. `` "

236. T h e _ _ _ _ _ _ a c t i o n c a n c r e a t e a n i n s t a n c e o f a n y c la s s t h a t h a s a n o - a r g u m e n t s c o n s t r u c t o r li k e t h e
j a v a . u t il. d a t a c la s s .
a . < js p .u s e b e a n >
b. <jsp:include>
c. <jsp:param>
d. <jsp:page>

237. Th e d a t a s o u r c e a t t r ib u t e im p o r t e d b y a ll J S TL d a t a b a s e a c t io n s a ls o a c c e p t s a _ _ _ _ _ p a t h .
a . J NDI
b. JNS
c. JDK
d. J2EE

238. Th e J S P _ _ _ _ a ls o s u p p o r t s a c c e s s t o b e a n p r o p e r t ie s .
a. Express languages
b. Enterprise language
c . Ex p r e s s io n la n g u a g e
d. Evaluation language

239. Th e n ic e t h in g a b o u t u s in g a b e a n is t h a t it c a n _ _ _ _ _ _ _ a ll in f o r m a t io n a b o u t t h e it e m it r e p r e s e n t s in o n e
a.
s im p le p a c k a g e .
inherit

b. polymorphism
c. bind
d . e n c a p s u la t e

240. Th e b e a n s c a n b e c h a n g e d in t o p r o x ie s fo r o n e m o r e EJ B s e s s io n b e a n s a c t in g a s p a r t o f t h e c o n t r o lle r fo r t h e
a p p lic a t io n .
a . u t ilit y b e a n
b. set bean
c. work bean
d. value bean

241. A _ _ _ _ _ _ is o ft e n u s e d in J S P a s t h e c o n t a in e r fo r t h e d y n a m ic c o n t e x t t o b e d is p la y e d b y a w e b p a g e .
a. bean
b. servlet
c. translator
d. container

242. Th e v a lu e r e t u r n e d b y < j s p : g e t p r o p e r t y > a n EL e x p r e s s io n d ir e c t o r y in t e m p la t e t e x t o r < c : o u t > is a lw a y s c o n v e r t e d t o


a _ _ _ _ _ _ .
a. integer
b . s t r in g
c. Byte
d. Object

243. A b e a n c la s s m u s t h a v e a _ _ _ _ _ _ c o n s t r u c t o r .
a. single -argument
b. two-argument
c. three -argument
d. n o -a rgu m e nt

244. W h ic h o f t h e fo llo w in g a c t io n o b t a in s t h e c u r r e n t v a lu e o f a b e a n p r o p e r t y a n d in s e r t s it d ir e c t ly in t o t h e
re s pon s e body ?
a. < jsp: attribute >
b . < js p :g e t p ro p e rt y >
c. <jsp: setproperty >
d. < jsp: property >

245. Th e _ _ _ _ _ _ a c t io n c a n o n ly b e u s e d in t h e b o d y o f a J S P e le m e n t .
a. < jsp: attribute>
b . < js p :g e t p ro p e rt y>
c. <jsp: setproperty>
d. < jsp: property>

246. An a lt e r n a t iv e t o t h e _ _ _ _ _ _ s t a n d a r d a c t io n is t h e J S TL < c : s e t > a c t io n .


b. < jsp: attribute>
c. <jsp:getproperty>
d. < js p :s e t p ro p e rt y >
e. <jsp:property>

247. Th e b e a n c la s s s h o u ld im p le m e n t t h e _ _ _ _ _ _ in t e r fa c e t o a llo w a t o o l t o s a v e a n d r e s t o r e t h e b e a n ' s s t a t e .


a . j a v a . io . s e r ia lit a b le
b. java.io.parallelizable
c. java.io.sequencalizable
d. java.io.internalizable

248. W h ic h o n e o f t h e fo llo w in g s u p p o r t s fo r a m o d u la r d e s ig n ?
a. servlets
b. struts
c. filters
d. listeners

249. Th e e x t e n s io n r u le , u s in g t h e e x t e n s io n _ _ _ _ _ _ , is t h e o n e t h a t ' s r e c o m m e n d e d fo r m a p p in g r e q u e s t s t h a t s h o u ld
b e p ro ce s s e d b y St ru t s .
a. .done
b. .until
c . . d o d.
.date

250. A _ _ _ _ _ _ is a c o m p o n e n t t h a t c a n in t e r p r e t a r e q u e s t t a r g e t e d fo r a s e r v le t , J S P p a g e , o r s t a t ic p a g e , a s w e ll a s
t h e r e s p o n s e b e fo r e it ' s s e n t t o t h e c lie n t .
a. servlet
b . f ilt e r
c. listener
d. package

251. Th e _ _ _ _ s e r v le t u s e s p a r t s o f t h e r e q u e s t UR I t o f ig u r e o u t w h ic h t y p e o f r e q u e s t it is , lo c a t e d t h e
c o r r e s p o n d in g a c t io n Cla s s , a n d in v o k e s t h e p e r fo r m ( ) m e t h o d .
a. servlets
b. struts
c. filters
d. listeners
252. A _ _ _ _ _ _ is a j a v a c la s s t h a t e x t e n d s a s e r v e r w it h fu n c t io n a lit y fo r p r o c e s s in g a r e q u e s t a n d p r o d u c in g a r e s p o n s e .
a. s e r v le t
b. filter
c. listener
d. package

253. _ _ _ _ _ _ _ a llo w y o u r a p p lic a t io n t o r e a c t t o c e r t a in e v e n t s .


a. servlet
b. filter
c . lis t e n e r
d. package

2 5 4 . S t r u t s is a _ _ _ _ _ _ fr a m e w o r k .
a. small
b. medium
c . la r g e
d. very small

2 5 5 . Th e _ _ _ _ _ m e t h o d r e t u r n s a s t r u t s a c t io n fo r w a r d in s t a n c e , c o n t a in in g in fo r m a t io n a b o u t t h e J S P t h a t s h o u ld
b e in v o k e d t o r e n d e r t h e r e s p o n s e .
a. action( )
b. send( )
c. find( )
d . p e r fo r m ( )

2 5 6 . W h ic h o n e o f t h e fo llo w in g s u p p o r t s fo r m a p p in g o f s y m b o lic p a g e n a m e s t o t h e r e a l UR I s ?
a. servlets
b. struts
c. filters
d. listeners

2 5 7 . S t r u t s is a h ig h ly c o n fig u r a b le _ _ _ _ _ .
a . s e r v le t
b. filter
c. listener
d. package

You might also like