Home
10th Grade
11th And 12th
11th Grade
12th Grade
3rd Grade
4th Grade
5th Grade
6th Grade
7th Grade
8th Grade
9th Grade
Advance Accountancy
Auditing
Computer Aptitude
Direct And Indirect Taxation
Exams
General Hindi
Indian Finance System
Information Technology And Application In Business
Macro Economics
Town Planning
Aerospace And Aeronautical
Analytical Instrumentation
Banking Awareness
Banking Exam
Biochemistry
Bioinformatics
Biology
Biotechnology
Business Statistics
C Program
C Programming
C++ Programming
Career Aptitude Test
Cell Biology
Central Superior Service (css)
Chemical Engineering
Chemistry
Civil Engineering
Commerce
Computer
Computer Fundamentals
Computer Science
Cost Accounting
Css
Database
Drug And Pharmaceutical Biotechnology
Ecat And Mcat Entry Test
Economics
Electrical Engineering
Electrical Engineering Questions
Electrical Measurement And Instrumentation
Engineering
English
English Literature
Environment Management
Environmental Biotechnology
Enzyme Technology
Financial Management And Financial Markets
Gate
General Knowledge
Graduate Assessment Test (gat)
Health And Physical
Heat Transfer
Html
Human Anatomy And Physiology
Human And Cultural Diversity
Human Resource Management
Ias
Indian Economy
Indian Economy
Indian General Awareness
Indian Geography
Indian Geography
Indian History
Indian History
Indian Polity
Instrumentation Transducers
International Relations
Java Program
Javascript
Judiciary And Law
Life Sciences
Management
Marketing And Marketing Management
Mass Transfer
Mechanical Engineering
Mechanics Of Materials
Medical Subjects
Microbiology
Networking
Php
Placement Tests
Professional Communication
Quantitative Aptitude
Reasoning Aptitude
Renewable Energy
Science
Sociology
Sql
Surveying
Total Quality Management
Uidai Aadhaar Supervisor Certification
Virology
Notificatin
Exam
Blog
Contact Us
Php Date And Timestamp(Engineering > Computer Science And Engineering > Php ) Questions and Answers
Home
Topic
Engineering
Computer Science And Engineering
Php
Php Date And Timestamp
Question 1.
What will be the output of the following PHP code?echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');
FALSE
TRUE
Valid
Invalid
Explanation:-
Answer: Option D. ->
Invalid
Question 2.
What will be the output of the following code?If say date is 22/06/2013.echo "Today is ".date("F d, Y")
Today is 22-06-2013
Today is 22 June, 2013
Today is 06-22-2013
Today is June 22, 2013
Explanation:-
Answer: Option D. ->
Today is June 22, 2013
Question 3.
Which one of the following format parameter can be used to identify timezone?
N
E
I
T
Explanation:-
Answer: Option B. ->
E
Question 4.
If the format is F then which one of the following will be returned?
Daylight saving time
Complete text representation of month
Day of month, with leading zero
Day of month, without zeros
Explanation:-
Answer: Option B. ->
Complete text representation of month
Question 5.
The date() function returns ___ representation of the current date and/or time.
Float
Integer
String
Boolean
Explanation:-
Answer: Option C. ->
String
Question 6.
Which one of the following function is useful for producing a timestamp based on a given date and time.
mrtime()
mtime()
time()
mktime()
Explanation:-
Answer: Option D. ->
mktime()
Question 7.
Say you want to calculate the date 45 days from the present date which one of the following statement will you use?
strtotime(“+45 days”)
strtotime(“-45 days”)
totime(“+45”)
totime(“+45 days”)
Explanation:-
Answer: Option A. ->
strtotime(“+45 days”)
Question 8.
Which function displays the web page’s most recent modification date?
get_last_mod()
lastmod()
getlastmod()
last_mod()
Explanation:-
Answer: Option C. ->
getlastmod()
Question 9.
To create an object and set the date to JUNE 22, 2013, which one of the following statement should be executed?
$date = DateTime(“22 JUNE 2013”)
$date = new Date(“JUNE 22 2013”)
$date = Date(“22 JUNE 2013”)
$date = new DateTime(“22 JUNE 2013”)
Explanation:-
Answer: Option D. ->
$date = new DateTime(“22 JUNE 2013”)
Question 10.
What will be the output of the following PHP code?If say date is 22/06/2013.printf( date("t") )
2013
30
22
JUNE
Explanation:-
Answer: Option B. ->
30
1
2
3
Next →
One click Login
Login With Google
Old way of Login
Login With Email