Web Design & JavaScript Quiz

Pick the correct option(s). Click Check Score to see your result. Questions that say (Select all that apply) have more than one correct answer.

1) Which image format is best for photographs (many colors + compression)?
2) Which image format supports transparency?
3) What file extension is used for Photoshop plug-ins?
4) What is the function of a Layer Mask?
Correct: Hide or reveal parts of a layer
5) What is a Smart Object?
6) How do you display output in JavaScript? (Select all that apply)
Correct: alert(), console.log(), document.write()
7) JS comments (single & multi-line)?
8) Select the basic data types in JavaScript:
Correct: Number, String, Boolean, Undefined, Null, Object
9) How do you check the data type of a variable in JavaScript?
10) Which are arithmetic operators in JavaScript?
11) Which keyword is used to declare a variable in JavaScript? (Select all that apply)
12) Which operator checks strict equality in JavaScript?
13) Which function is used to output data to the console in JavaScript?
14) Which method converts a string to an integer in JavaScript?
15) What does the method querySelector() do in JavaScript?
Correct: First element matching CSS selector
16) How do you generate random numbers in JavaScript?
17) How do you create a multiline string in JavaScript?
18) What is jQuery mainly used for?
Correct: JavaScript library for DOM/events/animation
19) What is the purpose of the alt attribute in an <img> tag?
20) What is Bootstrap?
Correct: CSS framework for responsive design
21) Which CSS property controls the spacing between lines of text?
22) What does the CSS float property do?
Correct: Positions left/right outside normal flow
23) What does the CSS z-index control?
24) Which HTML tag defines a table row?
25) When should you use SVG images?