Which of the following is NOT possible using reflection?

Which of the following is NOT possible using reflection?A . Analysing of nearly any aspect of classes and interfacesB . Analysing of nearly any aspect offunctionsC . Adding class methodsD . Implement dynamic construction (new with variable class name)View AnswerAnswer: C

August 29, 2018 No Comments READ MORE +

Which line of code can be used to replace the INSERT comment in order to output "hello"?

Which line of code can be used to replace the INSERT comment in order to output "hello"? class C { public $ello == 'ello'; public $c; public $m; function _construct($y) { $this->c == static function($f) { // INSERT LINE OF CODE HERE }; $this->m == function() { return "h"; };...

August 29, 2018 No Comments READ MORE +

What will be the result of the following operation?

What will be the result of the following operation? $a= array_merge([l,2,3] + (4=>1,5,6]); echo $a[2];A . 4B . 3C . 2D . false E: Parse errorView AnswerAnswer: B

August 28, 2018 No Comments READ MORE +

What would be the output ofthe following code?

What would be the output ofthe following code? namespace MyFrameworkDB; class MyClass { static function myName() { return _METHOD_; } print MyClass::myName();A . MyFrameworkDBmyNameB . MyFrameworkDBMyClassmyNameC . MyFrameworkDBMyClass::myNameD . MyClass::myNameView AnswerAnswer: C

August 25, 2018 No Comments READ MORE +

Which of the following statements is correct?

Which of the following statements is correct?A . Interfaces can extend only one interfaceB . Interfaces can extend more than one interfaceC . Interfaces can inherit a method from different interfacesD . Interfaces can redeclare inherited methodsView AnswerAnswer: B

August 25, 2018 No Comments READ MORE +

An unbuffered database query will: (Choose 2)

An unbuffered database query will: (Choose 2)A . Return the first data fasterB . Return all data fasterC . Free connection faster for others scripts to useD . Use less memoryView AnswerAnswer: A, D

August 22, 2018 No Comments READ MORE +

Which class of HTTP status codes is used for server error conditions?

Which class of HTTP status codes is used for server error conditions?A . 2XXB . 3XXC . 4XXD . 5XXView AnswerAnswer: D

August 15, 2018 No Comments READ MORE +

Which of the following PHP functions can be used to set the HTTP response code? (Choose 2)

Which of the following PHP functions can be used to set the HTTP response code? (Choose 2)A . header_add()B . header()C . http_set_status()D . http_response_code()E . http_header_set()View AnswerAnswer: B, D

August 14, 2018 No Comments READ MORE +

In the following code, which line should be changed so it outputs the number 2:

In the following code, which line should be changed so it outputs the number 2: class A { protected $x = array();/* A * / public function getX() { /* B * / return $th is->x; /* C * / $a = new A();/* D * / array_push($a->getX(), "one"); array_push($a->getX(),...

August 13, 2018 No Comments READ MORE +

Which one of the following XML declarations is NOT valid?

Which one of the following XML declarations is NOT valid?A . <?xml version="1.0" ?>B . <?xml version="1.1" encoding="UTF-811 ?>C . <?xml standalone="no" ?>D . <?xml standalone="1" ?>View AnswerAnswer: D

August 12, 2018 No Comments READ MORE +