wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

WDDF, Level 3- 2

Total questions: 18

Worksheet time: 10mins

Name
Class
Date
1.

How do you generate random numbers in Java Script?

a)

Using math.random()

b)

Using getrandom()

c)

Using random()

d)

Using generate random()

2.

How do you create a multiline string in JavaScript?

a)

Using double quotes

b)

Using backticks

c)

Using parentheses

d)

Using single quotes

3.

What are the let const, and class keywords introduced in ES6? How do they differ from their ES5 counterparts?

a)

let for block-scoped variables, const for constants, class for classes

b)

Jet for global variables, const for constants, class for functions

c)

let for functions, const for block-scoped variables, class for arrays

d)

let for objects, const for global variables, class for constants

4.

What is jQuery and what is its main purpose in web development?

a)

A CSS framework

b)

A JavaScript library for simplifying HTML DOM manipulation, event handling, and animation

c)

A backend framework

d)

A database management system

5.

What is the purpose of the "alt" attribute in HTML image tags?

a)

It specifies the alignment of the image.

b)

It defines the size of the image.

c)

It provides alternative text for the image for accessibility.

d)

It controls the animation of the image.

6.

What is Bootstrap and what role does it play in web design?

a)

A JavaScript framework

b)

A CSS framework for building responsive and mobile-first websites

c)

A database management system

d)

A server-side scripting language

7.

Which CSS property is used to control the spacing between lines of text?

a)

text-spacing

b)

line-spacing

c)

letter-spacing

d)

line-height

8.

What does the "float" property in CSS do?

a)

It controls the alignment of text within an element.

b)

It removes an element from the normal flow of the document and positions it to the left or right of its containing element.

c)

It makes an element visible or hidden.

d)

It rotates an element clockwise or counterclockwise.

9.

What does the "z-index" property in CSS control?

a)

It controls the size of an element.

b)

It controls the position of an element in the stacking order.

c)

It controls the opacity of an element.

d)

It controls the rotation of an element.

10.

Which HTML tag is used to define a table row?

a)

<tr>

b)

<td>

c)

<th>

d)

<table>

11.

What does the method querySelector() do in JavaScript?

a)

at selects multiple elements based on a class name.

b)

It selects the first element based on a CSS selector.

c)

It selects an element based on its ID.

d)

It selects all elements of a specific tag name.

12.

Which image format is best suited for photographs and images with gradients due to its ability to handle millions of colors and efficient compression?

a)

PNG

b)

GIF

c)

JPG/JPEG

d)

PSD

13.

What file extension is commonly associated with Photoshop plug-in files?

a)

.exe

b)

.dll

c)

.8bf

d)

.psd

14.

What is the function of a layer mask?

a)

To change the color of a layer

b)

To hide or reveal parts of a layer

c)

To increase the layer's opacity

d)

To duplicate a layer

15.

What is a Smart Object?

a)

A rasterized layer

b)

A Layer that can edited non destructively

c)

A text layer

d)

A layer without transparency

16.

What are single-line and multi-line comments in JavaScript? How do you comment out code?

a)

for single-line, /* */ for multi-line

b)

<!--> for single-line, <! > for multi-line

c)

# for single-line, """ """ for multi-line

d)

// for single-line, /**/for multi-line

17.

How do you check the data type of a variable in JavaScript?

a)

typeof variable

b)

instanceof variable

c)

variable.type

d)

checkType(variable)

18.

What does the method querySelector() do in JavaScript?

a)

It selects multiple elements based on a class name.

b)

It selects the first element based on a CSS selector.

c)

It selects an element based on its ID.

d)

It selects all elements of a specific tag name.