wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

FE METER REVIEW 5

Total questions: 15

Worksheet time: 1hrs 15mins

Name
Class
Date
1.

Which CSS3 code fragment styles an H2 element only if it is a direct child of a DIV element?

a)

div{

background-color:#900;

}

h2{

background-color:#900;

}

b)

div>h2{

background-color:#900;

}

c)

h2>div{

background-color:#900;

}

d)

div,h2{

background-color:#900;

}

2.

Which CSS property defines which sides of an element where other floating elements are not allowed?

a)

float

b)

position

c)

display

d)

clear

3.

You write the following code to create a page. (Line numbers are included for reference only.)

You need to apply the SVG blur filter to the text tag on the page. Which HTML/CSS code should you insert at line 02?

a)

<style>

Text{font:48px arial bold; fill:blur;}

</style>

b)

<style>

Text{font:48px arial bold; filter:url(#blur);}

</style>

c)

<style>

Text{font:48px arial bold; filter:#blur;}

</style>

d)

<style>

Text{font:48px arial bold; filter:url(blur);}

</style>

4.

Which layout can you create by using a single CSS3 region?

a)

a table layout

b)

a snaked-column layout

c)

a multiple column liquid layout

d)

a multiple column fixed layout

5.

In CSS, the flow-into property deposits:

a)

the flow into the content.

b)

the regions into a flow.

c)

the flow into the regions.

d)

content into the flow.

6.

Which CSS code fragment centers an image horizontally?

a)

img.center{text-align:center;}

b)

img.center{display:block; text-align:center;}

c)

img.center{display:block;}

d)

img.center{display:block;margin-left:auto; margin-right:auto;

7.

Which positioning scheme places an object in normal document flow?

a)

absolute

b)

relative

c)

fixed

d)

float

8.

The variable named "ctx" is the context of an HTML5 canvas object. What does the following code fragment draw? ctx.arc(x, y, r, 0, Math.PI, true);

a)

a circle at the given point

b)

a square at the given point

c)

a semi-circle at the given point

d)

a line from one point to another

9.

Which three are valid JavaScript variables? (Choose three.)

a)

xyz1

b)

.Int

c)

int1

d)

_int

e)

1xyz

10.

Your code includes the following fragment:

<input type="text" name="text1" id="myText" />

You need to add code that will retrieve the contents of the INPUT element. Which JavaScript code fragment will accomplish this?

a)

vartxtContents =document.getElementById('text1').value;

b)

vartxtContents = document.getEIementyById('myText').value;

c)

vartxtContents =document.getElementById('text1');

d)

vartxtContents = document.getElementById('myText');

11.

Which two events are supported on touch devices? (Choose two.)

a)

click

b)

touchstart

c)

selection

d)

drag

12.

The data in a specific HTML5 local storage database can be accessed from:

a)

Different browsers on the same device.

b)

Different browsers on different devices.

c)

The same browser on different devices.

d)

The same browser on the same device.

13.

You are creating a page by using HTML5. You add script tags to the page. You need to use JavaScript to access an element by id and add a class to the element. Which property or attribute should you use?

a)

the tagName property

b)

the className property

c)

the style property

d)

the class attribute

14.

Which code fragment sets up a timer that calls a function named "adjust" every second?

a)

setTimeout(adjust, 1000);

b)

setInterval(adjust, 1000);

c)

setInterval(adjust, 1);

d)

setTimeout(adjust, 1);

15.

Which two HTML properties can JavaScript access to change the text value of an HTML element? (Choose two.)

a)

innerHTML

b)

nodeType

c)

title

d)

nodeValue