Skip to main content

Openings for different technoogies.

PHP Interview questions 1

1) What type of inheritance that PHP supports?
Ans :      In PHP an extended class is always dependent on a single base class, that is, multiple inheritance is not supported. Classes are extended using the keyword 'extends'.

2) What is the difference between Primary Key and Unique key?
Ans :      Primary Key: A column in a table whose values uniquely identify the rows in the table. A primary key value cannot be NULL.
Unique Key: Unique Keys are used to uniquely identify each row in the table. There can be one and only one row for each unique key value. So NULL can be a unique key.There can be only one primary key for a table but there can be more than one unique for a table.
                 
3) what is garbage collection? default time ? refresh time?
Ans : Garbage Collection is an automated part of PHP , If the Garbage Collection process runs, it then analyzes any files in the /tmp for any session files that have not been accessed in a certain amount of time and physically deletes them. Garbage Collection process only runs in the default session save directory, which is /tmp. If you opt to save your sessions in a different directory, the Garbage Collection process will ignore it. the Garbage Collection process does not differentiate between which sessions belong to whom when run. This is especially important note on shared web servers. If the process is run, it deletes ALL files that have not been accessed in the directory. There are 3 PHP.ini variables, which deal with the garbage collector: PHP ini value name default session.gc_maxlifetime 1440 seconds or 24 minutes session.gc_probability 1 session.gc_divisor 100
4) What are the advantages/disadvantages of MySQL and PHP?
Ans :      Both of them are open source software (so free of cost), support cross platform. php is faster then ASP and JSP.
5) What is the difference between GROUP BY and ORDER BY in Sql?
Ans :      ORDER BY [col1],[col2],…,[coln]; Tels DBMS according to what columns it should sort the result. If two rows will hawe the same value in col1 it will try to sort them according to col2 and so on.GROUP BY [col1],[col2],…,[coln]; Tels DBMS to group results with same value of column col1. You can use COUNT(col1), SUM(col1), AVG(col1) with it, if you want to count all items in group, sum all values or view average .

Comments

Popular posts from this blog

Openings for different technoogies.

 

Walk in for Networking Executives On 29th Nov

Company        Infosys BPO Ltd Website          www.infosysbpo.com Eligibility        Graduates/Diploma Experience     1-3 Years Location         Chennai Infosys BPO Ltd Job Role: Networking Executives Job Summary : 1. Working experience in supporting network related queries 2. Knowledge on switches, Rouers, Hubs, LAN'S,WAN'S etc is preferred QUALIFICATION: 1. Only graduates with 10+2+3 2. Diploma 10+2+3 SKILLSETS: Good communication skills. Strong analytical and problem solving skills. EXPERIENCE 18 to 36 months experience in the relevant field only OTHERS Flexibility to work in shifts Walkins for Networking Executives on 29th Nov 2012 *****Interview Slots******* ******10:30 AM & 1:00 PM & 3:00 PM***** Walk-In Venue: Infosys BPO 3rd Floor, Hardy Towers Ramanujam IT Park Next to Tidal Taramani (Tirumanviyur...

SBI Hiring Probationary Officers

Company        SBI(State Bank Of India) Website          www.sbi.co.in Eligibility        Any Degree Experience     Freshers Location         Anywhere in India SBI(State Bank Of India) Job Role: Probationary Officers (POs) Job Summary : Eligibility Criteria: Graduation in any discipline from a recognised University or any equivalent qualification recognised as such by the Central Government. Age Limit: As on 01.01.2013 Not below 21 years and not above 30 years as on 01.01.2013 i.e candidates must have been born not earlier than 02.01.1983 and not later than 01.01.1992 (both days inclusive) ONLINE REGISTRATION OF APPLICATION: 30.01.2013 TO 23.02.2013 PAYMENT OF FEES - ONLINE : 30.01.2013 TO 23.02.2013 PAYMENT OF FEES - OFFLINE : 01.02.2013 TO 28.02.2013 DATE OF WRITTEN EXAMINATION : 28.04.2013 More Details: http://w...