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

Urgent Recruitment For Freshers And Experienced at TATA Power

Company Profile: Tata Power Solar with 25 years of deep domain expertise, is one of the pioneering solar manufacturers in the world and India's largest specialized EPC player. Reference link :http://www.tatapower.com/careers/opportunities.aspx Job Role : Graduate Trainee Job Type : Engineering jobs Job Details : At Tata Power we have a vision of where we want to go, and it’s really exciting. Would you like to be part of a company that is making history? Towards this objective, Tata Power participates in campus recruitments and is the company of choice in most major engineering institutes such as National Insitute of Technology, VJTI, Govt. Engineering Colleges, Birla Institute of Technology, NPTI, MS University, Nirma Institute of Technolgy, etc. Apart from college hiring, we also hire experienced professionals from the industry at various mid-level and senior positions. A Structured Induction Programme is carried out for: Graduate Engineer Trainees (GETs) All the GETs und...

We have the openings for Python,Django

Job Synopsis         Python / Django Openings With Symphony Teleca - Bangalore Company:         Symphony Experience:      5 to 10 yrs Location:         Bengaluru/Bangalore Job Description         Work Location: Bangalore (ITPL) Experience: 2-10 Yrs (SE, SSE, Lead, Architect/Manager) Mandatory Skills: Django 1.3.3 Python 2.6 Mysql 5.1 / Postgres 9.1 / any other DB Optional Skills: Celery 3.0.5, Httpd, Nginx, Memcache, Jquery Please revert with your updated CV's ASAP. Regards, Deepthi. Role:                         Team Lead/Technical Lead Role Category:         Programming & Design Industry Type:         IT-Software / Software Services Functiona...

Looking for Drupal Themer

Location : Bangalore Position : Drupal Themer Job Responsibilities: • Work with Drupal Developer in porting pages to Drupal • Responsible for building Drupal themes and template files for themes for requirements specified Preferred profile: Strong Knowledge of Drupal coding standards. Strong grasp of semantic, HTML and CSS based design • Experience in converting PSDs and into functional Drupal themes from scratch • Experience in creating well-commented, Zen-based subthemes (http://drupal.org/project/zen) from provided layered Photoshop compositions, including creating and editing templates for different node-types and pages, editing .info files, and adding additional theme settings using the Drupal Form API. • Experience in adding, editing and deleting pages, users, user groups, blocks, and block areas on a pre-existing Drupal installation based on provided directions, text, pictures and wireframes • Experience in testing and modifying Drupal themes and stylesheets to ensure consistent...