1. Which of the following will produce a value of “83” as its output? echo intval(“0123”, 8); echo (int) 083 echo (int) 123; echo intval(“0123”); Answer : echo intval(“0123”, 8); 2. What will be the output of the following code? class Person { protected $name; public function __construct($name) { $this->name = $name; } public function getName() { return $this->name; } } $person = new Person(“Foo”); echo $person->getName(); Nothing will be printed on-screen. Foo Syntax error on line $this->name=$name Fatal error on line $this->name=$name Answer : Foo 3. What is the best practice for running MySQL queries in PHP? Consider the risk of SQL injection. Use mysql_query() and variables: for example: $input = $_POST[‘user_input’]; mysql_query(“INSERT INTO table (column) VALUES (‘” . $input . “‘)”); Use PDO prepared statements and parameterized queries: for example: $input= $_POST[“user-input”] $stmt = $pdo->prep...