Question
<?php
function fun($x,$y)
{
$x = 4;
$y = 3;
$z = $x + $y / $y + $x;
echo "$z";
}
fun(3, 4);
?>
a.
7
b.
9
c.
0
d.
Error
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. Which one of the following is displayed in the third section of the class diagram?
View solution
Q. # is the visibility code for?
View solution
Q. A bidirectional relationship in class diagrams is described by________
View solution
Q. Which one of the following statements is true about sequence diagrams?
View solution
Q. If the diamond is filled it depicts which relationship?
View solution
Q. Which relationship is illustrated by a line that begins with an unfilled diamond?
View solution
Q. + is the visibility code for?
View solution
Q. Which one of the following is displayed below the class name in the class diagrams?
View solution
Q. ___ are used in class diagrams to describe the way in which specific elements should be used.
View solution
Q. In a class diagram the class is divided into three sections, what is displayed in the first section?
View solution
Q. UML stands for?
View solution
Q. Which one among the following means tight coupling ?
View solution
Q. Which one of the following is known as the key to object-oriented programming ?
View solution
Q. Polymorphism is also known as______
View solution
Q. ________ code makes change easier because the impact of altering an implementation will be localized to the component being altered.
View solution
Q. ______ occurs when discrete parts of a system’s code are tightly bound up with one another so that a change in one part necessitates changes in the others.
View solution
Q. The extent to which proximate procedures are related to one another is known as…
View solution
Q. Placing a static method for generating ___ objects in the ___ class is convenient.
View solution
Q. Object-oriented code tries to minimize dependencies by moving responsibility for handling tasks away from ___ and toward the objects in the system.
View solution
Q. Which class accepts a class name or an object reference and returns an array of interface name?
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!