Time remaining
:
:
Test Status
PHPRANDOMTEST
Ques 1 :
Is it possible to submit a form with out a submit button?
(A) Yes
(B) No
Ques 2 :
The left association operator % is used in PHP for ?
(A) percentage
(B) bitwise or
(C) division
(D) modulus
Ques 3 :
Which of the following function is used for terminate the script execution in PHP?
(A) break()
(B) quit()
(C) die()
Ques 4 :
In PHP the error control operator is _______ ?
(A) .
(B) *
(C) @
(D) &
Ques 5 :
Which of the following function is used for terminate the script execution in PHP?
(A) quit()
(B) break()
(C) die()
Ques 6 :
Which of the following is used to check if a function has already been defined?
(A) bool function_exists(functionname)
(B) bool func_exist(functioname)
(C) bool f_exists(functionname)
Ques 7 :
Which datatypes are treaded as arrays
(A) Integer
(B) Float
(C) String
(D) Booleans
Ques 8 :
What is the output ?
<?php $arr = array(5 => 1, 12 => 2);
$arr[] = 56;
$arr["x"] = 42;
unset($arr);
echo var_dump($arr); ?>
(A) 56
(B) x=42
(C) 42
(D) Null
Ques 9 :
What is the out put.
<?php
$x=array("aaa","","ccc","ddd","");
$y=array_unique($x);
echo count($x) . "," . count($y);
?>
(A) 3,1
(B) 3,3
(C) 5,4
(D) 5,5
Ques 10 :
what will be the output of below code ?
<?php
echo $_SERVER['REMOTE_ADDR'];
?>
(A) shows the IP address of the webserver
(B) shows the IP address of the local system
(C) shows the IP address of the visitor
(D) None of the above
Ques 11 :
What is the output ?
<?php $x=array(1,3,2,3,7,8,9,7,3); $y=array_count_values($x); echo $y[8]; ?>
(A) 43
(B) 1
(C) 6
(D) 8
Ques 12 :
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
Ques 13 :
Given a comma-separated list of values in a string, which function from the given list can create an array of each individual value with a single call?
(A) strstr()
(B) strtok()
(C) explode()
(D) extract()
Ques 14 :
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
Ques 15 :
How would you add 1 to the variable $count?
(A) incr count;
(B) $count++;
(C) $count =+1
(D) incr $count;
Ques 16 :
What is the expansion of LAMP?
(A) Linux And Mysql Php
(B) Linux Apache Mysql Php
Ques 17 :
Casting operator introduced in PHP 6 is ?
(A) (array)
(B) (int64)
(C) (real) or (double) or (float)
(D) (object)
Ques 18 :
Whether One-line comment begin with pound sing(#) in php?
(A) True
(B) False
(C) None of above
Ques 19 :
What is the output ?
<?php define("x","5"); $x=x+10; echo x; ?>
(A) 10
(B) 5
(C) Error
(D) 15
Ques 20 :
Which of following are compound data type?
(A) Array
(B) Objects
(C) Both
(D) None
Submit Answer
Don't Refresh the Page !! ...