What will be the value of $var?
$var = 1 / 2;
Answer
What will be printed?
$var = '0';
if ($var) {
echo 'true';
} else {
echo 'false';
}
Answer
Which of the following is used to declare a constant?
AnswerWhat gets printed?
$var = 'false';
if ($var) {
echo 'true';
} else {
echo 'false';
}
Answer
A value that has no defined value is expressed in PHP with the following keyword:
AnswerWhich of the following is the way to create comments in PHP?
AnswerWhat will be printed by the code below?
<?php
FUNCTION TEST()
{
ECHO "HELLO WORLD!\n";
}
test();
?>
Answer
What value is printed for "a" below?
<?php
$a = 1;
function Test()
{
echo "a = $a";
}
Test();
?>
Answer
Which of the following can be used to get information sent via get/post method in PHP?
AnswerWhich of the following magic constant of PHP returns class method name?
AnswerWhich of the following method of Exception class returns array of the backtrace?
AnswerWhich of the following provides the size of the uploaded file in PHP?
AnswerWhich of the following is used to access session variables in PHP?
AnswerWhich of the following variable is used to generate random numbers using PHP?
AnswerWhich of the following keyword causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating?
AnswerWhich of the following is correct about determine the "truth" of any value not already of the Boolean type?
AnswerWhich of the following type of variables are sequences of characters, like 'PHP supports string operations.'?
AnswerIs PHP whitespace sensitive?
AnswerWhich of the following method can be used to create a MySql database using PHP?
AnswerWhich of the following is correct about preg_match() function?
Answer© 2017 QuizBucket.org