What will be the output of the following php code php echo today is .date fd y
This set of PHP Multiple Choice Questions & Answers (MCQs) focuses on “Date and Timestamp”. 1. What will be the output of the following PHP code? a) TRUE Answer:
d 2. The date() function returns ___ representation of the current date and/or time. Answer: b 3. Which one of the following format parameter can be used to identify timezone? Answer: c 4. If the format is F then which one of the following will be returned? Answer: a 5. What will be the output of the following code? (If say date is 22/06/2013.)
a) Today is 22 June, 2013 Answer: d 6. Which one of the following function is useful for producing a timestamp based on a given date and time? Answer: b 7. Which function displays the web page’s most recent modification date? Answer: b 8. What will be the output of the following PHP code? (If say date is 22/06/2013.)
a) 30 Answer: a 9. Suppose you want to calculate the date 45 days from the present date which one of the following statement will you use? Answer: c 10. To create an object and set the date to JUNE 22, 2013, which one of the following statement should be executed? Answer: d Sanfoundry Global Education & Learning Series – PHP Programming. To practice all questions on PHP Programming, here is complete set of 1000+ Multiple Choice Questions and Answers on PHP. Next Steps:
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn. Subscribe to his free Masterclasses at Youtube & technical discussions at Telegram SanfoundryClasses. |