Web Development MCQ Test: Web Development MCQs - Practice Questions
1. Explain the concept of 'Memoization' in JavaScript.
2. What does the 'addEventListener' method do in JavaScript?
3. In JavaScript, what is the purpose of the 'addEventListener' method?
4. In HTML, what does the 'DOCTYPE' declaration specify?
5. Explain the concept of 'Cross-Origin Resource Sharing (CORS)' in web development.
6. Explain the concept of 'Immutable.js' in JavaScript.
7. In CSS, what does the 'margin' property control?
8. Which HTML tag is used to define the structure of an HTML document?
9. What is the purpose of the 'form' element in HTML?
10. Which HTML5 element is used to play video files?
11. What does the term 'responsive design' refer to in web development?
12. Explain the concept of 'hoisting' in JavaScript.
13. What is the purpose of the 'transition' property in CSS?
14. What does the 'localStorage' object in JavaScript allow you to do?
15. What is the purpose of the 'Babel' tool in web development?
16. Which of the following is a block-level element in HTML?
17. In CSS, how can you select the last child of an element?
18. What does the 'debounce' function do in JavaScript?
19. In CSS, how can you select all paragraphs within a div element?
20. What does the term 'AJAX' stand for in web development?
21. In web development, what does the acronym CDN stand for?
22. What does the 'z-index' property control in CSS?
23. What is the purpose of the 'document' object in JavaScript?
24. What does the acronym API stand for in web development?
25. In JavaScript, what is the purpose of the 'typeof' operator?
26. What is the purpose of the 'Observer' pattern in web development?
27. In JavaScript, what is the purpose of the 'map' method?
28. Explain the concept of 'JWT' (JSON Web Token) in web development.
29. Explain the difference between 'let', 'const', and 'var' in JavaScript.
30. What is the purpose of the 'GraphQL' query language in web development?
31. How do you comment out multiple lines in JavaScript?
32. How can you declare a variable in JavaScript?
33. What is the purpose of the 'alt' attribute in an HTML image tag?
34. What is the purpose of the 'Shadow DOM' in web development?
35. How can you check if an element has a specific class in JavaScript?
36. In CSS, what is the purpose of the 'box-sizing' property?
37. Which CSS property is used to change the text color of an element?
38. Which of the following is a valid CSS pseudo-element?
39. Which tag is used to create an unordered list in HTML?
40. Which CSS property is used to control the space between lines of text?