Lakshya Education MCQs

Question: Which method enables you to calculate whether daylight saving time is in force at a specific date and time?
Options:
A.getOffset()
B.getTranitions()
C.ISODate()
D.savingTime()
Answer: Option B

Submit Answer & Explaination

Earn Reward Points by submitting Detailed Explaination for this Question

More Questions on This Topic :

Question 1. 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 2 and 4
  3.    Option 1 and 4
  4.    Option 2 and 4
Answer: Option D
Question 2. The getdate() function returns
  1.    An integer
  2.    A floating-point number
  3.    An array
  4.    A string
  5.    A Boolean
Answer: Option C
Question 3. .......... Returns the time of sunrise for a given day / location.
  1.    datesunrise()
  2.    date_sunrise()
  3.    date-sunrise()
  4.    date.sunrise()
Answer: Option B
Question 4. Which of the following statements can be used to add two months to the existing date?
  1.    $date->modify(‘+2 months’);
  2.    $date = modify(‘+2 months’);
  3.    $date = modify(‘2+ months’);
  4.    $date->modify(‘2+ months’);
Answer: Option A
Question 5. Among the four PHP DateTimeZone classes given below how many are nonstatic?
1. _construct()
2. getName()
3. getOffset()
4. getTransitions()
  1.    1
  2.    2
  3.    3
  4.    4
Answer: Option D
Question 6. Among the four PHP DateTimeZone classes given below how many are static?
1. listAbbreviations()
2. getName()
3. getOffset()
4. listIdentifiers()
  1.    1
  2.    2
  3.    3
  4.    4
Answer: Option B

Check all Questions in this Topic : Click HERE