MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
PHP
Date And Timestamp
Quiz 2
1
2
3
4
5
Q.1
Which one of the following function is useful for producing a timestamp based on a given date and time.
time()
mktime()
mrtime()
mtime()
Q.2
Which function displays the web page’s most recent modification date?
lastmod()
getlastmod()
last_mod()
get_last_mod()
Q.3
What will be the output of the following PHP code? If say date is 22/06/2013.
<?php
printf( date(
"t"
) )
?>
30
22
JUNE
2013
Q.4
Say you want to calculate the date 45 days from the present date which one of the following statement will you use?
totime(“+45”)
totime(“+45 days”)
strtotime(“+45 days”)
strtotime(“-45 days”)
Q.5
To create an object and set the date to JUNE 22, 2013, which one of the following statement should be executed?
$date = Date(“22 JUNE 2013”)
$date = new Date(“JUNE 22 2013”)
$date = DateTime(“22 JUNE 2013”)
$date = new DateTime(“22 JUNE 2013”)
0 h : 0 m : 1 s
1
2
3
4
5
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page