Sail E0 Webinar

MCQs

Total Questions : 103 | Page 4 of 11 pages
Question 31. Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?
  1.    When the parameter is Boolean
  2.    When the function is being declared as a member of a class
  3.    When the parameter is being declared as passed by reference
  4.    When the function contains only one parameter
  5.    Never
 Discuss Question
Answer: Option C. -> When the parameter is being declared as passed by reference
Question 32. Variables always start with a ........ in PHP
  1.    Pond-sign
  2.    Yen-sign
  3.    Dollar-sign
  4.    Euro-sign
 Discuss Question
Answer: Option C. -> Dollar-sign
Question 33. PHP is an open source software.
  1.    True
  2.    False
 Discuss Question
Answer: Option A. -> True
Question 34. PHP runs on different platforms (Windows, Linux, Unix, etc.)
  1.    True
  2.    False
 Discuss Question
Answer: Option A. -> True
Question 35. Which of the following is not valid PHP code?
  1.    $_10
  2.    ${“MyVar”}
  3.    &$something
  4.    $10_somethings
  5.    $aVaR
 Discuss Question
Answer: Option D. -> $10_somethings
Question 36. You can test the type of any variable with the ..... function.
  1.    whattype()
  2.    showtype()
  3.    gettype()
  4.    settype()
 Discuss Question
Answer: Option C. -> gettype()
Question 37. Assigning the empty string (like ' ') to a variable automatically renders it empty.
  1.    True
  2.    False
 Discuss Question
Answer: Option B. -> False
Question 38. If you echo a Boolean variable, the value FALSE displays as a .... and the value TRUE echoes as a .....
  1.    0, 1
  2.    blank string, 2
  3.    empty variable, 1
  4.    blank string, 1
 Discuss Question
Answer: Option D. -> blank string, 1
Question 39. When a simple data type is casted to an array, an array is created with the original value in the first element.
  1.    True
  2.    False
 Discuss Question
Answer: Option A. -> True
Question 40. String values must be enclosed in ......
  1.    single quotes
  2.    double quotes
  3.    both A and B
  4.    none of above
 Discuss Question
Answer: Option C. -> both A and B

Latest Videos

Latest Test Papers