wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

hex Quiz

Total questions: 60

Worksheet time: 3600secs

Name
Class
Date
1.

Which symbol represents notes or comments?

a)

<head>

b)

<em>

c)

<!--...-->

2.

Change the border size of the body or image

a)

border-style

b)

border-width

c)

border-color

d)

width

3.

The blue is called an _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

4.
What is the difference between an HTML Tag and an HTML element?
a)
An HTML Tag is case sensitive and an HTML element is not case sensitive.
b)
An HTML Tag is always paired and an HTML element is an "empty" tag.
c)
An HTML Tag defines content and an HTML Element includes the opening and closing tags and everything in between.
d)
An HTML Tag defines content and an HTML Element gives additional meaning and content.
5.

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

6.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
7.
John wants the name of his book to appear in search results for Google. Where should this information be
placed within his webpage?
a)
head
b)
meta
c)
body
d)
nav
8.
What is the proper code to insert an image named "frog.jpg"?
a)
<img src="frog" width="104" height="142">
b)
<img="frog.jpg" width="104" height="142">
c)
<img src="frog.jpg" width="104" height="142">
d)
<img ="frog" width="104" height"142">
9.

Following CSS code is written -

<style>

a:link {

color:#FF0000;

}

a:visited {

color:#00FF00;

}

a:hover {

color:#FF00FF;

}

a:active {

color:#0000FF;

}

</style>

User have created 5 pages and included same css in each page. Each page having list of all 5 pages with links. User is currently viewing 5.html then color of 5.html will be _______.

a)

RED

b)

Green

c)

BLUE

d)

I don't know

10.

How do you change the left margin of an element?

a)

margin-left:

b)

margin_left

c)

left-margin:

11.

How do you insert a comment in a CSS file?

a)

/* this is a comment */

b)

// this is a comment

c)

// this is a comment //

d)

can not comment in css

12.

What is the usage of alt value in <img> tag?

a)

Alternative text for an Image

b)

Alternative source of an Image

c)

Caption of an Image

d)

All of above

13.

When you use class selector

What should present infront of classname

a)

#

b)

&

c)

@

d)

.

14.

What defines the beginning and ending of the visible part of a webpage?

a)

<head> main part of the document </body>

b)

<body> main part of the document </html>

c)

d) </body> main part of the document <html>

d)

<body> main part of the document </body>

15.

The correct syntax for a rule set:

a)

h1 {

property:value;


}

b)

h1<

property:value

>

c)

h1{

property;value;

}

d)

h1{


value:property;

>

16.
What will happen to the text in blue?   <p>He named his car <i>The lightning</i>, because it was very fast.</p>
a)
the content will be displayed in italic
b)
the content will display an image
c)
the content defines text inserted into a document
17.
Which is NOT a web browser?
a)
Chrome
b)
Internet explorer
c)
FireFox
d)
Yahoo
18.

What is the output for this code?

a)

The value of z is z

b)

The value of z is 11

c)

The value of z is: 11

d)

The value of z is: x + y

19.

What are variables? Choose two from the answers.

a)

container for storing data

b)

storing data values

c)

A cupboard

d)

hold a water in it

20.

What is the value of x?

a)

3

b)

83

c)

80

d)

803

21.

If I want to change the mathematical expression from addition into division, what symbol should I use?

a)

/

b)

*

c)

-

d)

x

22.

If I want to change the mathematical expression from addition into multiplication, what symbol should I use?

a)

/

b)

*

c)

-

d)

x

23.

JavaScript : value of z should be the increment of y. What operation should z use?

a)

z = x ++ y

b)

z += y

c)

z = ++ y

d)

z = z + y

24.

JavaScript : What is the alert display for z?

a)

Hello5

b)

10

c)

55

d)

Hello15

25.

What is first index value of an array?

a)

2

b)

-1

c)

0

d)

1

26.

What is the value of:

”41” + 1

a)

42

b)

“42”

c)

411

d)

“411”

27.

Which of these is a method?

a)

getElementById( )

