Sail E0 Webinar

MCQs

Total Questions : 9
Question 1. Which two predefined variables are used to retrieve information from forms?
  1.    $GET & $SET
  2.    $_GET & $_SET
  3.    $__GET & $__SET
  4.    GET & SET
 Discuss Question
Answer: Option B. -> $_GET & $_SET


$_GET & $_SET


Question 2. When you use the $_GET variable to collect data, the data is visible to..
  1.    none
  2.    only you
  3.    everyone
  4.    selected few
 Discuss Question
Answer: Option C. -> everyone


everyone


Question 3. When you use the $_POST variable to collect data, the data is visible to..
  1.    none
  2.    only you
  3.    everyone
  4.    selected few
 Discuss Question
Answer: Option B. -> only you


The POST method, data is invisible to others.


Question 4. The attack which involves the insertion of malicious code into a page frequented by other users is known as..
  1.    basic sql injection
  2.    advanced sql injection
  3.    cross-site scripting
  4.    scripting
 Discuss Question
Answer: Option C. -> cross-site scripting


cross-site scripting


Question 5. Which variable is used to collect form data sent with both the GET and POST methods?
  1.    $BOTH
  2.    $_BOTH
  3.    $REQUEST
  4.    $_REQUEST
 Discuss Question
Answer: Option D. -> $_REQUEST


$_REQUEST


Question 6. Which one of the following should not be used while sending passwords or other sensitive information?
  1.    GET
  2.    POST
  3.    REQUEST
  4.    NEXT
 Discuss Question
Answer: Option A. -> GET


Because the data is visible to everyone.


Question 7. How many validation filters like FILTER_VALIDATE_EMAIL are currently available?
  1.    5
  2.    6
  3.    7
  4.    8
 Discuss Question
Answer: Option C. -> 7


There are seven validation filters. They are FILTER_VALIDATE_EMAIL, FILTER_VALIDATE_BOOLEAN, FILTER_VALIDATE_FLOAT, FILTER_VALIDATE_INT, FILTER_VALIDATE_IP, FILTER_VALIDATE_REGEXP, FILTER_VALIDATE_URL.


Question 8. To validate an e-mail address, which flag is to be passed to the function filter_var()?
  1.    FILTER_VALIDATE_EMAIL
  2.    FILTER_VALIDATE_MAIL
  3.    VALIDATE_EMAIL
  4.    VALIDATE_MAIL
 Discuss Question
Answer: Option A. -> FILTER_VALIDATE_EMAIL


FILTER_VALIDATE_EMAIL


Question 9. Which function is used to remove all HTML tags from a string passed to a form?
  1.    remove_tags()
  2.    strip_tags()
  3.    tags_strip()
  4.    tags_remove()
 Discuss Question
Answer: Option B. -> strip_tags()


strip_tags()


Latest Videos

Latest Test Papers