jQuery in Action, 2nd edition*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes PLease help me in getting these quetions fromk mock!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "PLease help me in getting these quetions fromk mock!!!" Watch "PLease help me in getting these quetions fromk mock!!!" New topic
Author

PLease help me in getting these quetions fromk mock!!!

Amitkumar Dhama
Ranch Hand

Joined: Feb 14, 2005
Posts: 56
Hi all please help me out I am getting confused with these questions.


1.In a distributed environment which are true.
a.Separate instance of non default servlet context will be available on each jvm
b.Separate instance of servlet context will be available on each jcm
c.Default servlet context will be available only on one jvm
d.There is only one instance of servlet context across all jvm


2.Session can be implemented (consider cookie is not working).
a.Using http header.
b.Hidden form fields


3.Servlet container has just called destroy() method.
a.Time out has been exceeded.
b.None of the request can ever be serviced by this instance.
c.All thread created by this servlet are done


4.Consider taglib with prefix �seq� supports a tag �lib� expects a parameter named limit of type int which are the correct use of this tag
a.< seq:lib >20</ seq:lib >
b.<seq:lib limit=20></ seq:lib >


Please do answer above questions with a little explanation if any body is having......

Thanking in advance....


SCJP 1.4, SCWCD 1.4, M.Tech(CSE)
Charith Fernando
Ranch Hand

Joined: Sep 12, 2005
Posts: 67
1.In a distributed environment which are true.
b. Separate instance of servlet context will be available on each jcm
*** in each JVM there will be a seperate servlet context instance

2.Session can be implemented (consider cookie is not working).
b. Hidden form fields
*** the hidden field can be used to pass the session id and keep track

3.Servlet container has just called destroy() method.
b. None of the request can ever be serviced by this instance.
*** when the container calls the destroy method that means that the servlet has finished servicing all the requets and after this it wont be able to service any other request unless it makes a new instance of the servlet

4.Consider taglib with prefix �seq� supports a tag �lib� expects a parameter named limit of type int which are the correct use of this tag
b. <seq:lib limit=20></ seq:lib >
*** this is the way to pass a value to a tag... the other way doesnt work coz it asks for a particullar attribute and the other way it doesnt know where to put the attribute...

PS: i'm not an expert... i'm planning of doing the exam next week.. so if there's any errors that i have made.. please point it out to me.. thanks..


Charith I Fernando<br />SCJP5, SCWCD, SCBCD, BSc(Hons) IS<br />+94 773 263 222 (mobile)
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 950
Hi,

Here is my answers

1.In a distributed environment which are true.
a. Separate instance of non default servlet context will be available on each jvm
b. Separate instance of servlet context will be available on each jcm
c. Default servlet context will be available only on one jvm
d. There is only one instance of servlet context across all jvm



My answers : a,b,c



2.Session can be implemented (consider cookie is not working).
a. Using http header.
b. Hidden form fields



My answer is B.



3.Servlet container has just called destroy() method.
a. Time out has been exceeded.
b. None of the request can ever be serviced by this instance.
c. All thread created by this servlet are done



My answer is c


4.Consider taglib with prefix �seq� supports a tag �lib� expects a parameter named limit of type int which are the correct use of this tag
a. < seq:lib >20</ seq:lib >
b. <seq:lib limit=20></ seq:lib >


My answer is B.

Thanks


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
I see no big difference between option a and b in your first question. Both mean the same.


Servlet specification guarantees that in a distributed environment every web-application has one servlet context available in every JVM except the default web-application whose servlet content exists in only one JVM. The servlet content of this web-application is know as default servlet content.


a,b,c are correct.

And in question 3 both options b and c are correct.
[ December 05, 2005: Message edited by: Vishnu Prakash ]

Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
Umakanth Godavarthy
Ranch Hand

Joined: Nov 10, 2005
Posts: 37
My Answers
1.a and c (page31 of servlet-spec)
2.b
3.b and c (page28 and 29 of servlet-spec)
4. doubtful (why is it b, can we have attributes without quotes, becoz with xml we cannot.)
Umakanth Godavarthy
Ranch Hand

Joined: Nov 10, 2005
Posts: 37

I see no big difference between option a and b in your first question.

In option b the type of servlet-context, like default or non-default is not specified.

-Thanks
[ December 05, 2005: Message edited by: Umakanth ]
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026

In option b the type of servlet-context, like default or non-default is not specified.



Thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: PLease help me in getting these quetions fromk mock!!!
 
Similar Threads
Aleksander's Clarification needed
mock question regarding distributed application across multiple JVMs
Mock Exam Queries from JDiscuss..
Multiple JVMs (default vs. non-default servlet context)
Clarification needed