nerdexam
Oracle

1Z0-899 · Question #150

Given that a scoped attribute cart exists only in a user's session, which two, taken independently, ensure the scoped attribute cart no longer exists? (Choose two.)

The correct answer is B. <c:remove var="cart" /> D. <c:remove var="cart" scope="session" />. See the full explanation below for the reasoning.

Question

Given that a scoped attribute cart exists only in a user's session, which two, taken independently, ensure the scoped attribute cart no longer exists? (Choose two.)

Options

  • 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>

How the community answered

(33 responses)
  • A
    6% (2)
  • B
    82% (27)
  • F
    3% (1)
  • G
    9% (3)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice