Home

What is the correct answer?

4

What will be the output of the following PHP code?
     <?php      echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');
?>

A. TRUE

B. FALSE

C. Valid

D. Invalid

Correct Answer :

D. Invalid


April has 30 days and the above date is 31 therefore Invalid is returned.

Related Questions

What will be the output of the following PHP code ? <?php $i = 2;while… Which one of the following is the default PHP session name? Which one of the following is the very first task executed by a session… What will be the output of the following PHP code? <?php $a = array(red,… What will be the output of the following PHP code ? <?php class Constants{… What will be the output of the following PHP code ? <?php $i = 5;while… What will be the output of the following PHP code ? <?php $i = 0;while… What will be the output of the following PHP code? <?php $fname = array(Peter,… What will be the output of the following PHP code? <?php $a = array(A,… What will be the output of the following PHP code? <?php $a = array(a=>red,… If the directive session.cookie_lifetime is set to 3600, the cookie will… What will be the output of the following PHP code ? <?php $i = 5;while… What will be the output of the following PHP code ? <?php $color =… What is the default time(in seconds) for which session data is considered… What will be the output of the following PHP code? If say date is 22/06/2013.… What will be the output of the following PHP code ? <?php $color1 =… What will be the output of the following PHP code? <?php $cars = array(Volvo,… What will be the output of the following PHP code? <?php echo (checkdate(4,31,2010)… Which directive determines how the session information will be stored? What will be the output of the following PHP code? <?php $a1 = array(red,… Which one of the following function is useful for producing a timestamp… What will be the output of the following PHP code? <?php $a1 = array(a=>red,… What will be the output of the following PHP code ? <?php $i = ;while… If the format is F then which one of the following will be returned? What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME}… If session.use_cookie is set to 0, this results in use of.. The date() function returns ___ representation of the current date and/or… Which function displays the web pages most recent modification date? Which one of the following format parameter can be used to identify timezone? Which of the following must be installed on your computer so as to run…