Sail E0 Webinar

MCQs

Total Questions : 77 | Page 8 of 8 pages
Question 71. The arguments in a function are evaluated from .....
  1.    left to right
  2.    right to left
  3.    sometimes left to right and sometimes right to left
  4.    Always right to left
 Discuss Question
Answer: Option A. -> left to right
Question 72. Strlen() returns the length of the string on success and . . . . if the string is empty.
  1.    -1
  2.    NULL
  3.    Garbage value
  4.    0
 Discuss Question
Answer: Option D. -> 0
Question 73. 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 74.  . . . . . 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 75. 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 76. 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 77. 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

Latest Videos

Latest Test Papers