Wednesday, 27 August 2014

Hello Everyone...!!!

web development, PHP Questions For PHP developers, PHP technical interview questions At every Thursday a practice session is conducted by M2 Software Solution to improve the web development skills of PHP developers.

PHP Questions

Que.1 Use the ___________ to delete the data inside the table, and not the table itself?


Que.2 What is the correct way to include the file "" ?

a) <!--include file=""-->
b) <% include file="" %>
c) <?phpinclude_file(""); ?>
d) <?php require(""); ?>          

Que.3 Is it possible to pass data from PHP to JavaScript? 

A. No, because PHP is server-side, and JavaScript is client-side.
B. No, because PHP is a loosely typed language.
C. Yes, because JavaScript executes before PHP.
D. Yes, because PHP can generate valid JavaScript

Que.4  What is the purpose of basename() function in PHP?

A.    Returns the last accessed time of the file
B.    Returns the first accessed time of the file
C.    Strips of the path and returns the file name.
D.    Strips of the path the returns of the folder name.

Que.5 .What is the correct way to open the file "time.txt" as readable?

a) fopen("time.txt","r");b) open("time.txt");
c) fopen("time.txt","r+");  d) open("time.txt","read");    

Que.6 Which types of form elements can be excluded from the HTTP request? 

A. text, radio, and check box
B. text, submit, and hidden
C. submit and hidden
D. radio and check box

Que.7 Which one of these variables has an illegal name?

a) $my-Var
b) $myVar
c) $my_Var
d) None of these              

Que.8 Which of the following form element names can be used to create an array in  PHP?

A. foo
B. [foo]
C. foo[]
D. foo[bar]

Que.9 . How does the identity operator ===compare two values in PHP?

A.    It converts them to common compatible data type and then compares the resulting values.
B.    It returns True only if they are both of the same type and value
C.    If the two values are strings, it performs a lexical comparison
D.    It based its comparison on the C strcmp function exclusively
E.    It converts both values to strings and compares them

Que.10 ______________ Returns the time of sunrise for a given day / location in PHP.

A.    datesunrise()
B.    date_sunrise()
C.    date-sunrise()
D.    date.sunrise()

The answer-sheet of this practice will be available tomorrow

For more Questions CLICK THE LINKS BELOW

Share your experience or give any suggestion... in comments

Regards : M2 Software Solutions Pvt. Ltd.


  1. We are a leading software development services in delhi,which works as per the client requirements and give provide software.

  2. Thanks for the website development tips. Your way of giving of information was awesome.
    php web development company in Indore | php website design in Indore


  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube