Wednesday, 17 September 2014

Hello Everyone...!!!
PHP multiple choice interview questions, PHP questions and answers to check web development skills,

As every Thursday I am back with some PHP questions to solve and enhance web development skills of PHP developers.

Solve The Questions :

Que.1 Which one of the following PHP functions can be used to build a function that accepts any number of arguments?

a) func_get_argv()
b) func_get_argc()
c) get_argv()
d) get_argc()

Que.2  How many error levels are available in PHP?

a) 14
b) 15
c) 16
d) 17

Que.3 Which of the following statements invoke the exception class?

a) throws new Exception();
b) throw new Exception();
c) new Exception();
d) new throws Exception();

Que.4  Which of the following is/are an external data?

i) Cookies
ii) Input data from a form
iii) Server Variables
iv) Web services data
a) Only ii)
b) ii) and iii)
c) None of the mentioned
d) All of the mentioned

Que.5 The attack which involves the insertion of malicious code into a page frequented by other users is known as..

a) basic sql injection
b) advanced sql injection
c) cross-site scripting
d) scripting

Que.6 hich one of the following statements can be used to establish port 80 connection with

a) fsockopen(“”, 80);
b) sockopen(80,””);
c) fsockopen(80,””);
d) sockopen(“”, 80);

Que.7 What is the default value of max_execution_time directive? This directive specifies how many seconds a script can execute before being terminated.

a) 10
b) 20
c) 30
d) 40

Que.8 Which one of the following PHP functions can be used to find files?

a) glob()
b) file()
c) fold()
d) get_file()

Que.9 Say you want to report error concerned about fatal run-time, fatal compile-time error and core error which statement would you use?

a) error_reporting = E_ALL
b) error_reporting = E_ERROR | E_PARSE | E_CORE_ERROR
c) error_reporting = E_ERROR | E_COMPILE_WARNING | E_CORE_ERROR
d) error_reporting = E_ERROR | E_COMPILE_ERROR | E_CORE_ERROR

Que.10 How many predefined exceptions does SPL (Standard PHP Library) provide access to?

a) 13
b) 14
c) 15
d) 16

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


Post a Comment

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