Sail E0 Webinar

MCQs

Total Questions : 70 | Page 1 of 7 pages
Question 1. Which two predefined variables are used to retrieve information from forms?
  1.    $GET & $POST
  2.    $_GET & $_POST
  3.    $__GET & $__POST
  4.    GET & POST
 Discuss Question
Answer: Option B. -> $_GET & $_POST
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
Question 3. 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
Question 4. 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
Question 5. 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
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
Question 7. 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()
Question 8. What will be the value of the variable $input in the following PHP code?
  1.    Swapna Lawrence you are really pretty!
  2.    Swapna Lawrence you are reallypretty!
  3.    Swapna Lawrence you are really pretty!
  4.    Swapna Lawrence you are reallypretty!
 Discuss Question
Answer: Option D. -> Swapna Lawrence you are reallypretty!
Question 9. 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
Question 10. 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

Latest Videos

Latest Test Papers