Menu
Popular Courses
Search

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()


Share this page with your friends!

Share this page with your friends!

Latest Videos

Chapter 1 - GLOBAL STEEL SCENARIO & INDI Part 1 : (13-04-2024) INDUSTRY AND COMPANY AWARENESS (ICA)
Direction Sense Test Part 1 Reasoning (Hindi)
Chapter 1 - RMHP / OHP / OB & BP Part 1 : (14-02-2024) GPOE 2024
Cube & Cuboid Part 1 Reasoning (Hindi)
Data Interpretation (DI) Basic Concept Reasoning (Hindi)
Counting Figures Part 1 Counting Of Straight Lines Reasoning (Hindi)
Real Numbers Part 7 Class 10 Maths
Real Numbers Part 1 Class 10 Maths
Polynomials Part 1 Class 10 Maths

Latest Test Papers

Chapter 1.1 : INTRODUCTION Chapter 1 : Raw Material Handling Plant GPOE/GPA 2024
Chapter 1.1 : Personnel Functions- An ov Chapter 1 : Personnel Management GFM 2024
Chapter 3.1 : INTRODUCTION Chapter 3 : Sinter Plant GPOE/GPA 2024
Chapter 2.3 : COAL HANDLING PLANT - Set Chapter 2 : Coke Ovens and Coal Chemicals GPOE/GPA 2024
Chapter 2.1 : Overview Chapter 2 : Materials Management GFM 2024