Font size
Worksheetsphp interview
Total questions: 23
Worksheet time: 12mins
Which tag is used for php
<?php
?>
<style>
<php ?>
<php
/php>
$a=array(10=>"Jimmy",20=>"mummy");
Is an example of
Sequence array
Indexed array
Associative array
None
In php the keyword to be used before function name is
Function
Static
function
FUNCTION
<?php
function add()
{
global $a=10;
echo $a;
}
add();
$a+=10;
?>
Output is
10
15
20
30
$a="deepan";
$b="Deepan";
if(strcmp($a,$b))
{
echo "equal";
}
else{
echo " not equal";}
Output is
Equal
Not equal
Error
None
$a="IT is favorite department";
$b=sub_string($a,"bes",7,14);
echo $b;
Output is
IT is best department
IT is bes department
Error
IT is favorite department
1. ____________ is a concept that stores more than one value of same data type
Class
Array
structure
function
2. Each element of line array is assigned on index values which commence from _________ .
-1
1
0
n-1
3. A __________ dimensional array is an array containing one or more arrays.
associate
indexed
single
multi
4. They are __________ types of array concepts in PHP.
3
4
2
many
PHP arrays are using ________ looping concepts
do..while
while
switch
Foreach
Name the function is used to create array in PHP?
(a)
Array index values always begins with (a)
____ operator separate key and value pair.
.
[ ]
=>
->
HTML stands for...
Hyper Time Multiple Language
Hyper Text Mark-up Language
Hippo T-Rex Mascot Lemur
Hipper Text Make Language
Which is the proper way to write an h1 tag
<h1>Hello</h1>
<h1>"Hello
{h1}Hello{/h1}
<h1>Hello<h1>
What should a HTML web page start with?
<b>
<li>
<html>
<start>
CSS stands for...
(a)
what is syntax of while loop
do { code to be executed;} while (condition is true);
while(condition) { statement(s); }
for (init counter; test counter; increment counter) { code to be executed for each iteration;}
foreach ($array as $value) { code to be executed;}
Use the correct function to output the number of items in an array.
$fruits = array("Apple", "Banana", "Orange");
echo
(a)
