312-92 EC-Council Certified Secure Programmer (ECSP)

Loading demo links...

Showing 7–8 of 8 questions

Question 7

What will the following script accomplish?

for (int i=0; i

if (HttpCookie.domainMatches(blacklist[i],

host))

return false;

Select an option, then click Submit answer.

  • Create a list of blacklist domains

  • Check domains against a blacklist

  • Prevent site from being blacklisted

  • Delete entries in a blacklist file


Question 8

Peter is writing a program that has a GUI front-end and uses a MS SQL database as a backend. Peter's application will repeatedly update and call upon specific tables in the database on a regular basis. Peter wants to make sure that his program always has the ability to update the database and that no other calls or updates can touch the database tables used at the same time. How could Peter accomplish this in his application?

Select an option, then click Submit answer.

  • Explicit lock

  • SET TRANSACTION EXCLUSIVE

  • SET TRANSACTION WRITE

  • Implicit lock