Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mock exam question

 
Sunjeev Shetty
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would guess B and D.
 
Vivaldo Pinto
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
B and D.
 
Patrick Williams
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Provided that the incorrect closure on B is a typo.
 
Sunjeev Shetty
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic