Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Mock exam question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Mock exam question" Watch "Mock exam question" New topic
Author

Mock exam question

Sunjeev Shetty
Ranch Hand

Joined: Aug 21, 2005
Posts: 48
Given that a scoped attribute cart exists only in a user's sesson which two taken independently ensure the scoped attribute cart no longer exists?
A.${cart=null}
B.<c:remove var="cart"}
C.<c:remove var="${cart}"
D.<c:remove var="cart" scope="session"/>
E.<c:remove scope="session">cart</c:remove>
F.<c:remove var=${cart}" scope="session"/>
G.<c:remove scope="session">${cart}</c:remove>

Thanks
Patrick Williams
Ranch Hand

Joined: Apr 03, 2005
Posts: 213
I would guess B and D.


Patrick<br /> <br />SCJP/SCWCD/SCBCD/SCDJWS/SCEA<br /> <br />Currently working on:<br />SCJP 6
Vivaldo Pinto
Ranch Hand

Joined: Sep 01, 2005
Posts: 53
B and D.


SCJP|SCWCD|SCEA 5 PT 1/3
Patrick Williams
Ranch Hand

Joined: Apr 03, 2005
Posts: 213
Provided that the incorrect closure on B is a typo.
Sunjeev Shetty
Ranch Hand

Joined: Aug 21, 2005
Posts: 48
Thanks
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Mock exam question
 
Similar Threads
doubt in JSTL
About c:remove
Usage of c:remove tag
Question about JSTL (c:remove)
removeAttribute doubt from mock exam