Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

SEACSO cat 5 mock test

Total questions: 15

Worksheet time: 5mins

Name
Class
Date
1.
1. What is the purpose of indentation and whitespaces in an HTML document?
a)
To make codes in an HTML file more readable
b)
To make sure the browser correctly interprets nested elements in an HTML fill
c)
To comment out code you don’t need
d)
To change the display of elements in the browser.
2.
2. Which of the following elements will directly affect the vertical spacing in an HTML layout?
a)

<b>

b)

<break>

c)

<br>

d)

<break />

3.
3. The following HTML code should only exist within which of the following tags?
a)

<!DOCTYPE html>

b)

<body>

c)

<head>

d)

<h1>

4.
4. He founded the first version of HTML (Hypertext Markup Language) in which most websites are written in 1993.
a)

Marc Andreessen

b)

Tim Berners-Lee

c)

Rasmus Lerdorf

d)

Brendan Eich

5.
5. Which of the following is the correct syntax for the highest or the most important heading in an HTML document?
a)

<h6>Hello World!</h6>

b)

<h1>Hello World!</h1>

c)

<i6>Hello World!</i

6>

d)

<i1>Hello World!</i1

>

6.

6. What is the main difference between inline styles and the <styles> tag ?

a)

Inline styles are directly modify individual HTML elements using a style attribute, whereas the <styles> > tag allows you to write CSS in a dedicated section of the HTML file.

b)

Inline styles allow you to write CSS in separate file, whereas the <styles> tag embeds CSS directly within HTML opening tags.

c)

There is no difference between inline styles and the <styles> tag

d)

The <styles> tag allows you to write CSS in a separate file, whereas inline styles embed CSS directly within HTML opening tags.

7.

7. Complete the code below to set the color of link to blue.

a)

body

b)

html

c)

a

d)

href

8.
8. The font-weight property will adjust which of the following?
a)

The spacing between letters.

b)

How thin or thick text appears.

c)

How transparent text appears.

d)

How small or large text appears.

9.
9. Separating HTML and CSS into their own files helps accomplish which of the following?
a)

Enhances webpage load time

b)

Separating HTML structure from CSS style makes the code in both languages easier to read and maintain.

c)

Provides a better-looking CSS style

d)

Segregating HTML and CSS provides more specific CSS selectors.

10.

10.The following HTML code attempts to use inline styling to change the color of the paragraph text, but fails to do so. Why?

a)

Yellow

b)

Orange

c)

Black

d)

Blue

11.
11.Which of the following is an example of single line comment in JavaScript?
a)

console.log(‘It this a comment?’);

b)

console.log()

c)

//Is this a comment?

d)

‘Is this a comment’

12.
12.What will the following code print to the console? let num = 10; num *= 5; console.log(num);
a)

‘num’

b)

5

c)

10

d)

50

13.
13.What is the correct way to call the random method on the Math global project?
a)

Math.random()

b)

math.random()

c)

random.Math()

d)

Math(random)

14.

14.What type of variable is ?

a)

Int

b)

Boolean

c)

Float

d)

String

15.
15.What is the outcome of the following statement below? Console.log(‘Hello World!’ .length);
a)

Hello World! is printed to the console

b)

10 is printed to the console

c)

2 is printed to the console

d)

‘Hello World!’ .length is printed to the console