wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Web Mania - (Round 1)

Total questions: 25

Worksheet time: 19mins

Name
Class
Date
1.

Which HTML attribute is used to define inline styles?

a)

class

b)

style

c)

font

d)

styles

2.

Which symbol is used for comments in CSS?

a)

//

b)

<!-- -->

c)

/*

d)

#

3.

What is the purpose of the 'alt' attribute in an image tag?

a)

To specify an alternative text if the image cannot be displayed

b)

To define image size

c)

To provide a link for the image

d)

To define image resolution

4.

What is the default display value for

in CSS?

a)

inline

b)

inline-block

c)

block

d)

flex

5.

Which JavaScript function can be used to find the length of a string?

a)

length()

b)

getSize()

c)

strlen()

d)

sizeOf()

6.

Which of the following specifies the distance between the borders of adjacent cells?

a)

border-spacing-cell

b)

border-width-spacing

c)

border-spacing

d)

cell-spacing

7.

In CSS, how do you select an element with an id 'header'?

a)

.header

b)

header

c)

#header

d)

*header

8.

What type of selector is used in this case?

p {line-height: 150%;}

a)

class Selectors

b)

element Selectors

c)

id Selectors

d)

none of the mentioned

9.

What does API stands for?

a)

Application Programming Interface

b)

Advanced Programming Integration

c)

Application Process Interface

d)

Automated Programming Interface

10.

Which of the following is not a valid HTML5 element?

a)

<article>

b)

<section>

c)

<footer>

d)

<blink>

11.

Why JavaScript Engine is needed?

a)

Both Compiling & Interpreting the JavaScript

b)

Parsing the JavaScript

c)

Interpreting the JavaScript

d)

Compiling the JavaScript

12.

Which of the following is used to center an element horizontally in CSS?

a)

margin-left: auto; margin-right: auto;

b)

text-align: center;

c)

float: center;

d)

padding: center;

13.

In JavaScript, what is the 'this' keyword used for?

a)

Refers to the current object

b)

Refers to the previous function

c)

Refers to the current function

d)

Refers to a new object

14.

In CSS, what is the 'z-index' property used for?

a)

To determine the stacking order of elements

b)

To adjust element opacity

c)

To change element visibility

d)

To add zoom effect

15.

What will be the output of the following JavaScript code?

let a;

if (a !== null)

return 1;

else

return 0;

a)

0

b)

1

c)

Runtime Error

d)

Compiler Error

16.

Which JavaScript method can be used to convert a JSON string into a JavaScript object?

a)

JSON.parse()

b)

JSON.stringify()

c)

JSON.convert()

d)

JSON.tobject()

17.

What does DOM stand for in web development?

a)

Document Object Model

b)

Digital Object Management

c)

Data Object Model

d)

Document Oriented Model

18.

Which is not a JavaScript data type?

a)

Undefined

b)

Number

c)

Boolean

d)

Float

19.

Arrays in JavaScript are defined by which of the following statements?

a)

It is an ordered list of values

b)

It is an ordered list of objects

c)

It is an ordered list of string

d)

It is an ordered list of functions

20.

In HTML5, which element is used to specify independent, self-contained content?

a)

<article>

b)

<section>

c)

<aside>

d)

<header>

21.

In JavaScript, what will 'typeof undefined' return?

a)

null

b)

undefined

c)

object

d)

string

22.

In CSS, how do you make text bold?

a)

font-weight: bold;

b)

text-style: bold;

c)

font: bold;

d)

weight: bold;

23.

Which of the following CSS property defines the different properties of all four sides of an element’s border in a single declaration?

a)

border

b)

padding

c)

border-collapse

d)

border-width

24.

The function definitions in JavaScript begins with _____________

a)

Identifier and Parenthesis

b)

Return type and Identifier

c)

Return type, Function Keyword, Identifier and Parenthesis

d)

Identifier and Return type

25.

What does AJAX stand for?

a)

Asynchronous JavaScript and XML

b)

Advanced JavaScript and XML

c)

Automated JavaScript and XML

d)

Automated JavaScript and XML