Question
<?php
$x = 1;
if ($x = $x&0)
print $x ;
else
print "how are u";
?>
a.
0
b.
1
c.
error
d.
how are u
Posted under PHP
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What will be the output of the following PHP code ?
Similar Questions
Discover Related MCQs
Q. Basic syntax for calling a function is
View solution
Q. Which loop evaluates condition expression as Boolean, if it is true, it executes statements and when it is false it will terminate?
View solution
Q. Loops that iterate for fixed number of times is called
View solution
Q. Which of following operations are supported by PHP?
View solution
Q. Two main structures of branching are
View solution
Q. Two broad types of control structures is branching and
View solution
Q. Global $count; this statement indicates what?
View solution
Q. For using multiple possible branches based on a single value which branching style do you prefer?
View solution
Q. PHP loos up function by its
View solution
Q. By default scope of variable which is defined inside a function is?
View solution
Q. Try ( ) and catch ( ) functions are used for
View solution
Q. In PHP6 function is defined once in a script and then it is available everywhere in script which means that?
View solution
Q. Most complicated looping structure is
View solution
Q. A way of wrapping up a chunk of code and giving that chunk a name so that we can use it later in just one line of code is called as
View solution
Q. Unbounded loops repeats until some condition becomes
View solution
Q. TestExpression ? yesExperssion : noExpression is an example of
View solution
Q. Which logical operator has higher precedence from following?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond PHP? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!