WorksheetsWeb designing-04-10-2023
Total questions: 50
Worksheet time: 50mins
Which tag is used for php
<?php
?>
<style>
<php ?>
<php
/php>
What are the two types of array in php
Indexed, sequence
Associative, sequence
Indexed, associative
None
$a=array("Timmy","Jimmy");
Is an example of
Indexed array
Associative array
Sequence array
None
<?php
function add()
{
global $a=10;
echo $a;
}
add();
$a+=10;
?>
Output is
10
15
20
30
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.
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>
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
How do I print out the values of the variable "name" ?
$name;
include $name;
echo $name;
echo $name
Which of the following are comparison operators in PHP?
A. ==
B. !=
C. ===
D. <
A and B
C and D
A,B and C
A,B,C and D
What is the Output?
<?php
#echo "Hello World"
echo "#Hello World";
?>
Hello World #Hello World
Hello World
#Hello World
Error
What is the Output
<?php
$color=red;
echo "$color";
?>
red
$color
No answer
Error
When using the POST method, variables are displayed in the URL:
TRUE
FALSE
Who is known as father of PHP
Rasmus Lerdorf
Brendan Eich
Hakon Wium Lie
Which of the following is not true?
PHP can be used to develop web applications.
PHP makes a website dynamic
PHP can not be embedded into html.
_______ is a concatenation operator in php
+ (plus)
+=
. (dot)
PHP is executed on
The Server
The Browser
The Website
The Machine
What is a integer?
It's a Whole Number
It's a Decimal Number
It's a True or False Declaration
It's a String of Text
What type of language is PHP
Client Side
Server Side
Browser Side
Web Side
What is the correct way to end a PHP statement?
New Line
</php>
;
.
What is the correct way to open the file "time.txt" as readable?
fopen("time.txt","r");
fopen("time.txt","r+");
open("time.txt");
open("time.txt","read");
What
does PHP stand for?
Private
Home Page
Hypertext
Preprocessor
Pretext
Hypertext Processor
Preprocessor
Home Page
Which
one of the following databases has PHP supported almost since the beginning?
Oracle
Database
SQL
SQL+
MySQL
Which
one of the following statements is used to create a table?
CREATE
TABLE table_name (column_name column_type);
CREATE
table_name (column_type column_name);
CREATE
table_name (column_name column_type);
CREATE
TABLE table_name (column_type column_name);
Choose the correct HTML element for the largest heading:
<h6>
<head>
<heading>
<h1>
What is the correct HTML element for inserting a line break?
<br>
<break>
<lb>
<brk>
Which character is used to indicate an end tag?
/
*
&
^
Which HTML element defines the title of a document?
<meta>
<head>
<title>
<!DOCTYPE>
Which of the following tags is used to make a portion of text italic in HTML?
<italic>
<style="i">
<i>
<style="italic">
Which among the following is correct HTML code for making a checkbox?
<checkbox>
<input type="checkbox">
<check>
<input type="check">
HTML tags are surrounded by______brackets.
Angle
Curly
Round
Square
HTML stand for
Hyper text markup language
Hyper test makeup language
Hyper text makeup language
Hyper text marking language
Which is the correct HTML element for underlining text?
<u>
<under>
<uline>
<ul>
<a> is use to
Define the area
Define the link destination
Define an article tag
Define an HTML link
Google Chrome, Mozilla Firefox, Microsoft Edge are examples of?
Websites
Search engines
Text editors
Web browsers
HTML tag for the largest heading
<h1>
<h6>
<head>h1<head>
<heading>h6<heading>
HTML tag to make a text bold
<b>
<bold>
<textbold>
<boldtext>
Which of these tags are all <table> tags?
<table><tr><td>
<table><tr><tt>
<thead><body><tr>
<table><head><tfoot>
How can you make a list that lists the items with numbers? (1,2,... i,ii,.... I,II,...)
<ul>
<list>
<li>
<ol>
HTML tag for inserting an image
<img src="image.gif" alt="MyImage" />
<img href="image.gif" alt="MyImage" />
<image src="image.gif" alt="MyImage" />
<img alt="MyImage">image.gif</img>
CSS stands for
Cascading style sheet
Cyber style sheet
Cassandra style sheet
None of the above
What are the three types of style sheet
Internal, external, inline
Inline, internal, extreme
Insidious, internal, external
None of the above
<link type="stylsheet" href="exx.css"> belongs to
External
Internal
Inline
None of the above
When CSS is written inside HTML it will be saved as
css
Jsp
html
php
External css file will be saved as
.css
.html
.php
None of the above
Is CSS
Used in client side scripting
Used in server side scripting
Both server and client side scripting
None of the above
