Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

WAD

Total questions: 53

Worksheet time: 2hrs 46mins

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.

In php the keyword to be used before function name is

a)

Function

b)

Static

c)

function

d)

FUNCTION

4.

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

5.

Which one of the following is a form element?

a)

text box.

b)

radio button.

c)

submit button.

d)

All of these.

6.

Which one of the following is incorrect?

a)

<label> tag in HTML is used for creating a tag for form elements.

b)

id attribute is used with <label> to reduce the clickable area of form elements

c)

<label> can be used to increase the clickable area of buttons

d)

none of the above

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.
What is at the end of a line of code?
a)
#
b)
;
c)
)
d)
>
9.
To display writing on the screen you must include this direction;
a)
Document Write
b)
documentWrite
c)
document.write( )
d)
document.write
10.
A variable;
a)
Expresses a true false statement
b)
stores a string, number, or boolean, and gives it a specific, case-sensitive name
c)
takes in an input, does something with it, and then returns an output.
d)
Runs a boolean (true/false) statement based on data entered
11.

Which tag indicates the presence of javascript

a)

<css>

b)

<script type="text/javascript">

c)

<?php>

d)

<style>

12.

When the javascript code is written inside html it will be saved as

a)

.html

b)

.css

c)

.js

d)

none of the above

13.

Javascript is

a)

client side scripting language

b)

server side scripting language

c)

both client and server side scripting language

d)

none of the above

14.

Javascript is _________ language.

a)

Programming

b)

Scripting

c)

Application

d)

applet

15.

JavaScript is ______ Side Scripting Language.

a)

JSP

b)

Servlet

c)

Server

d)

Browser

16.

JavaScript Code can be called by using _________.

a)

RMI

b)

Function / Method

c)

Triggering Event

d)

Preprocessor

17.

What does DHTML stands for?

a)

Document HTML

b)

Data-Binding HTML

c)

Dynamic HTML

d)

Digital HTML

18.

Which kind of scripting language is DHTML?

a)

Client side

b)

Server side

c)

Both 1 & 2

d)

None of the above

19.

What kind of pages get created from DHTML?

a)

Static

b)

Dynamic

c)

Hyper

d)

Global

20.

The APPLET tag is used to start an applet from both an HTML document and from an applet viewer.

a)

a. True

b)

b. False

21.

What invokes immediately after the start() method and also any time the applet needs to repaint itself in the browser?

a)

a. stop()

b)

b. init()

c)

c. paint()

d)

d. destroy()

22.

What is a host?

a)

A person hosting a party

b)

A computer which stores web resources

c)

A computer which services a person

d)

A computer which stores data

23.

How can you create an e-mail link?

a)

<mail href="a@b">

b)

<mail>a@b</mail>

c)

<a href="a@b">

d)

<a href="mailto:a@b.com">

24.

The tag that signals to a computer that the file it is reading is an HTML document is _____________ .

a)

<web>

b)

<!DOCTYPE html>

c)

<head>

d)

<html>

25.

1. All variables in PHP start with which symbol?

a)

$

b)

!

c)

&

26.

How do you get information from a form that is submitted using the "get" method?

a)

Request.QueryString;

b)

$_GET[];

c)

Request.Form;

27.

Which one of these variables has an illegal name?

a)

$my-Var

b)

$myVar

c)

$my_Var

28.

Which method is more secure GET and POST method ?

a)

GET

b)

POST

29.

PHP is a _______________________ language commonly used for web applications.

a)

Server Side Scripting Language

b)

Client Side Scripting Language

c)

Programming Language

d)

UI Development Programming

30.

PHP variables are_____ ?

a)

Multitype variables

b)

Single type variable

c)

Double type variables

d)

Triple Type Variable

31.

The simplest data-storing structure in any programming language

a)

Lists

b)

Array

c)

Queue

d)

List

32.

