Font size
WorksheetsPHP
Total questions: 19
Worksheet time: 13mins
Choose the appropriate tag to get the content in browser as follows:
<html>
<body>
______
Johny Johny!
Yes Papa
______
</body>
</html>
Johny Johny!
Yes Papa
(a)
HTML stands for
Hyper Text Machine Language
Hyper Text Markup Language
Hyper Technical Machine Language
None of these
Choose the correct option About HTML elements
Elements in HTML describes the way of presenting the content in the browser.
All elements must have atleast one attribute associated with it.
Element names are case in-sensitive
None of the above
Which one of the following is a form element?
text box.
radio button.
submit button.
All of these.
Which one of the following is incorrect?
<label> tag in HTML is used for creating a tag for form elements.
id attribute is used with <label> to reduce the clickable area of form elements
<label> can be used to increase the clickable area of buttons
none of the above
Choose the correct option.
Default method in HTML is GET or POST
Use of method attribute determines by which method the datas in the form will be submitted.
Method can be POST or GET.
Default method in HTML is GET.
Which of the following tag is used for drop down list?
<dropdown>
<select>
<option>
<salect>
Fill in the blanks with a suitable option in order to number items of an ordered list with small roman numbers.
<!DOCTYPE html>
<html>
<body>
<ol (a) >
<li>
Physics
</li>
<li>
Chemistry
</li>
<li>
Mathematics
</li>
</ol>
</body>
</html>
What is the default item marker in ordered lists of HTML?
Circle
Marker
disc
None of the above
Which one of the following can be used to define the spacing between the cells of a table?
border-spacing
spacing
cellspacing
table-spacing
How to insert a background image in HTML?
<body background = "img.png">
<img background = "img.png">
<body style="background-image: url();">
None of the above.
Which HTML tag is used to display the power in expression, i.e., (x2 - y2)?
<sub>
<sup>
<p>
None of the above
What is the output of the PHP code.
<?php
$a=0;
$a = 5>2 ?$b=6 : $b=8;
print("$a $a");?>
6
66
68
88
What is the output of the PHP code.
<?php
if(4>5)
{print("Hurray..");}
print("yes");
?>
Yes
hurray..yes
Hurray..Yes
none of the above
What is the output of the PHP code.
<?php
if(-5) {
print("Germany\n");
}
if(' ')
{ print("Texas\n"); }
printf("ZING");
?>
ZING
Germany ZING
Germany Texas ZING
error
What will be the output of the following PHP code?
< ?php
$total = "25 students";
$more = "students 10";
$total = $total + $more;
echo "$total" ;?>
Error
35 students
35
25
