Sail E0 Webinar

MCQs

Total Questions : 77 | Page 7 of 8 pages
Question 61. What will be the output of the following PHP code ?
  1.    contact
  2.    [email protected]
  3.    @examveda.com
  4.    examveda.com
 Discuss Question
Answer: Option C. -> @examveda.com
Question 62. What will be the output of the following PHP code ?
  1.    o world!
  2.    Hello world!
  3.    111
  4.    No Output
 Discuss Question
Answer: Option A. -> o world!
Question 63.  . . . . . converts the keys of an array into values and the values into keys.
  1.    array_flips()
  2.    array_transpose()
  3.    array_trans()
  4.    array_flip()
 Discuss Question
Answer: Option D. -> array_flip()
Question 64. Above usleep() function pauses PHP for .
usleep(1000000);
  1.    1 second
  2.    1 microseconds
  3.    10 seconds
  4.    100 microseconds
 Discuss Question
Answer: Option A. -> 1 second
Question 65. Output will be:
$array = array(0, 1, 2);
$array = array_pad($array, -6, ‘NEW’);
  1.    Array ( [1] => NEW [2] => NEW [3] => NEW [4] => 0 [5] => 1 [6] => 2 )
  2.    Array ( [-1] => NEW [-2] => NEW [-3] => NEW [-4] => 0 [-5] => 1 [-6] => 2 )
  3.    Array ( [0] => NEW [-1] => NEW [-2] => NEW [-3] => 0 [-4] => 1 [-5] => 2 )
  4.    Array ( [0] => NEW [1] => NEW [2] => NEW [3] => 0 [4] => 1 [5] => 2 )
 Discuss Question
Answer: Option D. -> Array ( [0] => NEW [1] => NEW [2] => NEW [3] => 0 [4] => 1 [5] => 2 )
Question 66. Phpinfo() will display about?
1. OS version information
2. PHP installation
3. Variables
4. HTTP headers
  1.    Option 1
  2.    Option 2
  3.    Option 3
  4.    Option 4
  5.    All the Above
 Discuss Question
Answer: Option E. -> All the Above
Question 67.  . . . . returns a new DateTime object.
  1.    getdate()
  2.    date_create()
  3.    date_sunrise()
  4.    date()
 Discuss Question
Answer: Option B. -> date_create()
Question 68. Returning values from functions may include .....
  1.    Arrays
  2.    Objects
  3.    Both A & B
  4.    None of above
 Discuss Question
Answer: Option C. -> Both A & B
Question 69. The below statement will return.
$Var = substr(""abcdef"", -4, 1);
  1.    returns "f"
  2.    returns "d"
  3.    returns "c"
  4.    returns "cd"
 Discuss Question
Answer: Option C. -> returns "c"
Question 70. It is always necessary to use parentheses with the print function.
  1.    True
  2.    False
 Discuss Question
Answer: Option B. -> False

Latest Videos

Latest Test Papers