Professional Documents
Culture Documents
PHP Test (Senior)
PHP Test (Senior)
Question: What is polymorphism? Write methods and difference b/w those methods from which
polymorphism is achieved?
Question: What are hooks in Codeignitor? Write type of hooks available in Codeignitor.
Question: Write difference b/w multiple inheritance & multilevel inheritance? Does php/CI
supports both kind of inheritance..??
PHP 2
Question: Write difference b/w Synchronous and Asynchronous? How does it works in ajax?
Question: Consider you have the following three tables which have to be linked together.
EmployeeContactDetails(Ssn, DepartmentID,desc,Ord)
The problem statement is to select all the departments from the Department table, with
the “desc” field from the EmployeeContactDetails and EmployeeAddress where
Ord=1. Now, you have to solve this problem statement with a single query?
Question: Write a program to find 2nd largest value in an array. $array = [5, 3, 7, 9, 6, 8]