12th Computer Applications Public Exam Important Program Question 2023
12th Computer Applications Public Exam Important Program Question
- Hi students we post 12th Computer Applications Public Exam Important Program Question 2023.
- This post is helpful for you to attend the programming questions and to get centum in board exams.
In PHP programming questions are covered under the topics,
- Function
- Conditional Statements
- Looping Structure
- Database
- MySQL
Model Programs:
- 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”;
?>
- What will be the output of the following PHP code?
<?php
$a = “”;
if ($a)
print “all”;
if ______
else
print “some”;
?>
- What will be the output of the following PHP code ?
<?php
$a = ” “;
if ($a)
print “all”;
else
print “some”;
?>
- What will be the output of the following PHP code ?
<?php
$x = 10;
$y = 20;
if ($x > $y + $y != 3)
print “hi” ;
else
print “how are u”;
?>
- What will be the output of the following PHP code ?
<?php
$x = 10;
$y = 20;
if ($x > $y && 1||1)
print “hi”;
else
print “how are u”;
?>
The pdf is given below. Kindly download and make it useful.
[pdf-embedder url=”https://csknowledgeopener.com/wp-content/uploads/2023/01/XII-CA-EM-PROGRAM-QUESTION-2022-2023.pdf” title=”XII – CA EM PROGRAM QUESTION 2022-2023″]