nerdexam
EC-Council

312-92 · Question #15

What will the following script accomplish? for (int i=0; i<blacklist.length; i++) if (HttpCookie.domainMatches(blacklist[i], host)) return false;

The correct answer is B. Check domains against a blacklist. See the full explanation below for the reasoning.

Question

What will the following script accomplish? for (int i=0; i<blacklist.length; i++) if (HttpCookie.domainMatches(blacklist[i], host)) return false;

Options

  • ACreate a list of blacklist domains
  • BCheck domains against a blacklist
  • CPrevent site from being blacklisted
  • DDelete entries in a blacklist file

How the community answered

(40 responses)
  • A
    5% (2)
  • B
    83% (33)
  • C
    3% (1)
  • D
    10% (4)

Community Discussion

No community discussion yet for this question.

Full 312-92 Practice