Question
<?php
$a = 'a' ;
print $a * 2;
?>
a.
192
b.
2
c.
error
d.
0
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. By truncation module operator % in PHP changes double in
View solution
Q. Mt_rand ( ) function generates a random integer by using
View solution
Q. PHP does automatic conversion of
View solution
Q. Which function is used for converting arguments to doubles?
View solution
Q. Integer remainder from division of left hand argument by absolute value of right hand argument, is behavior of which arithmetic operator
View solution
Q. Ceiling function is denoted by
View solution
Q. Random number functions offered by PHP is implemented by
View solution
Q. Increment operator have two flavors one is postincrement and
View solution
Q. *, /, % operators have higher precedence than
View solution
Q. Floor ( ), ceil ( ), round ( ), abs ( ), min ( ), max ( ) all functions are example of
View solution
Q. Which operator returns true if two arguments are not equal or not have same type?
View solution
Q. If rand ( ) function is called by no argument it returns a number between 0 and
View solution
Q. Intval ( ) function is used for
View solution
Q. Module operator % in PHP only accepts
View solution
Q. Operator that takes simple values as arguments and evaluate it either TRUE or FALSE
View solution
Q. +=, −=, *=, /=, %= all are example of
View solution
Q. Increment operator is denoted by
View solution
Q. === operator is true if its two arguments are exactly
View solution
Q. Comparison operators have higher precedence than
View solution
Q. Rand ( ) and mt_ rand ( ) functions are examples of
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!