12th Computer Applications Half yearly exam Program Question pdf 2022-2023
12th Computer Applications English Medium Half yearly Program Question
Here we given some example 12th Computer Applications half yearly program questions.
- What will be the output of the following PHP code?
<?php
function sum($x, $y) {
$z = $x + $y;
return $z;
}
echo “5 + 10 =” . sum(5, 10) . “<br>”;
echo “7 + 13 =” . sum(7, 13) . “<br>”;
echo “2 + 4 =”. sum(2, 4);
?>
- What will be the output of the following PHP code?
<?php
function insertMsg()
{
echo “Student Details Inserted Successfully!”;
}
insertMsg();
?>
- What will be the output of the following PHP code?
<?php
$student=array
(
array(“Iniyan”,100,96),
array(“Kavin”,60,59),
array(“Nilani”,1313,139)
);
echo $$student[0][0].”: Tamil Mark: “.$student [0][1].”. English mark: “.$student [0][2].”<br>”;
echo $$student[1][0].”: Tamil Mark: “.$student [1][1].”. English mark: “.$student [1][2].”<br>”;
echo $$student[2][0].”: Tamil Mark: “.$student [2][1].”. English mark: “.$student [2][2].”<br>”;
?>
- What will be the output of the following PHP code?
<?php
$x;
if ($x)
print “hi”;
else
print “how are u”;
?>
- What will be the output of the following PHP code?
<?php
$x = 0;
if ($x++)
print “hi”;
else
print “how are u”;
?>
- What will be the output of the following PHP code?
<?php
$x;
if ($x == 0)
print “hi”;
else
print “how are u”;
print “hello”;
?>
[pdf-embedder url=”https://csknowledgeopener.com/wp-content/uploads/2022/12/XII-CA-EM-PROGRAM-QUESTION-2022-2023.pdf” title=”XII – CA EM PROGRAM QUESTION 2022-2023″]