Sail E0 Webinar

MCQs

Total Questions : 28 | Page 3 of 3 pages
Question 21. .......... Returns the time of sunrise for a given day / location.
  1.    datesunrise()
  2.    date_sunrise()
  3.    date-sunrise()
  4.    date.sunrise()
 Discuss Question
Answer: Option B. -> date_sunrise()
Question 22. ................Checks a date for numeric validity.
  1.    check_date
  2.    verifydate
  3.    Verify_date
  4.    checkdate
 Discuss Question
Answer: Option D. -> checkdate
Question 23. What will the following script output?
  1.    0:00:00
  2.    12:00:00
  3.    00:i:00
  4.    12:i:00
  5.    -1
 Discuss Question
Answer: Option C. -> 00:i:00
Question 24. 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.    It depends on the number of hours between the local time zone and GMT
  2.    There is no difference
  3.    The two will only match if the local time zone is GMT
  4.    The two will never match
  5.    None of the above
 Discuss Question
Answer: Option B. -> There is no difference
Question 25. You must make a call to ................... to specify what time zone you want calculations to take place in before calling any date functions.
  1.    date_default_timezone_set()
  2.    datedefault_timezone_set()
  3.    date_defaulttimezone_set()
  4.    date_default_timezoneset()
 Discuss Question
Answer: Option A. -> date_default_timezone_set()
Question 26. What would happen if the following script were run on a Windows server set to Moscow, Russia’s time zone?
  1.    It would output the number 0
  2.    It would output the number -1
  3.    It would output the number 1
  4.    It would raise an error
  5.    It would output nothing
 Discuss Question
Answer: Option B. -> It would output the number -1
Question 27. The ......... function parses an English textual date or time into a Unix timestamp.
  1.    strtodate()
  2.    stroftime()
  3.    strtotime()
  4.    str_to_time()
 Discuss Question
Answer: Option C. -> strtotime()
Question 28. ................ Formats a local time or date according to locale settings.
  1.    strftime
  2.    strgtime
  3.    strhtime
  4.    stritime
 Discuss Question
Answer: Option A. -> strftime

Latest Videos

Latest Test Papers