Sail E0 Webinar

MCQs

Total Questions : 103 | Page 6 of 11 pages
Question 51. Some PHP code might not have a namespace and therefore lives in the . . . . . . namespace.
  1.    Default 
  2.    Global
  3.    PRE
  4.    Automatic
 Discuss Question
Answer: Option B. -> Global
Question 52. It is possible to create a hierarchy of namespaces in PHP.
  1.    TRUE
  2.    FALSE
 Discuss Question
Answer: Option B. -> FALSE
Question 53. All classes in the same namespace or subnamespace don’t have to the declared in the same PHP file.
  1.    TRUE
  2.    FALSE
 Discuss Question
Answer: Option A. -> TRUE
Question 54. The value of __NAMESPACE__ is a string that contains the current namespace name. In global, un-namespaced code, it contains . . . . . .
  1.    NULL
  2.    0
  3.    an empty string
  4.    gibberish value
 Discuss Question
Answer: Option C. -> an empty string
Question 55. Which statement will output $x on the screen?
  1.    echo “\$x”;
  2.    echo “$$x”;
  3.    echo “/$x”;
  4.    echo “$x;”;
 Discuss Question
Answer: Option A. -> echo “\$x”;
Question 56. PHP is an example of ___________ scripting language
  1.    Server-side
  2.    Client-side
  3.    Browser-side
  4.    In-side
 Discuss Question
Answer: Option A. -> Server-side
Question 57. Which of these is NOT a web programming language?
  1.    PHP
  2.    HTML
  3.    LML
  4.    Perl 5
 Discuss Question
Answer: Option C. -> LML
Question 58. Which of the following is used to delete a cookie?
  1.    setcookie() function
  2.    $_COOKIE variable
  3.    isset() function
  4.    unsetcookie() function
 Discuss Question
Answer: Option A. -> setcookie() function
Question 59. Which of following are compound data type?
  1.    Array
  2.    Object
  3.    Both of Above
  4.    None of the Above
 Discuss Question
Answer: Option C. -> Both of Above
Question 60. Which one of these variables has an illegal name?
  1.    $my-Var
  2.    $myVar
  3.    $my_Var
  4.    none of the above
 Discuss Question
Answer: Option A. -> $my-Var

Latest Videos

Latest Test Papers