Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Webathon1.0

Total questions: 30

Worksheet time: 30mins

Name
Class
Date
1.

Which of the following is correct?

a)

b)

c)

d)

2.

Different meta tags are defined by changing the ___ attribute to a valid value.

a)

scheme

b)

content

c)

http-equiv

d)

name

3.

Which of the following is correct?

a)

<img alt="MyImage">image.gif</img>

b)

<img src="image.gif" alt="MyImage">

c)

<img src="image.gif" alt="MyImage"/>

d)

<img href="image.gif" alt="MyImage">

4.

Choose the correct option.

a)
b)
c)
d)
5.

Choose the correct syntax.

a)
b)
c)
d)
6.

Choose the correct option.

a)

10

b)

4 5 6

c)

4

d)

6

7.

Choose the correct option.

a)

{name:”sarah”, age:23}

b)

{name:”Lydia”, age:23}

c)

{name:”sarah”, age:22}

d)

{name:”Lydia”, age:22}(

8.

Choose the correct option.

a)

null “” true

b)

Null Null true

c)

false null [ ]

d)

{ } “ ” [ ]

9.

Choose the correct option.

a)

border-width:5px 20px 10px 1px;

b)

border-width:10px 5px 20px 1px;

c)

border-width:10px 20px 5px 1p

d)

border-width:10px 1px 5px 20px;

10.

Choose the correct syntax.

a)
b)
c)
d)
11.

Choose the correct option.

a)

Hi

b)

Developer

c)

?

d)

Hi Developer

12.

Choose the correct option.

a)

True

b)

False

13.

Choose the correct option.

a)

True

b)

False

14.

Which of the following is NOT a data type in Javascript?

a)

String

b)

Undefined

c)

Bool

d)

Number

15.

What is the actual width of CSS box?

a)

Width+Padding+Margin+Border

b)

Width+Padding+Border

c)

Width+Padding+Margin

d)

Width+Margin+Border

16.

Which of the following is NOT a list type in HTML?

a)

Ordered List

b)

Unordered List

c)

Definition List

d)

None

17.

Choose the correct option.

a)

undefined undefined

b)

undefined number

c)

number undefined

d)

number number

18.

Choose the correct option.

a)

It worked! undefined

b)

It worked! Hello graphians!

c)

Oh no an error: undefined

d)

Oh no an error: Hello graphians!

19.

Which CSS property allows you to hide an element but still maintain the space it occupies on the web page?

a)

visibility:none;

b)

display: none;

c)

hidden:none;

d)

display:hidden;

20.

Which of the following will produce the given output on web page?

a)

b)

c)

d)

21.

Which of the following is NOT an example of Pseudo-classes?

a)

link

b)

focus

c)

inactive

d)

visited

22.

Which of the following CSS syntax is correct?

a)

body {

color = black;

}

b)

body{

color : black;

}

c)

body[

color : black,

]

d)

body{

"color" : "red"

}

23.

Which of the following is correct option?

a)

1. space-

between

2. space-evenly

3. space-around

b)

1. space-evenly

2. space-between

3. space-around

c)

1. space-around

2. space-evenly

3. space-between

d)

1. space-around

2. space-evenly

3. space-between

24.

Which of the following HTML tag is used to create a dropdown list?

a)

<select>

b)

<input>

c)

<option>

d)

<list>

25.

Which of the following are VALID HTML layout structure?

a)

header

b)

footer

c)

aside

d)

search

26.

Which is NOT a valid HTML element positioning ?

a)

absolute

b)

sticky

c)

relative

d)

adjacent

27.

Which of the following order of CSS background-repeat Property is correct?

a)

1.horizontal

2.vertical

3. full

b)

1. repeat-x

2. repeat-y

3. repeat

c)

1. repeatX

2. repeatY

3. repeat

d)

1. stretchX

2. stretchY

3. stretch

28.

Which of the following is the correct syntax for creating a comment in HTML?

a)

<!-- This is a comment -->

b)

{# This is a comment #}

c)

/* This is a comment */

d)

<!-- This is a comment --!>

29.

Which of the following is the correct way to define a custom attribute in HTML?

a)

<div custom-attribute="value">content</div>

b)

<div data-custom="value">cont

c)

<div attribute="custom value">content<

d)

<div custom:value="value">content</div>

30.

let a = document.getElementsByTagName('p').innerText;

console.log(a)

a)

undefined

b)

Paragraph 1

c)

['Paragraph 1', 'Paragraph 2', 'Paragraph 3']

d)

{'Paragraph 1', 'Paragraph 2', 'Paragraph 3'}