-
How do you revert a commit on your local repository?
-
How do you revert a commit that has already been pushed and made public?
-
How would you move a commit from one branch to another?
-
What is CORS? How does it work?
-
Explain the purpose of each of the HTTP request types when used with a RESTful web service.
-
What is a “MIME type”, what does it consist of, and what is it used for? Provide an example?
-
What are the differences between abstract and interface?
-
What is polymorphism in OOP? Give an example.
-
What is MVC pattern? What other patterns do you know and when do you use them?
-
What are the differences between === and ==?
-
Assume you have a table Posts and a table Categories, How would you build the news pages using the MVC pattern?
-
What are the steps involved when you run a find query from the controller or model in the MVC framework that you are mostly familiar with? (Any framework is fine)
-
Please write the differences between "many to many" and "many to one"?
-
What is the output with the following code? Please explain your answer.
<?php
class Vehicle
{
public function getMake()
{
return __CLASS__;
}
}
class Mercedes extends Vehicle
{
}
$car = new Mercedes();
echo $car->getMake();- What are the errors of this code? What is intended to print?
class Mercedes
{
public function __construct($flag = true)
{
$this->latest = $flag;
}
public static function getBuiltYear()
{
$year = new \DateTime('now');
if (!$this->latest()) {
$year->modify('-1 year');
}
return $year->format('Y');
}
}