Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Web designing-04-10-2023

Total questions: 50

Worksheet time: 50mins

Name
Class
Date
1.

Which tag is used for php

a)

<?php

?>

b)

<style>

c)

<php ?>

d)

<php

/php>

2.

What are the two types of array in php

a)

Indexed, sequence

b)

Associative, sequence

c)

Indexed, associative

d)

None

3.

$a=array("Timmy","Jimmy");

Is an example of

a)

Indexed array

b)

Associative array

c)

Sequence array

d)

None

4.

<?php

function add()

{

global $a=10;

echo $a;

}

add();

$a+=10;

?>

Output is

a)

10

b)

15

c)

20

d)

30

5.

Choose the correct option About HTML elements

a)

Elements in HTML describes the way of presenting the content in the browser.

b)

All elements must have atleast one attribute associated with it.

c)

Element names are case in-sensitive

d)

None of the above

6.

Which one of the following is a form element?

a)

text box.

b)

radio button.

c)

submit button.

d)

All of these.

7.

Choose the correct option.

a)

Default method in HTML is GET or POST

b)

Use of method attribute determines by which method the datas in the form will be submitted.

c)

Method can be POST or GET.

d)

Default method in HTML is GET.

8.

Which of the following tag is used for drop down list?

a)

<dropdown>

b)

<select>

c)

<option>

d)

<salect>

9.

What is the output of the PHP code.

<?php

$a=0;

$a = 5>2 ?$b=6 : $b=8;

print("$a $a");?>

a)

6

b)

66

c)

68

d)

88

10.

How do I print out the values of the variable "name" ?

a)

$name;

b)

include $name;

c)

echo $name;

d)

echo $name

11.

Which of the following are comparison operators in PHP?

A. ==

B. !=

C. ===

D. <

a)

A and B

b)

C and D

c)

A,B and C

d)

A,B,C and D

12.

What is the Output?

<?php

#echo "Hello World"

echo "#Hello World";

?>

a)

Hello World #Hello World

b)

Hello World

c)

#Hello World

d)

Error

13.

What is the Output


<?php

$color=red;

echo "$color";

?>

a)

red

b)

$color

c)

No answer

d)

Error

14.

When using the POST method, variables are displayed in the URL:

a)

TRUE

b)

FALSE

15.

Who is known as father of PHP

a)

Rasmus Lerdorf

b)

Brendan Eich

c)

Hakon Wium Lie

16.

Which of the following is not true?

a)

PHP can be used to develop web applications.

b)

PHP makes a website dynamic

c)

PHP can not be embedded into html.

17.

_______ is a concatenation operator in php

a)

+ (plus)

b)

+=

c)

. (dot)

18.

PHP is executed on

a)

The Server

b)

The Browser

c)

The Website

d)

The Machine

19.

What is a integer?

a)

It's a Whole Number

b)

It's a Decimal Number

c)

It's a True or False Declaration

d)

It's a String of Text

20.

What type of language is PHP

a)

Client Side

b)

Server Side

c)

Browser Side

d)

Web Side

21.

What is the correct way to end a PHP statement?

a)

New Line

b)

</php>

c)

;

d)

.

22.

What is the correct way to open the file "time.txt" as readable?

a)

fopen("time.txt","r");

b)

fopen("time.txt","r+");

c)

open("time.txt");

d)

open("time.txt","read");

23.

What

does PHP stand for?

a)

Private

Home Page

b)

Hypertext

Preprocessor

c)

Pretext

Hypertext Processor

d)

Preprocessor

Home Page

24.

Which

one of the following databases has PHP supported almost since the beginning?

a)

Oracle

Database

b)

SQL

c)

SQL+

d)

MySQL

25.

Which

one of the following statements is used to create a table?

a)

CREATE

TABLE table_name (column_name column_type);

b)

CREATE

table_name (column_type column_name);

c)

CREATE

table_name (column_name column_type);

d)

CREATE

TABLE table_name (column_type column_name);

26.

Choose the correct HTML element for the largest heading:

a)

<h6>

b)

<head>

c)

<heading>

d)

<h1>

27.

What is the correct HTML element for inserting a line break?

a)

<br>

b)

<break>

c)

<lb>

d)

<brk>

28.

Which character is used to indicate an end tag?

a)

/

b)

*

c)

&

d)

^

29.

Which HTML element defines the title of a document?

a)

<meta>

b)

<head>

c)

<title>

d)

<!DOCTYPE>

30.

Which of the following tags is used to make a portion of text italic in HTML?

a)

<italic>

b)

<style="i">

c)

<i>

d)

<style="italic">

31.

Which among the following is correct HTML code for making a checkbox?

a)

<checkbox>

b)

<input type="checkbox">

c)

<check>

d)

<input type="check">

32.

HTML tags are surrounded by______brackets.

a)

Angle

b)

Curly

c)

Round

d)

Square

33.

HTML stand for

a)

Hyper text markup language

b)

Hyper test makeup language

c)

Hyper text makeup language

d)

Hyper text marking language

34.

Which is the correct HTML element for underlining text?

a)

<u>

b)

<under>

c)

<uline>

d)

<ul>

35.

<a> is use to

a)

Define the area

b)

Define the link destination

c)

Define an article tag

d)

Define an HTML link

36.

Google Chrome, Mozilla Firefox, Microsoft Edge are examples of?

a)

Websites

b)

Search engines

c)

Text editors

d)

Web browsers

37.

HTML tag for the largest heading

a)

<h1>

b)

<h6>

c)

<head>h1<head>

d)

<heading>h6<heading>

38.

HTML tag to make a text bold

a)

<b>

b)

<bold>

c)

<textbold>

d)

<boldtext>

39.

Which of these tags are all <table> tags?

a)

<table><tr><td>

b)

<table><tr><tt>

c)

<thead><body><tr>

d)

<table><head><tfoot>

40.

How can you make a list that lists the items with numbers? (1,2,... i,ii,.... I,II,...)

a)

<ul>

b)

<list>

c)

<li>

d)

<ol>

41.

HTML tag for inserting an image

a)

<img src="image.gif" alt="MyImage" />

b)

<img href="image.gif" alt="MyImage" />

c)

<image src="image.gif" alt="MyImage" />

d)

<img alt="MyImage">image.gif</img>

42.
Name an element which doesn't have a closing tag.
a)
<img>
b)
<head>
c)
<body>
d)
<p>
43.
Which of the following is the largest heading? 
a)
H2
b)
H3
c)
H4
d)
H6
44.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
45.

CSS stands for

a)

Cascading style sheet

b)

Cyber style sheet

c)

Cassandra style sheet

d)

None of the above

46.

What are the three types of style sheet

a)

Internal, external, inline

b)

Inline, internal, extreme

c)

Insidious, internal, external

d)

None of the above

47.

<link type="stylsheet" href="exx.css"> belongs to

a)

External

b)

Internal

c)

Inline

d)

None of the above

48.

When CSS is written inside HTML it will be saved as

a)

css

b)

Jsp

c)

html

d)

php

49.

External css file will be saved as

a)

.css

b)

.html

c)

.php

d)

None of the above

50.

Is CSS

a)

Used in client side scripting

b)

Used in server side scripting

c)

Both server and client side scripting

d)

None of the above