b)

style

c)

document

d)

color

28.

How do you create a function in JavaScript?

a)

function:myFunction()

b)

function = myFunction()

c)

function myFunction()

29.

Which of the following is primitive?

a)

string

b)

Array

c)

Object

d)

function

30.

Which event occurs when the user clicks on an HTML element?

a)

onmouseover

b)

onmouseclick

c)

onchange

d)

onclick

31.

Change the border size of the body or image

a)

border-style

b)

border-width

c)

border-color

d)

width

32.

What css rule creates a flexbox container?

a)

flex: box

b)

display: flexbox

c)

flex: container

d)

display: flex

33.

What are the two options for flex-direction?

a)

row

b)

vertical

c)

column

d)

horizontal

34.

Which css value forces flex items onto a new line once the width of the container has been filled?

a)

newline

b)

wrap

c)

continue

d)

float

35.

Which flexbox properties aligns items on the same axis as the flex-direction?

a)

justify-content

b)

align-items

c)

align-content

d)

justify-items

36.

The CSS overflow property controls what happens to content that is too big to fit into an area.

a)

True

b)

False

37.

Which of the following values does not belong to the overflow property?

a)

visible

b)

hidden

c)

scroll

d)

invisible

38.
What does CSS stand for? 
a)
Creative Style Sheets
b)
Cascading Style Sheets
c)
Colorful Style Spread
d)
Computer Style Spread
39.
Where in the HTML document is the correct location to insert code to link to your external CSS? 
a)
In the <head> section
b)
In the <body> section
c)
At the very end of the document
d)
At the very beginning of the document
40.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
41.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
42.
Which is the value in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
43.
Which is the selector for a link?
a)
a { }
b)
link { }
c)
href { }
d)
a href { }
44.
What is the difference between HTML and CSS?
a)
CSS is one type of HTML
b)
HTML gives a webpage structure. CSS provides styling.
c)
CSS structures a webpage. HTML strictly provides styling.
d)
There is no difference.
45.

In CSS, colors can also be specified using RGB values, HEX values, HSL values, RGBA values, and HSLA values.

a)

True

b)

False

46.

Which one of these variables has an ILLEGAL name?

a)

$my_Var

b)

$my-Var  

47.

All variables in PHP start with which symbol?

a)

$

b)

&

48.

What is the CORRECT way to add 1 to the $count variable?

a)

$count =+1

b)

$count++;  

49.

PHP is executed on

a)

The Server

b)

The Browser

c)

The Website

d)

The Machine

50.

We create re-usable code blocks by placing them inside?

a)

Variables

b)

Parameters

c)

Code Blocks

d)

Functions

51.

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

52.

What if we want a block of code to execute several times?

a)

Use a Variable

b)

Use a Function

c)

Use a Loop

d)

Use a Leap

53.

$colours = array("black, blue, Red, Green") - How do I access "Red" ?

a)

$colours[0];

b)

$colours[2];

c)

$colours[1]

d)

$colours[3];

54.

What type of variable is this: $isMale = false;

a)

Integer

b)

Boolean

c)

String

d)

char

55.

In an IF statement we can have 2 conditions tested. Which keyword allows this?

a)

Else

b)

if Else

c)

Else if

d)

OR

56.

PHP stands for

a)

Hypertext processor

b)

Homepage processor

c)

Hypertext preprocessor

57.

$a = "Ram"; $n = "Kumar"; $fullName = $f + $n; What is the value of $fulName

a)

RamKumar

b)

Ram Kumar

c)

Ram

d)

None

58.

Function calls can have____________ inside them.

a)

Parameters

b)

Arguments

c)

Variables

d)

Types

59.

Get the length of the string "Hello World!".

a)

Leng

b)

substring

c)

strlen

d)

len

60.

Use the correct function to output the number of items in an array.


$fruits = array("Apple", "Banana", "Orange");

a)

echo $fruits[0]

b)

echo $fruits["Apple"]

c)

echo count($fruits)

d)

echo $fruits[0][1]