Wednesday, 9 July 2014

Test for PHP developer

Posted by M2Software Solutions Solutions Pvt. Ltd | 22:39 Categories: , , ,
Hello friends...!!! 

So , here is the time for weekly test for PHP developer 

 

PHP developer

 


QUESTIONS  :




Que. 1 Identify the variable scope that is not supported by PHP

 
a. Local variables

b. Function parameters

c. Hidden variables

d. Global variables
 

Que.2 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 3 On failure of which statement the script execution stops displaying error/warning message?

 

a. rinclude ()

b. require ()

c. both of above

d. None of above

Que 4 Trace the function that does continue the script execution even if the file inclusion fails


a. include ()

b. require ()

c. both of above

d. None of above

Que 5 Which of the following delimiting method is known as string Interpolation


a. delimited by single quote

b. delimited by double quote

c. delimited by <<< identifier

d. All of above

Que. 6 Casting operator introduced in PHP 6 is


a. (array)

b. (int64)

c. (real) or (double) or (float)

d. (object)

Que. .7 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 . 8 What is the correct way to include the file "time.inc" ? 

a) <!--include file="time.inc"-->

b) <% include file="time.inc" %>

c) <?phpinclude_file("time.inc"); ?>

d) <?php require("time.inc"); ?

Que 9 PHP allows you to send emails directly from a script 

a) True
b) False

Que. 10 .In PHP, the die() and exit() functions do the exact same thing.

a) False

b) True

Que 11 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. 12 The HTML ______ tag is used to insert a JavaScript into an HTML page.


a)<scripting>

b)<script>

c)<javascript>

d)None of these

Que. 13 Which SQL keyword is used to sort the result-set?


a) ORDER

b) SORT

c) ORDER BY

d) SORT BY

Que 14 Which event will be occur when user enter or leave the page?


a) OnFocus, OnBlur

b) OnFocus, OnChange

c) OnLoad, OnUnload

d) None of these

Que. 15 Which method is secured for securing data in PHP?


a) $_POST

b) $_GET

c) Both a & b

d) None of these


Answer the questions....


Answer-sheet of questions will be available tomorrow...


Share your experience with us... in comments  


Regards : m2soft solutions Pvt. Ltd. 



0 comments:

Post a Comment

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