Time remaining
:
:
Test Status
PHPRANDOMTEST
Ques 1 :
Is php can support multiple inheritance?
(A) NO
(B) YES
Ques 2 :
In php string data are
(A) delimited by single quote
(B) delimited by double quote
(C) delimited by <<< identifier
(D) All of above
Ques 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 any delimiting style but must use a single style consistently for a page
(C) You can use different delimiting styles in same page
(D) Variables declared in previous blocks are remembered on later blocks too!
Ques 4 :
Trace the odd data type
(A) floats
(B) integer
(C) doubles
(D) Real number
Ques 5 :
what will be the output of below code ?
<? php
$str="3dollars";
$a=20;
$a+=$str;
print($a);
?>
(A) 320dollars
(B) 203dollars
(C) 23dollars
(D) 23
Ques 6 :
What is the expansion of LAMP?
(A) Linux And Mysql Php
(B) Linux Apache Mysql Php
Ques 7 :
Which of the following is used to check if a function has already been defined?
(A) bool func_exist(functioname)
(B) bool function_exists(functionname)
(C) bool f_exists(functionname)
Ques 8 :
What is the out put
<?php
$color=array("red","yellow","white");
$x=in_array("black",$color);
if($x==0)
echo "good bye";
if($x==1) echo "Hello";
?>
(A) Error
(B) Hello
(C) good bye
(D) None of the above
Ques 9 :
Identify the variable scope that is not supported by PHP ?
(A) Local variables
(B) Function parameters
(C) Hidden variables
(D) Global variables
Ques 10 :
Is it possible to submit a form with out a submit button?
(A) Yes
(B) No
Ques 11 :
Which of the following method sends input to a script via a URL?
(A) Get
(B) Post
(C) Both
(D) None
Ques 12 :
The function setcookie( ) is used to
(A) Declare cookie variables
(B) Store data in cookie variable
(C) Enable or disable cookie support
(D) All of above
Ques 13 :
In PHP, during error handling include() generates....................
(A) a fatal error, and the script will stop
(B) a warning, but the script will continue execution
(C) None of the above
Ques 14 :
In PHP, which of the following function is used to insert content of one php file into another php file before server executes it
(A) include[]
(B) #include()
(C) #include{}
(D) include()
Ques 15 :
<? php
$x="display";
${$x.'_result'} ();
?>
Above program will call the function display_result()
(A) False
(B) True
(C) Parser Error
(D) None of the above
Ques 16 :
Casting operator introduced in PHP 6 is?
(A) int64
(B) array
(C) object
(D) real or double or float
Ques 17 :
Which of the following PCRE regular expressions best matches the string php|architect?
(A) \d{3}\|\d{8}
(B) [a-z][a-z][a-z]\|\w{9}
(C) [az]{3}\|[az]{9}
(D) .*
Ques 18 :
PHP is a widely used �����. scripting language that is especially suited for web development and can be embedded into html.
(A) Open source general purpose
(B) Open source special purpose
(C) Proprietary special purpose
(D) Proprietary general purpose
Ques 19 :
Which of the following function is used for terminate the script execution in PHP?
(A) break()
(B) quit()
(C) die()
Ques 20 :
Are there regular expressions in PHP?
(A) Yes - regular expressions use Perl-like conventions
(B) Yes - PHP supports two different types of regular expressions: POSIX-extended and Perl-Compatible Regular Expressions (PCRE).
(C) Yes - regular expressions use the POSIX standard
(D) No - PHP uses "glob" style matching only
Submit Answer
Don't Refresh the Page !! ...