CIST 2351 PHP ch10

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

If the date is December 25, 2017, what output would be provided by the code below? echo date('F d, Y'); A. 12/25/2017 B. Dec. 25, 2017 C. December 25, 2017 D. 12/25/17

C. December 25, 2017

When you create a DateInterval object, you pass it one argument that specifies one or more of the following: A.years, months, days B. hours, minutes, seconds C. years, months, days, hours, minutes, seconds D.years, months, weeks, days, hours, minutes, seconds

D.years, months, weeks, days, hours, minutes, seconds

Which method of a DateTime object can be used to determine an amount of time between two dates or times? A. diff() B. datediff() C. datebetween() D. add()

A. diff()

A timestamp stores the number of _____ since midnight on January 1, 1970 GMT. A. seconds B. minutes C. hours D. days

A. seconds

A _____ is an integer that represents a date and time as the number of seconds since midnight, January 1, 1970. A. timestamp B. intdate C. date_format D.checkdate

A. timestamp

Which of the following statements is NOT a valid way to create a timestamp named $birthdate that represents December 2, 1969? A. $birthdate = mktime(0, 0, 0, 12, 2, 1969); B. $birthdate = mktime(12, 2, 1969); C. $birthdate = strtotime('1969-12-02'); D. $birthdate = strtotime('12/02/1969');

B. $birthdate = mktime(12, 2, 1969);

If the date is December 25, 2017, what output would be produced by the code below? echo date('n/d/y h:i A'); A. 12/25/1017 B. 12/25/2017 12:00 AM C. December 25, 2017 D. 12/25/17

B. 12/25/2017 12:00 AM

If the date is December 25, 2017, what output would be produced by the code below? echo date('M. d, Y'); A. 12/25/2017 B. Dec. 25, 2017 C. December 25, 2017 D. 12/25/17

B. Dec. 25, 2017

Timestamps will encounter a(n) _____ problem if they are not converted to DateTime objects. A. Y2K B. Y2K38 C. Y10K D. Y69K

B. Y2K38

If the date is December 25, 2017, what output would be produced by the following code? echo date('n/j/y'); A. 12/25/2017 B. Dec. 25, 2017 C. December 25, 2017 D. 12/25/17

D. 12/25/17


Set pelajaran terkait

ACCT 292 Chapter 6: Cost-Volume-Profit Relationships

View Set

FL DCF Child Care, Preschool Appropriate Practices (PSPR) (2019)

View Set

Lesson 2.5 Solving Equations with Absolute Value

View Set

BIOL 2401 Unit #2 Exam (Essays and Bonus)

View Set