A programming language used for webpage functionality such as interactivity, data processing, animation, and development of purpose built apps such as mobile and desktop apps and more.

a)

HTML5

b)

CSS

c)

JS

d)

C#

33.

Which of the following is NOT a valid starting character for JS variable names?

a)

Uppercase Letter

b)

Lowercase Letter

c)

Dollar Sign

d)

Underscore

34.

Which of the following is NOT a valid component of a function declaration?

a)

Function keyword

b)

Function name

c)

Pair of Square Braces

d)

Pair of Curly Braces

35.

Which of the following is a symbol that must NOT be present in any JS Variable?

a)

A

b)

z

c)

_

d)

%

36.

Which of the Tag Pair is used to enable JS script writing in HTML?

a)

<br>

b)

<script>

c)

<JS>

d)

<code>

37.

Which funtion is used when a JS application must ensure that the user gets the information that is displayed?

a)

Alert box

b)

Prompt Box

c)

Combo Box

d)

Confirm Box

38.

In JS used to write comments

a)

++

b)

=

c)

//

d)

--

39.

What are the two types of array in php

a)

Indexed, sequence

b)

Associative, sequence

c)

Indexed, associative

d)

None

40.

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

Is an example of

a)

Indexed array

b)

Associative array

c)

Sequence array

d)

None

41.

$a=array(10=>"Jimmy",20=>"mummy");

Is an example of

a)

Sequence array

b)

Indexed array

c)

Associative array

d)

None

42.

<?php

function add()

{

global $a=10;

echo $a;

}

add();

$a+=10;

?>

Output is

a)

10

b)

15

c)

20

d)

30

43.

$a="deepan";

$b="Deepan";

if(strcmp($a,$b))

{

echo "equal";

}

else{

echo " not equal";}

Output is

a)

Equal

b)

Not equal

c)

Error

d)

None

44.

$a="IT is favorite department";

$b=sub_string($a,"bes",7,14);

echo $b;

Output is

a)

IT is best department

b)

IT is bes department

c)

Error

d)

IT is favorite department

45.

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)  

46.

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

47.

Which one of the following is a form element?

a)

text box.

b)

radio button.

c)

submit button.

d)

All of these.

48.

<!DOCTYPE html>

<html>

<body>


<h1>My first PHP page</h1>


<?php

echo "Hello World!";

?>


</body>

</html>

a)

My first PHP page

Hello World!

b)

Hello World!

c)

My first PHP page

d)

echo "Hello World!";

49.

<!DOCTYPE html>

<html>

<body>


<?php

ECHO "Hello World!<br>";

echo "Hello World!<br>";

EcHo "Hello World!<br>";

?>


</body>

</html>

The Result..?

a)

Hello World!

Hello World!

Hello World!

b)

Hello World!

c)

Hello World!

Hello World!

d)

Hello World!

Hello World!

Hello World!

Hello World!

50.

PHP scripts are executed on the server

a)

True

b)

False

51.

<!DOCTYPE html>

<html>

<body>


<?php

$color = "red";

echo "My car is " . $color . "<br>";

echo "My house is " . $COLOR . "<br>";

echo "My boat is " . $coLOR . "<br>";

?>


</body>

</html>

the result..?

a)

My car is red

My house is

My boat is

b)

My car is red

My house is

c)

My car is red

52.

<!DOCTYPE html>

<html>

<body>

<?php

// You can also use comments to leave out parts of a code line

$x = 5 /* + 15 */ + 5;

echo $x;

?>

</body>

</html>

the result..?

a)

10

b)

5

c)

15

53.

<!DOCTYPE html>

<html>

<body>


<?php

$txt = "Hello world!";

$x = 5;

$y = 10.5;


echo $txt;

echo "<br>";

echo $x;

echo "<br>";

echo $y;

?>


</body>

</html>

the result..?

a)

Hello world!

5

10.5

b)

Hello world!

c)

5

d)

10.5