Home > PHP & Programming > Quizzes > Practice Test: Handling Date And Time In PHP
Practice Test: Handling Date And Time In PHP
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 73% Most missed: “… is the function parameter of the strftime() function that specifies the numeri…”
Practice Test: Handling Date And Time In PHP
Time left 00:00
20 Questions

1. The … method sets the date object’s hour, minute, and optionally the second, returning TRUE on success and FALSE otherwise.
2. … is the function parameter of the strftime() function that specifies the numerical week number, where the first Monday is the first day of the first week.
3. The … function formats a date and time according to the localization setting as specified by setlocale().
4. In the … function, if no date and time are provided, the timestamp for the current date and time is required.
5. … is the function parameter of the strtime() function that specifies the numerical week number where the first Sunday of the year is the first day of the first week of the year.
6. The … method sets the date object’s hour, minute, and optionally the second, returning TRUE on success and FALSE otherwise.
7. … is the function parameter of the strftime() function that specifies the numerical week number, where the first Monday is the first day of the first week.
8. The … function accepts a timestamp and returns an associative array consisting of it’s components.
9. The … function accomplishes the task of validating dates, returning TRUE if the supplied date is valid and FALSE otherwise.
10. The … method calculates the number of days between today and the subscription termination date.
11. The … method calculates the number of days between today and the subscription termination date.
12. The … function returns the value of the page’s last modified header or FALSE in the case of an error.
13. The … method sets the date objects day, month, and year returning TRUE on success and FALSE otherwise.
14. The … function returns an associative array consisting of elements regarding the current time.
15. State whether the following statements about the array elements returned by getdate() function are TRUE or FALSE.
i. ‘mon’ is the numeric representation of the month.
ii. ‘month’ is the text representation of the month.
iii. ‘yday’ is the text representation of the day of the year.
16. … is the function parameter of the strftime() function that specifies the numerical week number, where the first Monday is the first day of the first week.
17. The format parameter of the strftime() function which specifies the numerical day of the month with no leading zero.
18. … is the function parameter of the strftime() function that specifies the numerical week number, where the first Monday is the first day of the first week.
19. The format parameter of the strftime() function which specifies the numerical day of the month with no leading zero.
20. In total … array elements are returned while converting a timestamp to user-friendly values using the getdate() function.