NEW
Font size
WorksheetsWDDF, Level 3- 2
Total questions: 18
Worksheet time: 10mins
How do you generate random numbers in Java Script?
Using math.random()
Using getrandom()
Using random()
Using generate random()
How do you create a multiline string in JavaScript?
Using double quotes
Using backticks
Using parentheses
Using single quotes
What are the let const, and class keywords introduced in ES6? How do they differ from their ES5 counterparts?
let for block-scoped variables, const for constants, class for classes
Jet for global variables, const for constants, class for functions
let for functions, const for block-scoped variables, class for arrays
let for objects, const for global variables, class for constants
What is jQuery and what is its main purpose in web development?
A CSS framework
A JavaScript library for simplifying HTML DOM manipulation, event handling, and animation
A backend framework
A database management system
What is the purpose of the "alt" attribute in HTML image tags?
It specifies the alignment of the image.
It defines the size of the image.
It provides alternative text for the image for accessibility.
It controls the animation of the image.
What is Bootstrap and what role does it play in web design?
A JavaScript framework
A CSS framework for building responsive and mobile-first websites
A database management system
A server-side scripting language
Which CSS property is used to control the spacing between lines of text?
text-spacing
line-spacing
letter-spacing
line-height
What does the "float" property in CSS do?
It controls the alignment of text within an element.
It removes an element from the normal flow of the document and positions it to the left or right of its containing element.
It makes an element visible or hidden.
It rotates an element clockwise or counterclockwise.
What does the "z-index" property in CSS control?
It controls the size of an element.
It controls the position of an element in the stacking order.
It controls the opacity of an element.
It controls the rotation of an element.
Which HTML tag is used to define a table row?
<tr>
<td>
<th>
<table>
What does the method querySelector() do in JavaScript?
at selects multiple elements based on a class name.
It selects the first element based on a CSS selector.
It selects an element based on its ID.
It selects all elements of a specific tag name.
Which image format is best suited for photographs and images with gradients due to its ability to handle millions of colors and efficient compression?
PNG
GIF
JPG/JPEG
PSD
What file extension is commonly associated with Photoshop plug-in files?
.exe
.dll
.8bf
.psd
What is the function of a layer mask?
To change the color of a layer
To hide or reveal parts of a layer
To increase the layer's opacity
To duplicate a layer
What is a Smart Object?
A rasterized layer
A Layer that can edited non destructively
A text layer
A layer without transparency
What are single-line and multi-line comments in JavaScript? How do you comment out code?
for single-line, /* */ for multi-line
<!--> for single-line, <! > for multi-line
# for single-line, """ """ for multi-line
// for single-line, /**/for multi-line
How do you check the data type of a variable in JavaScript?
typeof variable
instanceof variable
variable.type
checkType(variable)
What does the method querySelector() do in JavaScript?
It selects multiple elements based on a class name.
It selects the first element based on a CSS selector.
It selects an element based on its ID.
It selects all elements of a specific tag name.
