Showing posts with label PHP MCQ. Show all posts
Showing posts with label PHP MCQ. Show all posts

Friday, 8 May 2015

PHP company
Que.1 . mysql_connect( ) does not take following parameter

A. database host
B. user ID
C. password
D. database name
                                                                                Ans : D

Que.2 Which of the following is not a session function?

A. sssion_decode
B. session_destroy
C. session_id
D. session_pw
                                                                              Ans : D
Que.3 Php supports all four different ways of delimiting. In this context identify the false statement

A. You can use any of the delimiting style
B. You can use different delimiting styles in same page
C. You can use any delimiting style but must use a single style consistently for a page
D. Variables declared in previous blocks are remenbered on later blocks too!
                                                                             Ans : C

Que.4 How many methods are available for the exception class?

a) 5
b) 6
c) 7
d) 8
                                                                             Ans : C

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

a) throws new Exception();
b) throw new Exception();
c) new Exception();
d) new throws Exception();
                                                                            Ans : B

Que.6 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()
                                                                            Ans : C
 
Que.7  Which function is useful when you want to output the executed command’s result?

a) out_cmm()
b) out_system()
c) cmm()
d) system()
                                                                           Ans : D

Que.8  The authenticationFile.txt, the file which stores username and password should be stored ___ the server document root.

a) Inside
b) Outside
c) Within
d) None of the above
                                                                         Ans : B
Que. 9  The authenticationFile.txt, the file which stores username and password should be stored ___ the server document root.

a) Inside
b) Outside
c) Within
d) None of the above
                                                                         Ans : B
Que.10 Which one of the following function is capable of reading a file into an array?

a) file()
b) arrfile()
c) arr_file()
d) file_arr()
                                                                        Ans : A

Want more Questions.. Click the links below :

 

Friday, 5 December 2014


  Hello Everyone...!!!
Web Development Company


Here is the answer-sheet of yesterday's test that is "Interview questions for PHP developers" for PHP Developrs.. to improve  your Web Development Skills and prepare interviews...

For Questions GO HERE :

                 Questions                                 Answers

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

Want more Questions....??? CLICK THE LINKS BELOW


 
 



 

 
 

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



Regards : Web Development Company



Thursday, 4 December 2014

Hello Everyone...!!!
Web Development Company

Today i am here with more then 200 Quetions for PHP developers to improve their web development skills and prepare for interviews.
 Questions :


Que.1 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
Que.2 mysql_connect( ) does not take following parameter
a.       database host
b.      user ID
c.       password
d.      database name 
  
Que.3 How would you start a session?

a. session(start);
b. session();
c. session_start();
d. begin_session();

Que.4  For integer data type PHP 6 introduced 
a.      8 bit integer value
b.      16 bit integer value 
c.       32 bit integer value 
d.      64 bit integer value
Que.5 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.6 Variable scope on which a variable does not loose its value when the function exists and use that value if the function is called again is:
a.  Local 
b.  function parameter 
c.  static 
d.  None of above
Que.7  Variables/functions in PHP don't work directly with:

a. echo()
b. isset()
c. print()
d. All of the above
Que.8  Identify the variable scope that is not supported by PHP
  
a.  Local variables 
b.  Function parameters 
c.  Hidden variables 
d.  Global variables
Que.8  which of the following is a correct declaration?

a. static $varb = array(1,'val',3);
b. static $varb = 1+(2*90);
c. static $varb = sqrt(81);
d. static $varb = new Object;
Que.9 Which of the following variables is not related to file uploads?

a. max_file_size
b. max_execution_time
c. post_max_size
d. max_input_time

Que.10 Which of the following is used to maintain the value of a variable over different pages?

a. static
b. global
c. session_register
d. None of the above

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