• HOME
  • QUIZ
  • CONTACT US
EXAMIANS
  • COMPUTER
  • CURRENT AFFAIRS
  • ENGINEERING
    • Chemical Engineering
    • Civil Engineering
    • Computer Engineering
    • Electrical Engineering
    • Mechanical Engineering
  • ENGLISH GRAMMAR
  • GK
  • GUJARATI MCQ

PHP FILTER QUIZ

Which one of the following filter is used to filter several variables with the same or different filters?

TRUE ANSWER : ?
YOUR ANSWER : ?

Which one of the following filter checks if variable of specified type exists?

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>$num = "123";<br/>if (!filter_var($num, FILTER_VALIDATE_INT))<br/>echo("Integer is not valid");<br/>else<br/>echo("Integer is valid");

TRUE ANSWER : ?
YOUR ANSWER : ?

How many types of filtering are present in PHP?

TRUE ANSWER : ?
YOUR ANSWER : ?

Which one of the following does not describe a validating filter?

TRUE ANSWER : ?
YOUR ANSWER : ?

Which of the following is/are an external data?<br/>1. Cookies<br/>2. Input data from a form<br/>3. Server Variables<br/>4. Web services data

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>function convertSpace($string)<br/>{<br/>return str_replace("_", " ", $string);<br/>}<br/>$string = "Peter_is_a_great_guy!";<br/>echo filter_var($string, FILTER_CALLBACK, array("options"=>"convertSpace"));

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>$value = 'car';<br/>$result = filter_var($value, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE);

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>$var=300;<br/>$int_options = array("options"=>array ("min_range"=>0, "max_range"=>256));<br/>if (!filter_var($var, FILTER_VALIDATE_INT, $int_options))<br/>echo("Integer is not valid");<br/>else<br/>echo("Integer is valid");

TRUE ANSWER : ?
YOUR ANSWER : ?
MORE MCQ

QUIZ STATS

  • 0
  • 0

DOWNLOAD APP

  • APPLE
    from app store
  • ANDROID
    from play store

SEARCH

LOGIN HERE


  • GOOGLE

FIND US

  • 1.70K
    FOLLOW US
  • EXAMIANSSTUDY FOR YOUR DREAMS.
  • SUPPORT :SUPPORT EMAIL ACCOUNT : examians@yahoo.com

OTHER WEBSITES

  • GUJARATI MCQ
  • ACCOUNTIANS

QUICK LINKS

  • HOME
  • QUIZ
  • PRIVACY POLICY
  • DISCLAIMER
  • TERMS & CONDITIONS
  • CONTACT US
↑