Sail E0 Webinar

MCQs

Total Questions : 28 | Page 1 of 3 pages
Question 1. What will be the output of the following PHP code?
  1.    TRUE
  2.    FALSE
  3.    Valid
  4.    Invalid
 Discuss Question
Answer: Option D. -> Invalid
Question 2. The date() function returns ___ representation of the current date and/or time.
  1.    Integer
  2.    String
  3.    Boolean
  4.    Float
 Discuss Question
Answer: Option B. -> String
Question 3. Which one of the following format parameter can be used to identify timezone?
  1.    T
  2.    N
  3.    E
  4.    I
 Discuss Question
Answer: Option C. -> E
Question 4. What will be the output of the following code? If say date is 22/06/2013.
  1.    Today is 22 June, 2013
  2.    Today is 22-06-2013
  3.    Today is 06-22-2013
  4.    Today is June 22, 2013
 Discuss Question
Answer: Option D. -> Today is June 22, 2013
Question 5. Which one of the following function is useful for producing a timestamp based on a given date and time.
  1.    time()
  2.    mktime()
  3.    mrtime()
  4.    mtime()
 Discuss Question
Answer: Option B. -> mktime()
Question 6. Which function displays the web page’s most recent modification date?
  1.    lastmod()
  2.    getlastmod()
  3.    last_mod()
  4.    get_last_mod()
 Discuss Question
Answer: Option B. -> getlastmod()
Question 7. Say you want to calculate the date 45 days from the present date which one of the following statement will you use?
  1.    totime(“+45”)
  2.    totime(“+45 days”)
  3.    strtotime(“+45 days”)
  4.    strtotime(“-45 days”)
 Discuss Question
Answer: Option C. -> strtotime(“+45 days”)
Question 8. What will be the output of the following PHP code? If say date is 22/06/2013.
  1.    30
  2.    22
  3.    JUNE
  4.    2013
 Discuss Question
Answer: Option A. -> 30
Question 9. How many methods does the DateTime class have?
  1.    8
  2.    9
  3.    10
  4.    11
 Discuss Question
Answer: Option B. -> 9
Question 10. How many constants does the DateTime class have?
  1.    8
  2.    9
  3.    10
  4.    11
 Discuss Question
Answer: Option D. -> 11

Latest Videos

Latest Test Papers