Thursday, 12 February 2015

Technical PHP interview questions

Posted by M2Software Solutions Solutions Pvt. Ltd | 23:29 Categories: ,

PHP Interview Questions :

 

Web Development company Que. 1 To work with remote files in PHP you need to enable
a.       allow_url_fopen 
b.      allow_remote_files
c.       both of above
d.      none of above
Que. 2  mysql_connect( ) does not take following parameter
a.       database host
b.      user ID
c.       password
d.      database name

Que. 3 When uploading a file if the UPLOAD_ERR-OK contains value 0 it means
a.       Uplaod is not successful, error occurred
b.      The file uploaded with success
c.       Uploaded file size is 0
d.      File upload progress is 0% completed 

Que. 4 With SQL, how do you select a column named "FirstName" from a table named "Persons"?

a) EXTRACT FirstName FROM Persons


b) SELECT Persons.FirstName


c) SELECT FirstName FROM Persons


d) None of these 


Que. 5 _______ function is used to return the length of string.

a) strlength()


b) str()

c) len()

d) strlen()


Que.6 Which of the following functions require the allow-url-fopen must be enabled? 
a.  include()
b.  require() 
c.  both of above 
d.  None of above

Que.7 Identify the variable scope that is not supported by PHP 
a.  Local variables 
b.  Function parameters 
c.  Hidden variables
d.  Global variables

Que.8 Identify the invalid identifier 
a.  my-function 
b.  size 
c.  –some word
d.  This&that

Que.9  The ____ function is used to set a cookie.
a) getcookie()

b) fetchcookie()

c) setcookie()

d) setcokie()


Que.10  When defining identifier in PHP you should remember that 
a.  Identifier are case sensitive. So $result is different than $ result
b.  Identifiers can be any length 
c.  Both of above 
d.  None of above

Answer-sheet


Que.1  A, Que.2 D, Que.3 B, Que.4 A, Que.5 D, Que.6 C, Que.7 C, Que.8 D, Que.9 C, Que.10 C.

Want more Questions CLICK THE LINKS BELOW :


PHP Multiple choice questions and answers-1
  PHP Multiple choice questions and answers-2 
  PHP Multiple choice questions and answers-3
  PHP Multiple choice questions and answers-4
  PHP Multiple choice questions-5 
  PHP Multiple choice questions and answers-6 
  PHP Multiple choice questions and answers-7
  PHP Multiple choice questions and answers-8
  PHP Multiple choice questions and answers-9
  PHP Multiple choice questions and answers-10  
  PHP Multiple choice Questions and answers-11
  PHP Multiple choice Questions and answers-12
  PHP Multiple choice questions and answers-13 
  PHP Multiple choice questions and answers-14
  

Solve the Questions and improve your web development skills....
 

Regards : M2Soft Solutions


         

0 comments:

Post a Comment

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