wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Web Dev

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

In this code, what is the term for the h1?

h1 {

color: red;

  font-size: 5em;

}

a)

selector

 

b)

combinator

c)

 declarator

d)

 markup

2.

What will this loop print?

let max = 3;

for (i = 0; i > max; i++) {

    document.write("skrt ");

}

a)

skrt skrt skrt

b)

 skrt skrt

c)

 skrt skrt skrt skrt

d)

None of the above

3.

Which choice is a correct use of the parseInt() function in Javascript that parses a string and return an integer?

a)

parseInt("six");

b)

 parse_int('6');

c)

 parseInt("6");

d)

 parseint("6");

4.

In the context of this code, how would you describe user?

const user = {

    given_name: "Joe",

    family_name: "Bloggs",

    age: 40,

};

a)

function

b)

 array

c)

 variable

d)

 object

5.

Which array method should you apply to run a function for every item within an array, returning an array of all items for which the function is true?

a)

every()

b)

map()

c)

 forEach()

d)

 filter()

6.

What are the best examples of void elements?

a)

<link><meta><title>

b)

<br><base><source>

c)

<area><embed><strong>

7.

What is the best way to apply bold styling to text?

a)

<strong>

b)

 Using CSS

c)

<bold>

d)

<b>

8.

What is the default method for form submission?

a)

  GET

b)

 POST

c)

PUT

d)

SUBMIT

9.

_________ keyword is used to declare variables in javascript.

a)

Dim

b)

String

c)

var

d)

None of the above

10.

What is DOM in HTML?

a)

Language dependent application programming

b)

Hierarchy of objects in ASP.NET

c)

Application programming interface

d)

Convention for representing and interacting with objects in html documents

11.

What does MIME stand for?

a)

Multipurpose Internet Mail Extra

b)

Multi Internet Mail End

c)

Multipurpose Internet Mail Email

d)

Multipurpose Internet Mail Extensions

12.

Which attribute is not essential under <iframe>?

a)

frameborder

b)

width

c)

height

d)

src

13.

How many glyphs does bootstrap include?

a)

369

b)

360

c)

260

d)

100

14.

Which of the following makes the button appear pressed?

a)

.btn-link

b)

.disabled

c)

.active

d)

.btn-block

15.

Which of the following specifies header text of popover?

a)

selector

b)

title

c)

placement

d)

trigger