Sail E0 Webinar

MCQs

Total Questions : 30 | Page 3 of 3 pages
Question 21. Which of the following functions do not return a timestamp?1. time()2. date()3. strtotime()4. localtime()5. gmmktime()
  1.    Option 1 and 5
  2.    Option 1 and 4
  3.    Option 2 and 4
  4.    Option 2 and 4
 Discuss Question
Answer: Option D. -> Option 2 and 4
Question 22. .......... Returns the time of sunrise for a given day / location.
  1.    date_sunrise()
  2.    date.sunrise()
  3.    date-sunrise()
  4.    datesunrise()
 Discuss Question
Answer: Option A. -> date_sunrise()
Question 23. What will the following script output?$time = strtotime ('2004/01/01');echo date ('H:i:s', $time);
  1.    12:i:00
  2.    00:i:00
  3.    0:00:00
  4.    12:00:00
 Discuss Question
Answer: Option B. -> 00:i:00
Question 24. The getdate() function returns
  1.    A floating-point number
  2.    An integer
  3.    An array
  4.    A Boolean
  5.    A string
 Discuss Question
Answer: Option C. -> An array
Question 25. ................Checks a date for numeric validity.
  1.    checkdate
  2.    Verify_date
  3.    check_date
  4.    verifydate
 Discuss Question
Answer: Option A. -> checkdate
Question 26. You must make a call to ................... to specify what time zone you want calculations to take place in before calling any date functions.
  1.    datedefault_timezone_set()
  2.    date_default_timezone_set()
  3.    date_defaulttimezone_set()
  4.    date_default_timezoneset()
 Discuss Question
Answer: Option B. -> date_default_timezone_set()
Question 27. ................ Formats a local time or date according to locale settings.
  1.    strgtime
  2.    strhtime
  3.    strftime
  4.    stritime
 Discuss Question
Answer: Option C. -> strftime
Question 28. What is the difference, in seconds, between the current timestamp in the GMT time zone and the current timestamp in your local time zone?
  1.    There is no difference
  2.    It depends on the number of hours between the local time zone and GMT
  3.    The two will never match
  4.    None of these
  5.    The two will only match if the local time zone is GMT
 Discuss Question
Answer: Option A. -> There is no difference
Question 29. The ......... function parses an English textual date or time into a Unix timestamp.
  1.    stroftime()
  2.    str_to_time()
  3.    strtotime()
  4.    strtodate()
 Discuss Question
Answer: Option C. -> strtotime()
Question 30. What would happen if the following script were run on a Windows server set to Moscow, Russia’s time zone?echo gmmktime(0, 0, 0, 1, 1, 1970);
  1.    It would output the number 0
  2.    It would output the number 1
  3.    It would output the number -1
  4.    It would output nothing
 Discuss Question
Answer: Option C. -> It would output the number -1

Latest Videos

Latest Test Papers