Sail E0 Webinar

MCQs

Total Questions : 147 | Page 3 of 15 pages
Question 21. What does PDO stand for?
  1.    PHP Data Orientation
  2.    PHP Database Object
  3.    PHP Database Orientation
  4.    PHP Data Object
 Discuss Question
Answer: Option D. -> PHP Data Object
Question 22. Which version of PHP allows you to define constant properties within a class?
  1.    PHP 4
  2.    PHP 4.1
  3.    PHP 4.3
  4.    PHP 5
 Discuss Question
Answer: Option D. -> PHP 5
Question 23. Which keyword is used to declare a constant property?
  1.    const
  2.    con
  3.    constant
  4.    _constant
 Discuss Question
Answer: Option A. -> const
Question 24. Which one of the following is a constant variable?
  1.    const $name
  2.    const $NAME
  3.    constant NAME
  4.    const NAME
 Discuss Question
Answer: Option D. -> const NAME
Question 25. What will happen if you try to set a value to a constant once it has been declared?
  1.    The value of the variable will change
  2.    The value of the variable will not change
  3.    Parse Error
  4.    Nothing
 Discuss Question
Answer: Option C. -> Parse Error
Question 26. How many of the following can be contained in constants?
1. boolean
2. integer
3. float
4. string
  1.    1
  2.    2
  3.    3
  4.    4
 Discuss Question
Answer: Option D. -> 4
Question 27. Which one of the following class can not be instantiated?
  1.    inherited class
  2.    abstract class
  3.    constant class
  4.    every class
 Discuss Question
Answer: Option B. -> abstract class
Question 28. Which one of the following is the correct abstract method?
  1.    public function write()
  2.    abstract function write()
  3.    abstract public write();
  4.    abstract public function write();
 Discuss Question
Answer: Option D. -> abstract public function write();
Question 29. Which one of the following keywords is used to define an abstract class?
  1.    extends
  2.    implements
  3.    abstract
  4.    new
 Discuss Question
Answer: Option C. -> abstract
Question 30. Atleast how many abstract methods must an abstract class contain?
  1.    None
  2.    One
  3.    Two
  4.    Five
 Discuss Question
Answer: Option B. -> One

Latest Videos

Latest Test Papers