Thursday 2 October 2014

Hello Everyone...!!!

As you all know on every Thursday a PHP test is conducted by M2 Software Solutions.

This post contains many multiple choice questions with answers of PHP For PHP developers to improve their web development skills..

PHP Questions

 

Que.1 Which two predefined variables are used to retrieve information from forms?
 
a) $GET & $SET
b) $_GET & $_SET
c) $__GET & $__SET
d) GET & SET

Que.2 Which one of the following PHP function is used to determine a file’s last access time?

a) fileltime()
b) filectime()
c) fileatime()
d) filetime()

Que.3 How many types of filtering are present in PHP?

a) 3
b) 2
c) 4
d) None

Que.4 Which feature allows us to call more than one method or function of the class in single instruction?

a) Typecasting
b) Method Including
c) Method adding
d) Method chaining


Que.5 When you use the $_POST variable to collect data, the data is visible to..

a) none
b) only you
c) everyone
d) selected few

Que.6 In which authentication method does changing the username or password can be done only by entering the code and making the manual adjustment.

a) Hard-coding a login pair directly into the script
b) File-based authentication
c) Data-based authentication
d) PEAR’S HTTP authentication

Que.7 Which one of the following function is capable of reading a specific number of characters form a file?

a) fgets()
b) fget()
c) fileget()
d) filegets()

Que.8 Which function is used to remove all HTML tags from a string passed to a form?

a) remove_tags()
b) strip_tags()
c) tags_strip()
d) tags_remove()

Que.9 In which of the following situations does file-based authentication become inconvenient.

i) small list
ii) large number of user
iii) users are being regularly added
iv) static authentication

a) i) and iv)
b) i) and iii)
c) ii) and iii)
d) ii) and iv)

Que.10 . Which one of the following function is capable of reading a specific number of characters form a file?

a) fgets()
b) fget()
c) fileget()
d) filegets()


Answer-sheet of these questions will be available Tomorrow

For more questions CLICK THE LINKS BELOW

Share your experience or any suggestion with us .. VIA COMMENTS

 

 







0 comments:

Post a Comment

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